diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 22:06:15 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 22:06:15 +0000 |
commit | c14d8e77a710ccb632e9113b3e8e5b6228025434 (patch) | |
tree | 5a1af0961c59453e8cac3f156f307c221836898e /build/common.gypi | |
parent | 7377db59c9a1b6d5b3724acee85fb5171ddc37a4 (diff) | |
download | chromium_src-c14d8e77a710ccb632e9113b3e8e5b6228025434.zip chromium_src-c14d8e77a710ccb632e9113b3e8e5b6228025434.tar.gz chromium_src-c14d8e77a710ccb632e9113b3e8e5b6228025434.tar.bz2 |
Let the chromium_code variable be applied in target scope in addition to .gyp
file scope.
To resolve bug 33186, I am trying to turn test_shell.gyp into test_shell.gypi,
and have webkit.gyp include it. webkit.gyp is not chromium_code, but the
targets in test_shell.gypi are.
BUG=33186
TEST=builds still work, -Werror and friends are still applied (or not) correctly
Review URL: http://codereview.chromium.org/595010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38519 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r-- | build/common.gypi | 92 |
1 files changed, 44 insertions, 48 deletions
diff --git a/build/common.gypi b/build/common.gypi index 5d96ae5..602561b 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -402,6 +402,50 @@ }], # OS==win ], # conditions for coverage }], # coverage!=0 + ['chromium_code==0', { + 'includes': [ + 'external_code.gypi', + ], + }, { + # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the + # C99 macros on Mac and Linux. + 'defines': [ + '__STDC_FORMAT_MACROS', + ], + 'conditions': [ + ['OS!="win"', { + 'sources/': [ ['exclude', '_win(_unittest)?\\.cc$'], + ['exclude', '/win/'], + ['exclude', '/win_[^/]*\\.cc$'] ], + }], + ['OS!="mac"', { + 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.cc$'], + ['exclude', '/(cocoa|mac)/'], + ['exclude', '\.mm$' ] ], + }], + ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', { + 'sources/': [ + ['exclude', '_(chromeos|gtk|linux|x|x11)(_unittest)?\\.cc$'], + ['exclude', '/gtk/'], + ['exclude', '/(gtk|x11)_[^/]*\\.cc$'] ], + }], + # We use "POSIX" to refer to all non-Windows operating systems. + ['OS=="win"', { + 'sources/': [ ['exclude', '_posix\\.cc$'] ], + }], + # Though Skia is conceptually shared by Linux and Windows, + # the only _skia files in our tree are Linux-specific. + ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', { + 'sources/': [ ['exclude', '_skia\\.cc$'] ], + }], + ['chromeos!=1', { + 'sources/': [ ['exclude', '_chromeos\\.cc$'] ] + }], + ['OS!="win" and (toolkit_views==0 and chromeos==0)', { + 'sources/': [ ['exclude', '_views\\.cc$'] ] + }], + ], + }], ], # conditions for 'target_defaults' 'default_configuration': 'Debug', 'configurations': { @@ -1051,54 +1095,6 @@ }, }, }], - ['chromium_code==0', { - # This section must follow the other condition sections above because - # external_code.gypi expects to be merged into those settings. - 'includes': [ - 'external_code.gypi', - ], - }, { - 'target_defaults': { - # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the - # C99 macros on Mac and Linux. - 'defines': [ - '__STDC_FORMAT_MACROS', - ], - 'conditions': [ - ['OS!="win"', { - 'sources/': [ ['exclude', '_win(_unittest)?\\.cc$'], - ['exclude', '/win/'], - ['exclude', '/win_[^/]*\\.cc$'] ], - }], - ['OS!="mac"', { - 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.cc$'], - ['exclude', '/(cocoa|mac)/'], - ['exclude', '\.mm$' ] ], - }], - ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', { - 'sources/': [ - ['exclude', '_(chromeos|gtk|linux|x|x11)(_unittest)?\\.cc$'], - ['exclude', '/gtk/'], - ['exclude', '/(gtk|x11)_[^/]*\\.cc$'] ], - }], - # We use "POSIX" to refer to all non-Windows operating systems. - ['OS=="win"', { - 'sources/': [ ['exclude', '_posix\\.cc$'] ], - }], - # Though Skia is conceptually shared by Linux and Windows, - # the only _skia files in our tree are Linux-specific. - ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', { - 'sources/': [ ['exclude', '_skia\\.cc$'] ], - }], - ['chromeos!=1', { - 'sources/': [ ['exclude', '_chromeos\\.cc$'] ] - }], - ['OS!="win" and (toolkit_views==0 and chromeos==0)', { - 'sources/': [ ['exclude', '_views\\.cc$'] ] - }], - ], - }, - }], # Disable native client on FreeBSD/OpenBSD for now ['disable_nacl==1 or OS=="freebsd" or OS=="openbsd"', { 'target_defaults': { |