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 /app/app.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 'app/app.gyp')
-rw-r--r-- | app/app.gyp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app/app.gyp b/app/app.gyp index fbc9e2d..78f9978 100644 --- a/app/app.gyp +++ b/app/app.gyp @@ -15,33 +15,6 @@ 'resources/app_strings.grd', ], }, - 'target_defaults': { - 'sources/': [ - ['exclude', '/(cocoa|gtk|win)/'], - ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], - ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], - ], - 'conditions': [ - ['OS=="linux"', {'sources/': [ - ['include', '/gtk/'], - ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], - ['include', '/(gtk|x11)_[^/]*\\.cc$'], - ]}], - ['OS=="mac"', {'sources/': [ - ['include', '/cocoa/'], - ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'], - ]}, { # else: OS != "mac" - 'sources/': [ - ['exclude', '\\.mm?$'], - ], - }], - ['OS=="win"', {'sources/': [ - ['include', '_(win)\\.cc$'], - ['include', '/win/'], - ['include', '/win_[^/]*\\.cc$'], - ]}], - ], - }, 'targets': [ { 'target_name': 'app_base', |