OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 assert(is_linux, "This file should only be referenced on Linux") | 5 assert(is_linux, "This file should only be referenced on Linux") |
6 | 6 |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 | 9 |
10 # gn orders flags on a target before flags from configs. The default config | 10 # gn orders flags on a target before flags from configs. The default config |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 "unity_service.h", | 63 "unity_service.h", |
64 "x11_input_method_context_impl_gtk2.cc", | 64 "x11_input_method_context_impl_gtk2.cc", |
65 "x11_input_method_context_impl_gtk2.h", | 65 "x11_input_method_context_impl_gtk2.h", |
66 ] | 66 ] |
67 | 67 |
68 if (use_gconf) { | 68 if (use_gconf) { |
69 sources += [ | 69 sources += [ |
70 "gconf_listener.cc", | 70 "gconf_listener.cc", |
71 "gconf_listener.h", | 71 "gconf_listener.h", |
72 ] | 72 ] |
73 configs += [ "//build/config/linux:gconf" ] | 73 configs += [ "//build/config/linux/gconf" ] |
74 } | 74 } |
75 defines = [ "LIBGTK2UI_IMPLEMENTATION" ] | 75 defines = [ "LIBGTK2UI_IMPLEMENTATION" ] |
76 | 76 |
77 if (use_cups) { | 77 if (use_cups) { |
78 configs += [ "//printing:cups" ] | 78 configs += [ "//printing:cups" ] |
79 } | 79 } |
80 | 80 |
81 # GTK2 pulls pangoft2 as dependency, and pangoft2 depends on harfbuzz. | 81 # GTK2 pulls pangoft2 as dependency, and pangoft2 depends on harfbuzz. |
82 # To avoid missing indirectly referenced harfbuzz symbols from pango, | 82 # To avoid missing indirectly referenced harfbuzz symbols from pango, |
83 # some hack is required when bundled harfbuzz is used and component build is | 83 # some hack is required when bundled harfbuzz is used and component build is |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 "//build/config/linux/gtk3", | 123 "//build/config/linux/gtk3", |
124 "//build/config/linux/gtk3:gtkprint3", | 124 "//build/config/linux/gtk3:gtkprint3", |
125 ] | 125 ] |
126 } else { | 126 } else { |
127 deps += [ | 127 deps += [ |
128 "//build/config/linux/gtk2", | 128 "//build/config/linux/gtk2", |
129 "//build/config/linux/gtk2:gtkprint2", | 129 "//build/config/linux/gtk2:gtkprint2", |
130 ] | 130 ] |
131 } | 131 } |
132 } | 132 } |
OLD | NEW |