diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/all.gyp | 4 | ||||
-rw-r--r-- | build/common.gypi | 3 | ||||
-rw-r--r-- | build/filename_rules.gypi | 33 |
3 files changed, 22 insertions, 18 deletions
diff --git a/build/all.gyp b/build/all.gyp index 7198959..12dcada 100644 --- a/build/all.gyp +++ b/build/all.gyp @@ -11,6 +11,7 @@ 'dependencies': [ 'some.gyp:*', '../base/base.gyp:*', + '../base/base_untrusted.gyp:*', '../chrome/chrome.gyp:*', '../content/content.gyp:*', '../crypto/crypto.gyp:*', @@ -173,6 +174,9 @@ 'type': 'none', 'dependencies': [ '../base/base.gyp:base_unittests', + # TODO(bbudge): drop this when something meaningful depends on + # base_untrusted. + '../base/base_untrusted.gyp:base_untrusted', '../chrome/chrome.gyp:browser_tests', '../chrome/chrome.gyp:interactive_ui_tests', '../chrome/chrome.gyp:safe_browsing_tests', diff --git a/build/common.gypi b/build/common.gypi index b2a7693..b6a0aeb 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -1235,6 +1235,9 @@ # output files in src/build/VS2010_{Debug,Release}. 'build_dir_prefix%': '', + # Targets are by default not nacl untrusted code. + 'nacl_untrusted_build%': 0, + 'conditions': [ ['OS=="win" and component=="shared_library"', { # See http://msdn.microsoft.com/en-us/library/aa652367.aspx diff --git a/build/filename_rules.gypi b/build/filename_rules.gypi index c6dceea..ec34264 100644 --- a/build/filename_rules.gypi +++ b/build/filename_rules.gypi @@ -7,13 +7,13 @@ # included by common.gypi for chromium_code. { - 'conditions': [ - ['OS!="win"', { + 'target_conditions': [ + ['OS!="win" or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'], ['exclude', '(^|/)win/'], ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ], }], - ['OS!="mac"', { + ['OS!="mac" or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'], ['exclude', '(^|/)(cocoa|mac)/'], ['exclude', '\\.mm?$' ] ], @@ -23,13 +23,13 @@ # In case a file is not needed, it is going to be excluded later on. # TODO(evan): the above is not correct; we shouldn't build _linux # files on non-linux. - ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', { + ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_linux(_unittest)?\\.(h|cc)$'], ['exclude', '(^|/)linux/'], ], }], - ['OS!="android" and OS!="linux" and OS!="openbsd" and OS!="freebsd"', { + ['OS!="android" and OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_linuxish(_unittest)?\\.(h|cc)$'], ['exclude', '(^|/)linuxish/'], @@ -41,51 +41,48 @@ ['exclude', '(^|/)android/'], ], }], - ['OS=="win"', { + ['OS=="win" or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_posix(_unittest)?\\.(h|cc)$'], ['exclude', '(^|/)posix/'], ], - }], - ['chromeos!=1', { + ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ] }], - ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', { + ['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_xdg(_unittest)?\\.(h|cc)$'], ], }], - - - ['use_x11!=1', { + ['<(use_x11)!=1 or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_(chromeos|x|x11)(_unittest)?\\.(h|cc)$'], ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'], ], }], - ['toolkit_uses_gtk!=1', { + ['<(toolkit_uses_gtk)!=1 or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_gtk(_unittest)?\\.(h|cc)$'], ['exclude', '(^|/)gtk/'], ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'], ], }], - ['toolkit_views==0', { + ['<(toolkit_views)==0 or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ] }], - ['use_aura==0', { + ['<(use_aura)==0 or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_aura(_unittest)?\\.(h|cc)$'], ['exclude', '(^|/)aura/'], ] }], - ['use_aura==0 or use_x11==0', { + ['<(use_aura)==0 or <(use_x11)==0 or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_aurax11\\.(h|cc)$'] ] }], - ['use_aura==0 or OS!="win"', { + ['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'] ] }], - ['use_ash==0', { + ['<(use_ash)==0 or >(nacl_untrusted_build)==1', { 'sources/': [ ['exclude', '_ash(_unittest)?\\.(h|cc)$'], ['exclude', '(^|/)ash/'], ] |