1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
--- content/browser/BUILD.gn.orig 2017-06-05 19:03:06 UTC
+++ content/browser/BUILD.gn
@@ -1498,11 +1498,6 @@ source_set("browser") {
"memory/memory_monitor_chromeos.cc",
"memory/memory_monitor_chromeos.h",
]
- } else {
- sources += [
- "memory/memory_monitor_linux.cc",
- "memory/memory_monitor_linux.h",
- ]
}
if (!is_win) {
@@ -1571,7 +1566,7 @@ source_set("browser") {
# Desktop screen capture implementations, conditionally built depending on
# the available implementations for each platform.
- if (is_linux || is_mac || is_win) {
+ if (is_linux || is_bsd || is_mac || is_win) {
defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
sources += [
"media/capture/cursor_renderer.cc",
@@ -1759,7 +1754,7 @@ source_set("browser") {
}
}
- if (is_linux && use_aura) {
+ if ((is_linux || is_bsd) && use_aura) {
deps += [ "//build/linux:fontconfig" ]
}
@@ -1919,6 +1914,17 @@ source_set("browser") {
"//chromeos",
"//chromeos:power_manager_proto",
]
+ } else if (is_bsd) {
+ sources -= [
+ "zygote_host/zygote_communication_linux.cc",
+ "zygote_host/zygote_communication_linux.h",
+ "zygote_host/zygote_handle_linux.cc",
+ "zygote_host/zygote_host_impl_linux.cc",
+ "zygote_host/zygote_host_impl_linux.h",
+ "../zygote/zygote_linux.cc",
+ "../zygote/zygote_linux.h",
+ "../zygote/zygote_main_linux.cc",
+ ]
}
if (use_aura) {
@@ -2029,11 +2035,11 @@ source_set("browser") {
]
}
- if (is_linux && use_dbus) {
+ if ((is_linux || is_bsd) && use_dbus) {
deps += [ "//dbus" ]
}
- if (is_linux) {
+ if (is_linux || is_bsd) {
deps += [ "//third_party/boringssl" ]
}
|