summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-16 15:23:30 +0000
committerjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-16 15:23:30 +0000
commit40519596601f58e38c22b3ff9f2d8a47301e7c25 (patch)
tree36c19c881a6166b3d153470271e63e6dfddb382f /build
parent694efd9fd9595a1a41631ee3c4cc9631cab76940 (diff)
downloadchromium_src-40519596601f58e38c22b3ff9f2d8a47301e7c25.zip
chromium_src-40519596601f58e38c22b3ff9f2d8a47301e7c25.tar.gz
chromium_src-40519596601f58e38c22b3ff9f2d8a47301e7c25.tar.bz2
Use global source exclude to remove .h files from platforms where they are not relevant
BUG=None TEST=None Review URL: http://codereview.chromium.org/5028001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi18
1 files changed, 9 insertions, 9 deletions
diff --git a/build/common.gypi b/build/common.gypi
index eabeb26..abfe14c 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -615,31 +615,31 @@
],
'conditions': [
['OS!="win"', {
- 'sources/': [ ['exclude', '_win(_unittest)?\\.cc$'],
+ 'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)win/'],
- ['exclude', '(^|/)win_[^/]*\\.cc$'] ],
+ ['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
}],
['OS!="mac"', {
- 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.cc$'],
+ 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)(cocoa|mac)/'],
['exclude', '\\.mm?$' ] ],
}],
['OS!="linux" and OS!="freebsd" and OS!="openbsd"', {
'sources/': [
- ['exclude', '_(chromeos|gtk|x|x11|xdg)(_unittest)?\\.cc$'],
+ ['exclude', '_(chromeos|gtk|x|x11|xdg)(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)gtk/'],
- ['exclude', '(^|/)(gtk|x11)_[^/]*\\.cc$'],
+ ['exclude', '(^|/)(gtk|x11)_[^/]*\\.(h|cc)$'],
],
}],
['OS!="linux"', {
'sources/': [
- ['exclude', '_linux(_unittest)?\\.cc$'],
+ ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)linux/'],
],
}],
# We use "POSIX" to refer to all non-Windows operating systems.
['OS=="win"', {
- 'sources/': [ ['exclude', '_posix\\.cc$'] ],
+ 'sources/': [ ['exclude', '_posix\\.(h|cc)$'] ],
# turn on warnings for signed/unsigned mismatch on chromium code.
'msvs_settings': {
'VCCLCompilerTool': {
@@ -648,10 +648,10 @@
},
}],
['chromeos!=1', {
- 'sources/': [ ['exclude', '_chromeos\\.cc$'] ]
+ 'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
}],
['toolkit_views==0', {
- 'sources/': [ ['exclude', '_views\\.cc$'] ]
+ 'sources/': [ ['exclude', '_views\\.(h|cc)$'] ]
}],
],
}],