summaryrefslogtreecommitdiffstats
path: root/base/base.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'base/base.gypi')
-rw-r--r--base/base.gypi11
1 files changed, 10 insertions, 1 deletions
diff --git a/base/base.gypi b/base/base.gypi
index bdade59..d88824a 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -672,7 +672,7 @@
['include', '^worker_pool_linux\\.cc$'],
],
}],
- ['OS == "ios"', {
+ ['OS == "ios" and _toolset != "host"', {
'sources/': [
# Pull in specific Mac files for iOS (which have been filtered out
# by file name rules).
@@ -701,6 +701,15 @@
'message_pump_libevent.cc'
],
}],
+ ['OS == "ios" and _toolset == "host"', {
+ 'sources/': [
+ # Copied filename_rules to switch from iOS to Mac inclusions.
+ ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
+ ['include', '(^|/)(cocoa|mac)/'],
+ ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
+ ['exclude', '(^|/)ios/'],
+ ]
+ }],
['OS != "mac" or >(nacl_untrusted_build)==1', {
'sources!': [
'mac/scoped_aedesc.h'