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
|
--- chrome/browser/ui/libgtkui/BUILD.gn.orig 2017-02-05 00:32:39.518999004 +0100
+++ chrome/browser/ui/libgtkui/BUILD.gn 2017-02-05 00:23:33.532382915 +0100
@@ -140,26 +140,28 @@
}
}
-libgtkui("libgtk2ui") {
- sources = [
- "native_theme_gtk2.cc",
- "native_theme_gtk2.h",
- ]
- deps = [
- "//build/config/linux/gtk2",
- "//build/config/linux/gtk2:gtkprint2",
- ]
-}
-
-# This is compiled with "all" even when it's not referenced to ensure that
-# GTK3 continues to build. GTK3 is explicitly specified by some distros.
-libgtkui("libgtk3ui") {
- sources = [
- "native_theme_gtk3.cc",
- "native_theme_gtk3.h",
- ]
- deps = [
- "//build/config/linux/gtk3",
- "//build/config/linux/gtk3:gtkprint3",
- ]
+if (use_gtk3) {
+ # This is compiled with "all" even when it's not referenced to ensure that
+ # GTK3 continues to build. GTK3 is explicitly specified by some distros.
+ libgtkui("libgtk3ui") {
+ sources = [
+ "native_theme_gtk3.cc",
+ "native_theme_gtk3.h",
+ ]
+ deps = [
+ "//build/config/linux/gtk3",
+ "//build/config/linux/gtk3:gtkprint3",
+ ]
+ }
+} else {
+ libgtkui("libgtk2ui") {
+ sources = [
+ "native_theme_gtk2.cc",
+ "native_theme_gtk2.h",
+ ]
+ deps = [
+ "//build/config/linux/gtk2",
+ "//build/config/linux/gtk2:gtkprint2",
+ ]
+ }
}
|