1 // This configuration file contains common build settings for all of libxpc's
3 #include "base.xcconfig"
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
10 VALID_ARCHS[sdk=macosx*] = x86_64
11 GCC_ENABLE_OBJC_EXCEPTIONS = YES
13 SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator
14 OTHER_CFLAGS = $(XPC_EXECUTABLE_OTHER_CFLAGS)
16 // Work around asinine default tools behavior of adding entitlements to every
19 // <rdar://problem/15995721>
20 // <rdar://problem/16477165>
21 WANTS_GET_TASK_ALLOW = NO
23 // Deployment linking.
24 MACH_O_TYPE = mh_execute
25 PRODUCT_NAME = xpc_executables
27 FRAMEWORK_SEARCH_PATHS = $(SDKROOT)/System/Library/PrivateFrameworks $(inherited)
29 XPC_EXECUTABLE_OTHER_LDFLAGS = $(XPC_EXECUTABLE_WORKAROUND_14483011) $(XPC_CRASHREPORTCLIENT_LDFLAGS)
30 CREATE_INFOPLIST_SECTION_IN_BINARY = YES
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
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
44 DARWIN_VARIANT_LOWER = $(DARWIN_VARIANT_LOWER_$(DARWIN_VARIANT))
45 DARWIN_VARIANT_SUFFIX = $(DARWIN_VARIANT_SUFFIX_$(DARWIN_VARIANT))