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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/linux/system.gyp ('k') | chrome/browser/ui/libgtk2ui/libgtk2ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/BUILD.gn
diff --git a/chrome/browser/ui/libgtk2ui/BUILD.gn b/chrome/browser/ui/libgtk2ui/BUILD.gn
index 595d381887ca2f77ead3fc8e6b84e1bd22e27198..9ded542b68012c12762327826cb0c86988c09480 100644
--- a/chrome/browser/ui/libgtk2ui/BUILD.gn
+++ b/chrome/browser/ui/libgtk2ui/BUILD.gn
@@ -5,6 +5,7 @@
assert(is_linux, "This file should only be referenced on Linux")
import("//build/config/features.gni")
+import("//build/config/ui.gni")
component("libgtk2ui") {
sources = [
@@ -63,14 +64,10 @@ component("libgtk2ui") {
}
defines = [ "LIBGTK2UI_IMPLEMENTATION" ]
- configs += [
- "//build/config/linux:gconf",
- ]
+ configs += [ "//build/config/linux:gconf" ]
if (use_cups) {
- configs += [
- "//printing:cups",
- ]
+ configs += [ "//printing:cups" ]
}
# GTK2 pulls pangoft2 as dependency, and pangoft2 depends on harfbuzz.
@@ -104,8 +101,6 @@ component("libgtk2ui") {
"//base",
"//base/third_party/dynamic_annotations",
"//base:i18n",
- "//build/config/linux/gtk",
- "//build/config/linux/gtk:gtkprint",
"//chrome/app/theme:theme_resources",
"//chrome:extra_resources",
"//chrome:resources",
@@ -129,4 +124,16 @@ component("libgtk2ui") {
"//ui/strings",
"//ui/views",
]
+
+ if (use_gtk3) {
+ deps += [
+ "//build/config/linux/gtk3",
+ "//build/config/linux/gtk3:gtkprint3",
+ ]
+ } else {
+ deps += [
+ "//build/config/linux/gtk2",
+ "//build/config/linux/gtk2:gtkprint2",
+ ]
+ }
}
« 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