summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/common.gypi26
-rw-r--r--chrome/chrome_browser.gypi5
2 files changed, 23 insertions, 8 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 372ad35..163cf9ba 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -48,7 +48,24 @@
'host_arch%': 'ia32',
}],
],
+
+ # Whether we're building a ChromeOS build. We set the initial
+ # value at this level of nesting so it's available for the
+ # toolkit_views test below.
+ 'chromeos%': '0',
},
+
+ # Set default value of toolkit_views on for Windows and Chrome OS.
+ # We set it at this level of nesting so the value is available for
+ # other conditionals below.
+ 'conditions': [
+ ['OS=="win" or chromeos==1', {
+ 'toolkit_views%': 1,
+ }, {
+ 'toolkit_views%': 0,
+ }],
+ ],
+
'host_arch%': '<(host_arch)',
# Default architecture we're building for is the architecture we're
@@ -62,13 +79,8 @@
'linux_chromium_dump_symbols%': 0,
# Also see linux_strip_binary below.
- # By default, Linux does not use views. To turn on views in Linux,
- # set the variable GYP_DEFINES to "toolkit_views=1", or modify
- # ~/.gyp/include.gypi .
- 'toolkit_views%': 0,
-
- # Defaults to a desktop build, overridden via command line/env.
- 'chromeos%': 0,
+ # Copy conditionally-set chromeos variable out one scope.
+ 'chromeos%': '<(chromeos)',
# This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are
# are built under a chromium full build (1) or a webkit.org chromium
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi
index 3997320..d56218f 100644
--- a/chrome/chrome_browser.gypi
+++ b/chrome/chrome_browser.gypi
@@ -3074,7 +3074,10 @@
['exclude', '^browser/browser_list_gtk.cc'],
],
}],
- ['OS=="linux" and toolkit_views==1', {
+ # These GTK files haven't been ported to views, while ChromeOS has
+ # its own separate implementation below. So re-include them only on
+ # non-ChromeOS views Linux builds.
+ ['OS=="linux" and chromeos==0 and toolkit_views==1', {
'sources/': [
['include', '^browser/gtk/dialogs_gtk.cc'],
['include', '^browser/gtk/external_protocol_dialog_gtk.cc'],