diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-26 00:15:50 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-26 00:15:50 +0000 |
commit | 4ebb4f136e3e5040351b4e29ca79fe1153ce606d (patch) | |
tree | dec0297e2f41b55c7a93ab586f0f60f9ca6f1d60 /base/base.gyp | |
parent | d3af5134167cbdad1d2a647cd2a0ffe428a7cb8e (diff) | |
download | chromium_src-4ebb4f136e3e5040351b4e29ca79fe1153ce606d.zip chromium_src-4ebb4f136e3e5040351b4e29ca79fe1153ce606d.tar.gz chromium_src-4ebb4f136e3e5040351b4e29ca79fe1153ce606d.tar.bz2 |
Refactor OS-dependent filename exclusion patterns
Rather than duplicate logic in the tree, merge all of the
shared rules about patterns in filenames into one common set.
The pattern is: "if (OS != x): exclude x's files."
This is especially needed for upcoming changes that bring in a few
more platform-specific (FreeBSD, OpenBSD, Solaris(?)) files.
Review URL: http://codereview.chromium.org/443011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.gyp')
-rw-r--r-- | base/base.gyp | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/base/base.gyp b/base/base.gyp index cce3f07..49a6773 100644 --- a/base/base.gyp +++ b/base/base.gyp @@ -398,8 +398,6 @@ ], 'conditions': [ [ 'OS == "linux" or OS == "freebsd"', { - 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'], - ['exclude', '\\.mm?$' ] ], 'conditions': [ [ 'chromeos==1 or toolkit_views==1', { 'sources/': [ ['include', '_chromeos\\.cc$'] ] @@ -438,15 +436,12 @@ { # else: OS != "linux" && OS != "freebsd" 'sources/': [ ['exclude', '/xdg_mime/'], + ['exclude', '_nss\.cc$'], ], 'sources!': [ - 'crypto/rsa_private_key_nss.cc', - 'crypto/signature_creator_nss.cc', - 'crypto/signature_verifier_nss.cc', 'atomicops_internals_x86_gcc.cc', 'base_paths_posix.cc', 'directory_watcher_inotify.cc', - 'hmac_nss.cc', 'linux_util.cc', 'message_pump_glib.cc', 'nss_init.cc', @@ -494,9 +489,6 @@ }, ], [ 'OS == "mac"', { - 'sources/': [ ['exclude', '_(linux|gtk|win|chromeos)\\.cc$'] ], - 'sources!': [ - ], 'link_settings': { 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', @@ -519,8 +511,6 @@ 'include_dirs': [ '../chrome/third_party/wtl/include', ], - 'sources/': [ ['exclude', '_(linux|gtk|mac|posix|chromeos)\\.cc$'], - ['exclude', '\\.mm?$' ] ], 'sources!': [ 'data_pack.cc', 'event_recorder_stubs.cc', @@ -699,7 +689,6 @@ ], 'conditions': [ ['OS == "linux" or OS == "freebsd"', { - 'sources/': [ ['exclude', '\\.mm?$' ] ], 'sources!': [ 'file_version_info_unittest.cc', 'worker_pool_linux_unittest.cc', @@ -763,28 +752,6 @@ 'test/test_file_util_posix.cc', 'test/test_file_util_win.cc', ], - 'conditions': [ - [ 'OS == "linux" or OS == "freebsd"', { - 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'], - ['exclude', '\\.mm?$' ] ], - 'conditions': [ - [ 'chromeos==1 or toolkit_views==1', { - 'sources/': [ ['include', '_chromeos\\.cc$'] ] - }, - ], - ], - }, - ], - [ 'OS == "mac"', { - 'sources/': [ ['exclude', '_(linux|win|chromeos)\\.cc$'] ], - }, - ], - [ 'OS == "win"', { - 'sources/': [ ['exclude', '_(linux|mac|posix|chromeos)\\.cc$'], - ['exclude', '\\.mm?$' ] ], - }, - ], - ], }, { 'target_name': 'test_support_perf', |