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/linux/pkg_config.gni") | 8 import("//build/config/linux/pkg_config.gni") |
9 | 9 |
10 pkg_config("gtk") { | 10 pkg_config("gtk") { |
11 # Gtk requires gmodule, but it does not list it as a dependency in some | 11 # Gtk requires gmodule, but it does not list it as a dependency in some |
12 # misconfigured systems. | 12 # misconfigured systems. |
13 packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ] | 13 packages = [ |
| 14 "gmodule-2.0", |
| 15 "gtk+-2.0", |
| 16 "gthread-2.0", |
| 17 ] |
14 } | 18 } |
15 | 19 |
16 pkg_config("gtkprint") { | 20 pkg_config("gtkprint") { |
17 packages = [ "gtk+-unix-print-2.0" ] | 21 packages = [ "gtk+-unix-print-2.0" ] |
18 } | 22 } |
19 | 23 |
20 component("libgtk2ui") { | 24 component("libgtk2ui") { |
21 sources = [ | 25 sources = [ |
22 "app_indicator_icon.cc", | 26 "app_indicator_icon.cc", |
23 "app_indicator_icon.h", | 27 "app_indicator_icon.h", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 cflags = [ | 93 cflags = [ |
90 # G_DEFINE_TYPE automatically generates a *get_instance_private inline | 94 # G_DEFINE_TYPE automatically generates a *get_instance_private inline |
91 # function after glib 2.37. That's unused. Prevent to complain about it. | 95 # function after glib 2.37. That's unused. Prevent to complain about it. |
92 "-Wno-unused-function", | 96 "-Wno-unused-function", |
93 | 97 |
94 # G_STATIC_ASSERT uses a typedef as a static_assert. | 98 # G_STATIC_ASSERT uses a typedef as a static_assert. |
95 "-Wno-unused-local-typedef", | 99 "-Wno-unused-local-typedef", |
96 ] | 100 ] |
97 } | 101 } |
98 } | 102 } |
99 configs += [ ":libgtk2ui_warnings", ] | 103 configs += [ ":libgtk2ui_warnings" ] |
100 | 104 |
101 deps = [ | 105 deps = [ |
102 "//base", | 106 "//base", |
103 "//base:i18n", | 107 "//base:i18n", |
104 "//base/third_party/dynamic_annotations", | 108 "//base/third_party/dynamic_annotations", |
105 "//chrome/app/theme:theme_resources", | 109 "//chrome/app/theme:theme_resources", |
106 "//chrome:extra_resources", | 110 "//chrome:extra_resources", |
107 "//chrome:resources", | 111 "//chrome:resources", |
108 "//chrome:strings", | 112 "//chrome:strings", |
109 "//components/resources", | 113 "//components/resources", |
110 "//skia", | 114 "//skia", |
111 "//ui/base", | 115 "//ui/base", |
112 "//ui/resources", | 116 "//ui/resources", |
113 "//ui/strings", | 117 "//ui/strings", |
114 "//ui/views", | 118 "//ui/views", |
115 ] | 119 ] |
116 } | 120 } |
OLD | NEW |