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

Unified Diff: test/mac/swift/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/mac/swift/swift_mac-Bridging-Header.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mac/swift/test.gyp
diff --git a/test/mac/swift/test.gyp b/test/mac/swift/test.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..44cd460baab0daf6783b6db5792d002550860222
--- /dev/null
+++ b/test/mac/swift/test.gyp
@@ -0,0 +1,69 @@
+{
+ 'targets': [
+ {
+ 'target_name': 'swift_mac',
+ 'type': 'executable',
+ 'mac_bundle': '1',
+ 'xcode_settings': {
+ 'INFOPLIST_FILE': 'Info.plist',
+ 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
+ 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/../Frameworks'],
+ 'SWIFT_OBJC_BRIDGING_HEADER': '<(_target_name)-Bridging-Header.h',
+ },
+ 'sources': [
+ 'AppDelegate.h',
+ 'AppDelegate.m',
+ 'main.m',
+ 'MyObjcClass.h',
+ 'MyObjcClass.m',
+ 'MySecondSwiftClass.swift',
+ 'MySwiftClass.swift',
+ ],
+ },
+ {
+ 'target_name': 'swift_mac_tests',
+ 'type': 'loadable_module',
+ 'mac_bundle': '1',
+ 'product_extension': 'xctest',
+ 'variables': {
+ 'tested_target': 'swift_mac',
+ },
+ 'xcode_settings': {
+ 'BUNDLE_LOADER': '<(PRODUCT_DIR)/<(tested_target).app/Contents/MacOS/<(tested_target)',
+ 'INFOPLIST_FILE': 'TestInfo.plist',
+ 'LD_RUNPATH_SEARCH_PATHS': [
+ '@executable_path/../Frameworks',
+ '@loader_path/../Frameworks',
+ ],
+ 'TEST_HOST': '$(BUNDLE_LOADER)',
+ },
+ 'dependencies': [
+ '<(tested_target)',
+ ],
+ 'sources': [
+ 'MyObjcTest.m',
+ 'MySwiftTest.swift',
+ ],
+ }
+ ],
+ 'target_defaults': {
+ 'xcode_settings': {
+ 'CLANG_ENABLE_MODULES': 'YES',
+ 'CLANG_ENABLE_OBJC_ARC': 'YES',
+ 'CLANG_MODULE_CACHE_PATH': '<(PRODUCT_DIR)/ModuleCache',
+ 'MACOSX_DEPLOYMENT_TARGET': '10.10',
+ 'SWIFT_OPTIMIZATION_LEVEL': '-Onone',
+ },
+ 'conditions': [
+ ['"<(GENERATOR)"=="ninja"', {
+ 'include_dirs': [
+ '<(INTERMEDIATE_DIR)',
+ ],
+ }],
+ ],
+ 'mac_framework_dirs': [
+ '$(SDKROOT)/../../../Developer/Library/Frameworks',
+ ],
+ },
+
+}
« no previous file with comments | « test/mac/swift/swift_mac-Bridging-Header.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698