Index: base/base.gyp |
diff --git a/base/base.gyp b/base/base.gyp |
index 42e270f78fbbae4f95fcfed5e4d888142b20b4a8..ad4dd226792855d23efd8a8a50685235b3c4858f 100644 |
--- a/base/base.gyp |
+++ b/base/base.gyp |
@@ -216,7 +216,7 @@ |
], |
}, |
}], |
- ['OS != "win" and OS != "ios"', { |
+ ['OS != "win" and (OS != "ios" or _toolset == "host")', { |
'dependencies': ['../third_party/libevent/libevent.gyp:libevent'], |
},], |
['component=="shared_library"', { |
@@ -295,6 +295,9 @@ |
}], |
], |
}], |
+ ['OS == "ios"', { |
+ 'toolsets': ['host', 'target'], |
+ }], |
], |
'export_dependent_settings': [ |
'base', |
@@ -887,6 +890,9 @@ |
'base_java_unittest_support', |
], |
}], |
+ ['OS == "ios"', { |
+ 'toolsets': ['host', 'target'], |
+ }], |
], |
'sources': [ |
'test/expectations/expectation.cc', |
@@ -986,11 +992,20 @@ |
# by file name rules). |
['include', '^test/test_file_util_mac\\.cc$'], |
], |
+ }], |
+ ['OS == "ios" and _toolset == "target"', { |
'sources!': [ |
# iOS uses its own unit test launcher. |
'test/launcher/unit_test_launcher.cc', |
], |
}], |
+ ['OS == "ios" and _toolset == "host"', { |
+ 'sources!': [ |
+ 'test/launcher/unit_test_launcher_ios.cc', |
+ 'test/test_support_ios.h', |
+ 'test/test_support_ios.mm', |
+ ], |
+ }], |
], # target_conditions |
}, |
{ |
@@ -1012,6 +1027,21 @@ |
}, |
], |
'conditions': [ |
+ ['OS=="ios" and "<(GENERATOR)"=="ninja"', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'test_launcher', |
+ 'toolsets': ['host'], |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ 'test_support_base', |
+ ], |
+ 'sources': [ |
+ 'test/launcher/test_launcher_ios.cc', |
+ ], |
+ }, |
+ ], |
+ }], |
['OS!="ios"', { |
'targets': [ |
{ |
@@ -1381,7 +1411,6 @@ |
{ |
# GN: //base:base_android_java_enums_srcjar |
'target_name': 'base_java_library_load_from_apk_status_codes', |
- 'toolsets': ['host', 'target'], |
'type': 'none', |
'variables': { |
'source_file': 'android/library_loader/library_load_from_apk_status_codes.h' |