Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Side by Side Diff: chrome/browser/ui/libgtk2ui/BUILD.gn

Issue 655343002: GN: Move configs for single-use Linux packages close to usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: is_linux -> is_desktop_linux Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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")
9
10 pkg_config("gtk") {
11 # Gtk requires gmodule, but it does not list it as a dependency in some
12 # misconfigured systems.
13 packages = [ "gmodule-2.0", "gtk+-2.0", "gthread-2.0" ]
14 }
15
16 pkg_config("gtkprint") {
17 packages = [ "gtk+-unix-print-2.0" ]
18 }
8 19
9 component("libgtk2ui") { 20 component("libgtk2ui") {
10 sources = [ 21 sources = [
11 "app_indicator_icon.cc", 22 "app_indicator_icon.cc",
12 "app_indicator_icon.h", 23 "app_indicator_icon.h",
13 "app_indicator_icon_menu.cc", 24 "app_indicator_icon_menu.cc",
14 "app_indicator_icon_menu.h", 25 "app_indicator_icon_menu.h",
15 "chrome_gtk_frame.cc", 26 "chrome_gtk_frame.cc",
16 "chrome_gtk_frame.h", 27 "chrome_gtk_frame.h",
17 "chrome_gtk_menu_subclasses.cc", 28 "chrome_gtk_menu_subclasses.cc",
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 74 }
64 if (is_clang) { 75 if (is_clang) {
65 # G_DEFINE_TYPE automatically generates a *get_instance_private inline 76 # G_DEFINE_TYPE automatically generates a *get_instance_private inline
66 # function after glib 2.37. That's unused. Prevent to complain about it. 77 # function after glib 2.37. That's unused. Prevent to complain about it.
67 cflags = [ "-Wno-unused-function" ] 78 cflags = [ "-Wno-unused-function" ]
68 } 79 }
69 80
70 defines = [ "LIBGTK2UI_IMPLEMENTATION" ] 81 defines = [ "LIBGTK2UI_IMPLEMENTATION" ]
71 82
72 configs += [ 83 configs += [
84 ":gtk",
85 ":gtkprint",
73 "//build/config/linux:gconf", 86 "//build/config/linux:gconf",
74 "//build/config/linux:gtk",
75 "//build/config/linux:gtkprint",
76 "//printing:cups", 87 "//printing:cups",
77 ] 88 ]
78 89
79 deps = [ 90 deps = [
80 "//base", 91 "//base",
81 "//base:i18n", 92 "//base:i18n",
82 "//base/third_party/dynamic_annotations", 93 "//base/third_party/dynamic_annotations",
83 "//chrome/app/theme:theme_resources", 94 "//chrome/app/theme:theme_resources",
84 "//chrome:extra_resources", 95 "//chrome:extra_resources",
85 "//chrome:resources", 96 "//chrome:resources",
86 "//chrome:strings", 97 "//chrome:strings",
87 "//components/resources", 98 "//components/resources",
88 "//skia", 99 "//skia",
89 "//ui/base", 100 "//ui/base",
90 "//ui/resources", 101 "//ui/resources",
91 "//ui/strings", 102 "//ui/strings",
92 "//ui/views", 103 "//ui/views",
93 ] 104 ]
94 } 105 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698