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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « test/mac/swift/swift_mac-Bridging-Header.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {
2 'targets': [
3 {
4 'target_name': 'swift_mac',
5 'type': 'executable',
6 'mac_bundle': '1',
7 'xcode_settings': {
8 'INFOPLIST_FILE': 'Info.plist',
9 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
10 'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/../Frameworks'],
11 'SWIFT_OBJC_BRIDGING_HEADER': '<(_target_name)-Bridging-Header.h',
12 },
13 'sources': [
14 'AppDelegate.h',
15 'AppDelegate.m',
16 'main.m',
17 'MyObjcClass.h',
18 'MyObjcClass.m',
19 'MySecondSwiftClass.swift',
20 'MySwiftClass.swift',
21 ],
22 },
23 {
24 'target_name': 'swift_mac_tests',
25 'type': 'loadable_module',
26 'mac_bundle': '1',
27 'product_extension': 'xctest',
28 'variables': {
29 'tested_target': 'swift_mac',
30 },
31 'xcode_settings': {
32 'BUNDLE_LOADER': '<(PRODUCT_DIR)/<(tested_target).app/Contents/MacOS/<(t ested_target)',
33 'INFOPLIST_FILE': 'TestInfo.plist',
34 'LD_RUNPATH_SEARCH_PATHS': [
35 '@executable_path/../Frameworks',
36 '@loader_path/../Frameworks',
37 ],
38 'TEST_HOST': '$(BUNDLE_LOADER)',
39 },
40 'dependencies': [
41 '<(tested_target)',
42 ],
43 'sources': [
44 'MyObjcTest.m',
45 'MySwiftTest.swift',
46 ],
47 }
48 ],
49 'target_defaults': {
50 'xcode_settings': {
51 'CLANG_ENABLE_MODULES': 'YES',
52 'CLANG_ENABLE_OBJC_ARC': 'YES',
53 'CLANG_MODULE_CACHE_PATH': '<(PRODUCT_DIR)/ModuleCache',
54 'MACOSX_DEPLOYMENT_TARGET': '10.10',
55 'SWIFT_OPTIMIZATION_LEVEL': '-Onone',
56 },
57 'conditions': [
58 ['"<(GENERATOR)"=="ninja"', {
59 'include_dirs': [
60 '<(INTERMEDIATE_DIR)',
61 ],
62 }],
63 ],
64 'mac_framework_dirs': [
65 '$(SDKROOT)/../../../Developer/Library/Frameworks',
66 ],
67 },
68
69 }
OLDNEW
« 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