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

Unified Diff: build/common.gypi

Issue 1799002: Fix the toolkit_views gyp variable define mania. (Closed)
Patch Set: build fix Created 10 years, 8 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 | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 5be7be78e28dff67f4c3f3860a3b4a8fdd7bf6b9..c31f83428b7951c71172b74af3603e2987ad0a6c 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
Evan Martin 2010/04/26 22:06:59 will fix before landing
+ # 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
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698