-
Notifications
You must be signed in to change notification settings - Fork 496
Expand file tree
/
Copy pathproject.yml
More file actions
320 lines (306 loc) · 11 KB
/
Copy pathproject.yml
File metadata and controls
320 lines (306 loc) · 11 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
name: FBSimulatorControl
options:
deploymentTarget:
macOS: "12.0"
createIntermediateGroups: true
groupSortPosition: top
bundleIdPrefix: com.facebook
configFiles:
Debug: Configuration/Shared.xcconfig
Release: Configuration/Shared.xcconfig
settings:
base:
HEADER_SEARCH_PATHS: $(inherited) $(SRCROOT)/PrivateHeaders
targets:
FBControlCore:
type: framework
platform: macOS
configFiles:
Debug: FBControlCore/FBControlCore.xcconfig
Release: FBControlCore/FBControlCore.xcconfig
sources:
- path: FBControlCore
excludes:
- "**/*-Info.plist"
- "**/*.xcconfig"
settings:
base:
INFOPLIST_FILE: $(SRCROOT)/FBControlCore/FBControlCore-Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.FBControlCore
PRODUCT_NAME: FBControlCore
DEFINES_MODULE: YES
MACH_O_TYPE: staticlib
SWIFT_VERSION: "6.0"
# Mixed-language workaround: Xcode 26 omits the Swift module's emit
# directory from HEADER_SEARCH_PATHS, so `#import "FBControlCore-Swift.h"`
# in .m files fails to find the Swift-generated header. Add the per-arch
# Swift output dir explicitly.
HEADER_SEARCH_PATHS: $(inherited) $(SRCROOT)/PrivateHeaders $(OBJECT_FILE_DIR_normal)/$(CURRENT_ARCH)
dependencies:
- sdk: AVFoundation.framework
- sdk: Cocoa.framework
- sdk: CoreGraphics.framework
- sdk: CoreMedia.framework
- sdk: Foundation.framework
- sdk: ServiceManagement.framework
FBControlCoreTests:
type: bundle.unit-test
platform: macOS
configFiles:
Debug: FBControlCoreTests/FBControlCoreTests.xcconfig
Release: FBControlCoreTests/FBControlCoreTests.xcconfig
sources:
- path: FBControlCoreTests
excludes:
- "**/*-Info.plist"
- "**/*.xcconfig"
settings:
base:
INFOPLIST_FILE: $(SRCROOT)/FBControlCoreTests/FBControlCoreTests-Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.FBControlCoreTests
PRODUCT_NAME: FBControlCoreTests
dependencies:
- target: FBControlCore
- sdk: XCTest.framework
XCTestBootstrap:
type: framework
platform: macOS
configFiles:
Debug: XCTestBootstrap/XCTestBootstrap.xcconfig
Release: XCTestBootstrap/XCTestBootstrap.xcconfig
sources:
- path: XCTestBootstrap
excludes:
- "**/*-Info.plist"
- "**/*.xcconfig"
- "**/*.md"
- "**/*.modulemap"
- path: Shims/Shimulator/Tools/FBXCTestConstants.h
headerVisibility: project
settings:
base:
INFOPLIST_FILE: $(SRCROOT)/XCTestBootstrap/XCTestBootstrap-Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.XCTestBootstrap
PRODUCT_NAME: XCTestBootstrap
DEFINES_MODULE: YES
MACH_O_TYPE: staticlib
SWIFT_VERSION: "6.0"
MODULEMAP_FILE: $(SRCROOT)/XCTestBootstrap/module.modulemap
HEADER_SEARCH_PATHS: $(inherited) $(SRCROOT)/Shims/Shimulator/Tools
dependencies:
- target: FBControlCore
embed: false
- sdk: Cocoa.framework
- sdk: Foundation.framework
- sdk: IOKit.framework
XCTestBootstrapTests:
type: bundle.unit-test
platform: macOS
configFiles:
Debug: XCTestBootstrapTests/XCTestBootstrapTests.xcconfig
Release: XCTestBootstrapTests/XCTestBootstrapTests.xcconfig
sources:
- path: XCTestBootstrapTests
excludes:
- "**/*-Info.plist"
- "**/*.xcconfig"
settings:
base:
INFOPLIST_FILE: $(SRCROOT)/XCTestBootstrapTests/XCTestBootstrapTests-Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.XCTestBootstrapTests
PRODUCT_NAME: XCTestBootstrapTests
dependencies:
- target: XCTestBootstrap
- sdk: XCTest.framework
FBSimulatorControl:
type: framework
platform: macOS
configFiles:
Debug: FBSimulatorControl/FBSimulatorControl.xcconfig
Release: FBSimulatorControl/FBSimulatorControl.xcconfig
sources:
- path: FBSimulatorControl
excludes:
- "**/*-Info.plist"
- "**/*.xcconfig"
settings:
base:
INFOPLIST_FILE: $(SRCROOT)/FBSimulatorControl/FBSimulatorControl-Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.FBSimulatorControl
PRODUCT_NAME: FBSimulatorControl
DEFINES_MODULE: YES
MACH_O_TYPE: staticlib
SWIFT_VERSION: "6.0"
# Mixed-language workaround: see FBControlCore for rationale.
HEADER_SEARCH_PATHS: $(inherited) $(SRCROOT)/PrivateHeaders $(OBJECT_FILE_DIR_normal)/$(CURRENT_ARCH)
# CoreSimulator and SimulatorKit are private Apple frameworks living in
# $(DEVELOPER_DIR)/Library/PrivateFrameworks; they're not on the public SDK search path.
FRAMEWORK_SEARCH_PATHS: $(inherited) $(DEVELOPER_DIR)/Library/PrivateFrameworks
# Wrap the reverse-engineered headers under PrivateHeaders/<Name>/ as Clang
# modules so Swift can `import CoreSimulator`, `import SimulatorKit`, etc.
# Mirrors `make_private_header_frameworks()` in fbobjc/Tools/idb/defs.bzl.
OTHER_SWIFT_FLAGS: $(inherited) -Xcc -fmodule-map-file=$(SRCROOT)/PrivateHeaders/CoreSimulator/module.modulemap -Xcc -fmodule-map-file=$(SRCROOT)/PrivateHeaders/SimulatorApp/module.modulemap -Xcc -fmodule-map-file=$(SRCROOT)/PrivateHeaders/SimulatorKit/module.modulemap -Xcc -fmodule-map-file=$(SRCROOT)/PrivateHeaders/AXRuntime/module.modulemap -Xcc -fmodule-map-file=$(SRCROOT)/PrivateHeaders/AccessibilityPlatformTranslation/module.modulemap
# CoreSimulator and AccessibilityPlatformTranslation are loaded at
# runtime. Swift generates direct class references that must be satisfied
# at link time, so weak-link against the TBD stub. SimulatorKit is
# header-only — no symbols are referenced from compiled code.
OTHER_LDFLAGS: $(inherited) -weak_library $(SRCROOT)/PrivateHeaders/CoreSimulator/CoreSimulator.tbd -weak_library $(SRCROOT)/PrivateHeaders/AccessibilityPlatformTranslation/AccessibilityPlatformTranslation.tbd
dependencies:
- target: FBControlCore
embed: false
- target: XCTestBootstrap
embed: false
- sdk: AVFoundation.framework
- sdk: Accelerate.framework
- sdk: Cocoa.framework
- sdk: CoreGraphics.framework
- sdk: CoreImage.framework
- sdk: CoreMedia.framework
- sdk: CoreVideo.framework
- sdk: Foundation.framework
- sdk: IOSurface.framework
- sdk: Metal.framework
- sdk: UniformTypeIdentifiers.framework
- sdk: VideoToolbox.framework
FBSimulatorControlTests:
type: bundle.unit-test
platform: macOS
configFiles:
Debug: FBSimulatorControlTests/FBSimulatorControlTests.xcconfig
Release: FBSimulatorControlTests/FBSimulatorControlTests.xcconfig
sources:
- path: FBSimulatorControlTests
excludes:
- "**/*-Info.plist"
- "**/*.xcconfig"
- path: FBControlCoreTests/Templates
settings:
base:
INFOPLIST_FILE: $(SRCROOT)/FBSimulatorControlTests/FBSimulatorControlTests-Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.FBSimulatorControlTests
PRODUCT_NAME: FBSimulatorControlTests
dependencies:
- target: FBControlCore
- target: XCTestBootstrap
- target: FBSimulatorControl
- sdk: XCTest.framework
- sdk: Metal.framework
FBDeviceControl:
type: framework
platform: macOS
configFiles:
Debug: FBDeviceControl/FBDeviceControl.xcconfig
Release: FBDeviceControl/FBDeviceControl.xcconfig
sources:
- path: FBDeviceControl
excludes:
- "**/*-Info.plist"
- "**/*.xcconfig"
- "**/*.md"
settings:
base:
INFOPLIST_FILE: $(SRCROOT)/FBDeviceControl/FBDeviceControl-Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.FBDeviceControl
PRODUCT_NAME: FBDeviceControl
DEFINES_MODULE: YES
MACH_O_TYPE: staticlib
SWIFT_VERSION: "6.0"
dependencies:
- target: FBControlCore
embed: false
- target: XCTestBootstrap
embed: false
- sdk: AVFoundation.framework
- sdk: Cocoa.framework
- sdk: CoreGraphics.framework
- sdk: CoreMedia.framework
- sdk: CoreMediaIO.framework
- sdk: CoreVideo.framework
- sdk: Foundation.framework
FBDeviceControlTests:
type: bundle.unit-test
platform: macOS
configFiles:
Debug: FBDeviceControlTests/FBDeviceControlTests.xcconfig
Release: FBDeviceControlTests/FBDeviceControlTests.xcconfig
sources:
- path: FBDeviceControlTests
excludes:
- "**/*-Info.plist"
- "**/*.xcconfig"
settings:
base:
INFOPLIST_FILE: $(SRCROOT)/FBDeviceControlTests/FBDeviceControlTests-Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.FBDeviceControlTests
PRODUCT_NAME: FBDeviceControlTests
dependencies:
- target: FBControlCore
- target: XCTestBootstrap
- target: FBDeviceControl
- sdk: XCTest.framework
CompanionUtilities:
type: framework
platform: macOS
deploymentTarget: "12.0"
sources:
- path: CompanionUtilities
settings:
base:
MACOSX_DEPLOYMENT_TARGET: "12.0"
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.CompanionUtilities
PRODUCT_NAME: CompanionUtilities
DEFINES_MODULE: YES
MACH_O_TYPE: staticlib
SWIFT_VERSION: "6.0"
GENERATE_INFOPLIST_FILE: YES
# The @TaskLocal macro lives in SwiftMacros plugin and sometimes can't
# be loaded under Xcode 26's plugin sandbox; disable the frontend
# sandbox so swift-plugin-server can spawn the macro implementation.
OTHER_SWIFT_FLAGS: $(inherited) -Xfrontend -disable-sandbox
dependencies:
- sdk: Foundation.framework
CompanionUtilitiesTests:
type: bundle.unit-test
platform: macOS
deploymentTarget: "12.0"
sources:
- path: CompanionUtilitiesTests
settings:
base:
MACOSX_DEPLOYMENT_TARGET: "12.0"
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.CompanionUtilitiesTests
PRODUCT_NAME: CompanionUtilitiesTests
SWIFT_VERSION: "5.9"
GENERATE_INFOPLIST_FILE: YES
dependencies:
- target: CompanionUtilities
- sdk: XCTest.framework
CompanionLib:
type: framework
platform: macOS
deploymentTarget: "12.0"
sources:
- path: CompanionLib
excludes:
- "**/*-Info.plist"
settings:
base:
MACOSX_DEPLOYMENT_TARGET: "12.0"
PRODUCT_BUNDLE_IDENTIFIER: com.facebook.CompanionLib
PRODUCT_NAME: CompanionLib
DEFINES_MODULE: YES
MACH_O_TYPE: staticlib
SWIFT_VERSION: "6.0"
GENERATE_INFOPLIST_FILE: YES
dependencies:
- target: FBControlCore
embed: false
- target: XCTestBootstrap
embed: false
- target: FBSimulatorControl
embed: false
- target: FBDeviceControl
embed: false
- target: CompanionUtilities
embed: false
- sdk: Foundation.framework