Add Chrome's exclusion filter to the Chrome build.

These filters are now defined for our standalone build; if code is to rely on them, they must also be available in the Chrome build. (Chrome only defines them for non-third-party code).
Review URL: http://webrtc-codereview.appspot.com/101003

git-svn-id: http://webrtc.googlecode.com/svn/trunk@339 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org 2011-08-09 18:14:47 +00:00
parent 325bca7ccf
commit c68434d6a3

View File

@ -115,6 +115,39 @@
},
}],
], # conditions
}, {
# Exclusion filters derived from Chromium's common.gypi. These are
# provided in our standalone build due to chromium_code==1; if WebRTC
# code relies on them they must also be available for a Chromium build.
'conditions': [
['OS!="win"', {
'sources/': [ ['exclude', '_win(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)win/'],
['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
}],
['OS!="mac"', {
'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)(cocoa|mac)/'],
['exclude', '\\.mm?$' ] ],
}],
['toolkit_uses_gtk!=1', {
'sources/': [
['exclude', '_(chromeos|gtk|x|x11|xdg)(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)gtk/'],
['exclude', '(^|/)(gtk|x11)_[^/]*\\.(h|cc)$'],
],
}],
['OS!="linux"', {
'sources/': [
['exclude', '_linux(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)linux/'],
],
}],
# We use "POSIX" to refer to all non-Windows operating systems.
['OS=="win"', {
'sources/': [ ['exclude', '_posix\\.(h|cc)$'] ],
}],
], # conditions
}],
], # target_conditions
}, # target_defaults