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

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

Issue 1293073006: Make gtk2/gtk3 compile time switchable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove deprecation warning. Created 5 years, 3 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 | « build/linux/system.gyp ('k') | chrome/browser/ui/libgtk2ui/libgtk2ui.gyp » ('j') | 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/ui.gni")
8 9
9 component("libgtk2ui") { 10 component("libgtk2ui") {
10 sources = [ 11 sources = [
11 "app_indicator_icon.cc", 12 "app_indicator_icon.cc",
12 "app_indicator_icon.h", 13 "app_indicator_icon.h",
13 "app_indicator_icon_menu.cc", 14 "app_indicator_icon_menu.cc",
14 "app_indicator_icon_menu.h", 15 "app_indicator_icon_menu.h",
15 "chrome_gtk_frame.cc", 16 "chrome_gtk_frame.cc",
16 "chrome_gtk_frame.h", 17 "chrome_gtk_frame.h",
17 "chrome_gtk_menu_subclasses.cc", 18 "chrome_gtk_menu_subclasses.cc",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ] 57 ]
57 58
58 if (use_gconf) { 59 if (use_gconf) {
59 sources += [ 60 sources += [
60 "gconf_listener.cc", 61 "gconf_listener.cc",
61 "gconf_listener.h", 62 "gconf_listener.h",
62 ] 63 ]
63 } 64 }
64 defines = [ "LIBGTK2UI_IMPLEMENTATION" ] 65 defines = [ "LIBGTK2UI_IMPLEMENTATION" ]
65 66
66 configs += [ 67 configs += [ "//build/config/linux:gconf" ]
67 "//build/config/linux:gconf",
68 ]
69 68
70 if (use_cups) { 69 if (use_cups) {
71 configs += [ 70 configs += [ "//printing:cups" ]
72 "//printing:cups",
73 ]
74 } 71 }
75 72
76 # GTK2 pulls pangoft2 as dependency, and pangoft2 depends on harfbuzz. 73 # GTK2 pulls pangoft2 as dependency, and pangoft2 depends on harfbuzz.
77 # To avoid missing indirectly referenced harfbuzz symbols from pango, 74 # To avoid missing indirectly referenced harfbuzz symbols from pango,
78 # some hack is required when bundled harfbuzz is used and component build is 75 # some hack is required when bundled harfbuzz is used and component build is
79 # disabled. 76 # disabled.
80 # See crbug.com/462689 for details. 77 # See crbug.com/462689 for details.
81 all_dependent_configs = [ "//third_party/harfbuzz-ng:pangoft2_link_hack" ] 78 all_dependent_configs = [ "//third_party/harfbuzz-ng:pangoft2_link_hack" ]
82 79
83 # gn orders flags on a target before flags from configs. The default config 80 # gn orders flags on a target before flags from configs. The default config
(...skipping 13 matching lines...) Expand all
97 } 94 }
98 configs += [ 95 configs += [
99 ":libgtk2ui_warnings", 96 ":libgtk2ui_warnings",
100 "//build/config/linux:x11", 97 "//build/config/linux:x11",
101 ] 98 ]
102 99
103 deps = [ 100 deps = [
104 "//base", 101 "//base",
105 "//base/third_party/dynamic_annotations", 102 "//base/third_party/dynamic_annotations",
106 "//base:i18n", 103 "//base:i18n",
107 "//build/config/linux/gtk",
108 "//build/config/linux/gtk:gtkprint",
109 "//chrome/app/theme:theme_resources", 104 "//chrome/app/theme:theme_resources",
110 "//chrome:extra_resources", 105 "//chrome:extra_resources",
111 "//chrome:resources", 106 "//chrome:resources",
112 "//chrome:strings", 107 "//chrome:strings",
113 "//components/resources", 108 "//components/resources",
114 "//content/public/browser", 109 "//content/public/browser",
115 "//mojo/environment:chromium", 110 "//mojo/environment:chromium",
116 "//printing", 111 "//printing",
117 "//skia", 112 "//skia",
118 "//third_party/mojo/src/mojo/edk/system", 113 "//third_party/mojo/src/mojo/edk/system",
119 "//ui/aura", 114 "//ui/aura",
120 "//ui/base", 115 "//ui/base",
121 "//ui/base/ime", 116 "//ui/base/ime",
122 "//ui/events", 117 "//ui/events",
123 "//ui/events:events_base", 118 "//ui/events:events_base",
124 "//ui/gfx", 119 "//ui/gfx",
125 "//ui/gfx/x", 120 "//ui/gfx/x",
126 "//ui/native_theme", 121 "//ui/native_theme",
127 "//ui/resources", 122 "//ui/resources",
128 "//ui/shell_dialogs", 123 "//ui/shell_dialogs",
129 "//ui/strings", 124 "//ui/strings",
130 "//ui/views", 125 "//ui/views",
131 ] 126 ]
127
128 if (use_gtk3) {
129 deps += [
130 "//build/config/linux/gtk3",
131 "//build/config/linux/gtk3:gtkprint3",
132 ]
133 } else {
134 deps += [
135 "//build/config/linux/gtk2",
136 "//build/config/linux/gtk2:gtkprint2",
137 ]
138 }
132 } 139 }
OLDNEW
« no previous file with comments | « build/linux/system.gyp ('k') | chrome/browser/ui/libgtk2ui/libgtk2ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698