Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Unified Diff: test/ios/swift-wmo/test.gyp

Issue 1160773005: Support for Swift language and Clang modules for ninja generator. Base URL: https://chromium.googlesource.com/external/gyp@master
Patch Set: Fixed rare build failure when compiling with modules for multiple archs Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/ios/swift-wmo/main.m ('k') | test/ios/swift/AppDelegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/ios/swift-wmo/test.gyp
diff --git a/test/ios/swift-wmo/test.gyp b/test/ios/swift-wmo/test.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..10fcfcdca18c38b498daa01042e66d6932c0446b
--- /dev/null
+++ b/test/ios/swift-wmo/test.gyp
@@ -0,0 +1,41 @@
+{
+ 'targets': [
+ {
+ 'target_name': 'swift_wmo',
+ 'type': 'executable',
+ 'mac_bundle': '1',
+ 'xcode_settings': {
+ 'CLANG_ENABLE_MODULES': 'YES',
+ 'CLANG_ENABLE_OBJC_ARC': 'YES',
+ 'CLANG_MODULE_CACHE_PATH': '<(PRODUCT_DIR)/ModuleCache',
+ 'CODE_SIGNING_REQUIRED': 'NO',
+ 'INFOPLIST_FILE': 'Info.plist',
+ 'IPHONEOS_DEPLOYMENT_TARGET': '7.0',
+ 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/Frameworks'],
+ 'SWIFT_OPTIMIZATION_LEVEL': '-Owholemodule',
+ 'TARGETED_DEVICE_FAMILY': '1,2',
+ 'conditions': [
+ ['"<(GENERATOR)"=="xcode"', {
+ 'SDKROOT': 'iphoneos',
+ }, {
+ 'SDKROOT': 'iphonesimulator',
+ }],
+ ],
+ },
+ 'sources': [
+ 'AppDelegate.h',
+ 'AppDelegate.m',
+ 'main.m',
+ 'MySecondSwiftClass.swift',
+ 'MySwiftClass.swift',
+ ],
+ 'conditions': [
+ ['"<(GENERATOR)"=="ninja"', {
+ 'include_dirs': [
+ '<(INTERMEDIATE_DIR)',
+ ],
+ }],
+ ],
+ },
+ ],
+}
« no previous file with comments | « test/ios/swift-wmo/main.m ('k') | test/ios/swift/AppDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698