]>
Commit | Line | Data |
---|---|---|
cf37c299 A |
1 | // This configuration file contains common build settings for all of libxpc's |
2 | // executable targets. | |
3 | #include "base.xcconfig" | |
4 | ||
5 | XPC_EXECUTABLE_OTHER_CFLAGS = $(XPC_BUILD_OTHER_CFLAGS) $(XPC_BUILD_EXPORT_DEFAULTS) -DXPC_BUILD_TARGET_EXECUTABLE=1 | |
6 | XPC_EXECUTABLE_OTHER_LDFLAGS = $(XPC_CRASHREPORTCLIENT_LDFLAGS) | |
7 | XPC_EXECUTABLE_WORKAROUND_14483011 = -lSystem -lobjc | |
8 | ||
9 | // Building. | |
10 | VALID_ARCHS[sdk=macosx*] = x86_64 | |
11 | GCC_ENABLE_OBJC_EXCEPTIONS = YES | |
12 | INFOPLIST_FILE = | |
13 | SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator | |
14 | OTHER_CFLAGS = $(XPC_EXECUTABLE_OTHER_CFLAGS) | |
15 | ||
16 | // Work around asinine default tools behavior of adding entitlements to every | |
17 | // generated binary. | |
18 | // | |
19 | // <rdar://problem/15995721> | |
20 | // <rdar://problem/16477165> | |
21 | WANTS_GET_TASK_ALLOW = NO | |
22 | ||
23 | // Deployment linking. | |
24 | MACH_O_TYPE = mh_execute | |
25 | PRODUCT_NAME = xpc_executables | |
26 | EXECUTABLE_PREFIX = | |
27 | FRAMEWORK_SEARCH_PATHS = $(SDKROOT)/System/Library/PrivateFrameworks $(inherited) | |
28 | STRIP_STYLE = all | |
29 | XPC_EXECUTABLE_OTHER_LDFLAGS = $(XPC_EXECUTABLE_WORKAROUND_14483011) $(XPC_CRASHREPORTCLIENT_LDFLAGS) | |
30 | CREATE_INFOPLIST_SECTION_IN_BINARY = YES | |
31 | ||
32 | // Output our launchd plist as binary on iOS. | |
33 | APPLY_RULES_IN_COPY_FILES[sdk=iphoneos*] = YES | |
34 | PLIST_FILE_OUTPUT_FORMAT[sdk=iphoneos*] = binary | |
35 | ||
36 | // For building variants | |
37 | DARWIN_VARIANT_LOWER_RELEASE = release | |
38 | DARWIN_VARIANT_SUFFIX_RELEASE = | |
39 | DARWIN_VARIANT_LOWER_DEVELOPMENT = development | |
40 | DARWIN_VARIANT_SUFFIX_DEVELOPMENT = .development | |
41 | DARWIN_VARIANT_LOWER_DEBUG = debug | |
42 | DARWIN_VARIANT_SUFFIX_DEBUG = .debug | |
43 | ||
44 | DARWIN_VARIANT_LOWER = $(DARWIN_VARIANT_LOWER_$(DARWIN_VARIANT)) | |
45 | DARWIN_VARIANT_SUFFIX = $(DARWIN_VARIANT_SUFFIX_$(DARWIN_VARIANT)) |