OLD | NEW |
---|---|
(Empty) | |
1 # Copyright (c) 2014 Google Inc. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'make_global_settings': [ | |
7 ['CC', '/usr/bin/clang'], | |
8 ['CXX', '/usr/bin/clang++'], | |
9 ], | |
10 'target_defaults': { | |
11 'xcode_settings': { | |
12 'OTHER_CFLAGS': [ | |
13 '-fobjc-abi-version=2', | |
14 ], | |
15 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | |
16 'SDKROOT': 'iphoneos', | |
17 'IPHONEOS_DEPLOYMENT_TARGET': '8.2', | |
18 'CODE_SIGN_IDENTITY[sdk=iphoneos*]': 'iPhone Developer', | |
19 } | |
20 }, | |
21 'targets': [ | |
22 { | |
23 'target_name': 'WatchContainer', | |
24 'product_name': 'WatchContainer', | |
25 'type': 'executable', | |
26 'mac_bundle': 1, | |
27 'mac_bundle_resources': [ | |
28 'WatchContainer/Base.lproj/Main.storyboard', | |
29 ], | |
30 'sources': [ | |
31 'WatchContainer/AppDelegate.h', | |
32 'WatchContainer/AppDelegate.m', | |
33 'WatchContainer/ViewController.h', | |
34 'WatchContainer/ViewController.m', | |
35 'WatchContainer/main.m', | |
36 ], | |
37 'copies': [ | |
38 { | |
39 'destination': '<(PRODUCT_DIR)/WatchContainer.app/PlugIns', | |
40 'files': [ | |
41 '<(PRODUCT_DIR)/WatchKitExtension.appex', | |
42 ]}], | |
43 'dependencies': [ | |
44 'WatchKitExtension' | |
45 ], | |
46 'link_settings': { | |
47 'libraries': [ | |
48 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | |
49 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework', | |
50 ], | |
51 }, | |
52 'xcode_settings': { | |
53 'INFOPLIST_FILE': 'WatchContainer/Info.plist', | |
54 }, | |
55 }, | |
56 { | |
57 'target_name': 'WatchKitExtension', | |
58 'product_name': 'WatchKitExtension', | |
59 'type': 'executable', | |
60 'mac_bundle': 1, | |
61 'ios_watchkit_extension': 1, | |
62 'sources': [ | |
63 'WatchKitExtension/InterfaceController.h', | |
64 'WatchKitExtension/InterfaceController.m', | |
65 ], | |
66 'mac_bundle_resources': [ | |
67 'WatchKitExtension/Images.xcassets', | |
68 '<(PRODUCT_DIR)/WatchApp.app', | |
justincohen
2014/12/03 00:31:04
I think ninja is failing because there's no explic
dmpatierno
2014/12/03 23:09:48
I can get the test to pass with ninja now, but I'v
justincohen
2014/12/04 17:21:36
It works fine for me if I run from within Xcode, a
| |
69 ], | |
70 'dependencies': [ | |
71 'WatchApp' | |
72 ], | |
73 'link_settings': { | |
74 'libraries': [ | |
justincohen
2014/12/03 00:31:04
Doesn't this need Foundation.framework too?
dmpatierno
2014/12/03 23:09:48
The simple reference app I made does not include t
| |
75 '$(SDKROOT)/System/Library/Frameworks/WatchKit.framework', | |
justincohen
2014/12/03 00:31:04
Any idea why this shows up as a red (file not foun
dmpatierno
2014/12/03 23:09:48
I noticed this too. Everything compiles, runs, and
| |
76 ], | |
77 }, | |
78 'xcode_settings': { | |
79 'INFOPLIST_FILE': 'WatchKitExtension/Info.plist', | |
80 'SKIP_INSTALL': 'YES', | |
81 'COPY_PHASE_STRIP': 'NO', | |
82 }, | |
83 }, | |
84 { | |
85 'target_name': 'WatchApp', | |
86 'product_name': 'WatchApp', | |
87 'type': 'executable', | |
88 'mac_bundle': 1, | |
89 'ios_watch_app': 1, | |
90 'mac_bundle_resources': [ | |
91 'WatchApp/Images.xcassets', | |
92 'WatchApp/Interface.storyboard', | |
93 ], | |
94 'xcode_settings': { | |
95 'INFOPLIST_FILE': 'WatchApp/Info.plist', | |
96 'SKIP_INSTALL': 'YES', | |
97 'COPY_PHASE_STRIP': 'NO', | |
98 'TARGETED_DEVICE_FAMILY': '4', | |
99 'TARGETED_DEVICE_FAMILY[sdk=iphonesimulator*]': '1,4', | |
100 }, | |
101 }, | |
102 ], | |
103 } | |
104 | |
OLD | NEW |