-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBUCK
37 lines (34 loc) · 906 Bytes
/
BUCK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
apple_resource(
name = 'AppResources',
dirs = [],
files = glob(['App/*.png']),
)
apple_binary(
name = 'AppBinary',
srcs = ['App/App.m'],
headers = ['App/App.h'],
frameworks = [
'$SDKROOT/System/Library/Frameworks/Foundation.framework',
'$SDKROOT/System/Library/Frameworks/UIKit.framework',
],
)
apple_bundle(
name = 'App',
binary = ':AppBinary',
deps = [':AppResources'],
tests = [':AppTest'],
extension = 'app',
info_plist = 'App/App.plist',
)
apple_test(
name = 'AppTest',
test_host_app = ':App',
extension = 'xctest',
srcs = ['test/AppTest.m'],
info_plist = 'Test/AppTest.plist',
frameworks = [
'$SDKROOT/System/Library/Frameworks/Foundation.framework',
'$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework',
'$SDKROOT/System/Library/Frameworks/UIKit.framework',
],
)