forked from dropbox/pilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pilot.gyp
135 lines (133 loc) · 4.09 KB
/
Pilot.gyp
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
'variables': {
'pilot_core_sources': [
'<!@(find Core/Source -regex ".*\.swift")',
'<!@(find Core/Source -regex ".*\.cpp")',
],
'pilot_ui_ios_sources': [
'UI/Source/PlatformAliases.swift',
'<!@(find UI/Source/Extensions -regex ".*\.swift")',
'<!@(find UI/Source/Layout -regex ".*\.swift")',
'<!@(find UI/Source/CollectionViews -regex ".*\.swift")',
'<!@(find UI/Source/Alerts -regex ".*\.swift")',
],
'pilot_ui_mac_sources': [
'UI/Source/PlatformAliases.swift',
'<!@(find UI/Source/Extensions -regex ".*\.swift")',
'<!@(find UI/Source/Layout -regex ".*\.swift")',
'<!@(find UI/Source/CollectionViews -regex ".*\.swift")',
'<!@(find UI/Source/AppKitExtensions -regex ".*\.swift")',
],
},
'conditions': [
['OS=="ios"',
{
'targets': [
{
'target_name': 'Pilot',
'mac_bundle': 1,
'hard_dependency': 1,
'type': 'static_library',
'mac_framework_headers': [
'Core/Source/Pilot.h',
],
'sources': [
'<@(pilot_core_sources)',
],
'xcode_settings': {
'SWIFT_VERSION': '4.2',
'INFOPLIST_FILE': 'Core/Source/iOS-Info.plist',
},
'xcode_config_file': 'Configuration/Pilot-Target.xcconfig',
'link_settings': {
'libraries': [ '$(SDKROOT)/System/Library/Frameworks/Foundation.framework' ],
},
},
{
'target_name': 'PilotUI',
'mac_bundle': 1,
'hard_dependency': 1,
'type': 'static_library',
'mac_framework_headers': [
'UI/Source/PilotUI.h',
],
'sources': [
'<@(pilot_ui_ios_sources)',
],
'dependencies': [
'Pilot',
],
'xcode_settings': {
'SWIFT_VERSION': '4.2',
'INFOPLIST_FILE': 'UI/Source/Info-iOS.plist',
},
'xcode_config_file': 'Configuration/Pilot-Target.xcconfig',
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
'$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
],
},
},
],
},
],
['OS=="mac"',
{
'targets': [
{
'target_name': 'Pilot',
'mac_bundle': 1,
'hard_dependency': 1,
'type': 'static_library',
'mac_framework_headers': [
'Core/Source/Pilot.h',
],
'sources': [
'<@(pilot_core_sources)',
],
'xcode_settings': {
'SWIFT_VERSION': '4.2',
'INFOPLIST_FILE': 'Core/Source/Mac-Info.plist',
},
'xcode_config_file': 'Configuration/Pilot-Target.xcconfig',
},
{
'target_name': 'PilotUI',
'mac_bundle': 1,
'hard_dependency': 1,
'type': 'static_library',
'mac_framework_headers': [
'UI/Source/PilotUI.h',
],
'sources': [
'<@(pilot_ui_mac_sources)',
],
'dependencies': [
'Pilot',
],
'xcode_settings': {
'SWIFT_VERSION': '4.2',
'INFOPLIST_FILE': 'UI/Source/Info-macOS.plist',
},
'xcode_config_file': 'Configuration/Pilot-Target.xcconfig',
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
],
},
},
],
},
],
],
'configurations': {
'Debug': {
'xcode_config_file': 'Configuration/Pilot-Project-Debug.xcconfig',
},
'Release': {
'xcode_config_file': 'Configuration/Pilot-Project-Release.xcconfig',
},
},
}