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
|
--- ui/base/BUILD.gn.orig 2017-06-05 19:03:30 UTC
+++ ui/base/BUILD.gn
@@ -361,7 +361,7 @@ component("base") {
sources += [ "touch/touch_device_android.cc" ]
} else if (is_ios) {
sources += [ "touch/touch_device_ios.cc" ]
- } else if (is_linux) {
+ } else if (is_linux || is_bsd) {
sources += [ "touch/touch_device_linux.cc" ]
} else {
# Empty implementation for all other cases.
@@ -471,11 +471,11 @@ component("base") {
]
}
- if (!use_aura || !is_linux) {
+ if (!use_aura || !(is_linux || is_bsd)) {
sources -= [ "resource/resource_bundle_auralinux.cc" ]
}
- if (is_linux) {
+ if (is_linux || is_bsd) {
deps += [ "//build/linux:fontconfig" ]
}
@@ -488,7 +488,7 @@ component("base") {
]
}
- if (is_linux) {
+ if (is_linux || is_bsd) {
if (!toolkit_views && !use_aura) {
sources -= [
"dragdrop/drag_utils.cc",
@@ -844,7 +844,7 @@ test("ui_base_unittests") {
"ime/win/imm32_manager_unittest.cc",
"ime/win/tsf_input_scope_unittest.cc",
]
- if (is_linux && use_aura && !is_chromeos) {
+ if ((is_linux || is_bsd) && use_aura && !is_chromeos) {
sources += [ "ime/input_method_auralinux_unittest.cc" ]
}
if (use_x11) {
@@ -967,7 +967,7 @@ test("ui_base_unittests") {
]
}
- if (is_android || is_linux || is_mac || is_win) {
+ if (is_android || is_linux || is_bsd || is_mac || is_win) {
# TODO(brettw): We should be able to depend on //ui/resources:ui_test_pak
# instead of depending directly on the non-test .pak files, but depending
# on ui_test_pak seems to have no effect.
@@ -980,7 +980,7 @@ test("ui_base_unittests") {
"//third_party/mesa:osmesa",
]
}
- if (is_linux || is_win) {
+ if (is_linux || is_bsd || is_win) {
data += [
# TODO(brettw): Remove these two lines.
"$root_out_dir/ui/en-US.pak",
|