]> git.saurik.com Git - apple/system_cmds.git/blame - xcconfigs/executable.xcconfig
system_cmds-880.100.5.tar.gz
[apple/system_cmds.git] / xcconfigs / executable.xcconfig
CommitLineData
cf37c299
A
1// This configuration file contains common build settings for all of libxpc's
2// executable targets.
3#include "base.xcconfig"
4
5XPC_EXECUTABLE_OTHER_CFLAGS = $(XPC_BUILD_OTHER_CFLAGS) $(XPC_BUILD_EXPORT_DEFAULTS) -DXPC_BUILD_TARGET_EXECUTABLE=1
6XPC_EXECUTABLE_OTHER_LDFLAGS = $(XPC_CRASHREPORTCLIENT_LDFLAGS)
7XPC_EXECUTABLE_WORKAROUND_14483011 = -lSystem -lobjc
8
9// Building.
10VALID_ARCHS[sdk=macosx*] = x86_64
11GCC_ENABLE_OBJC_EXCEPTIONS = YES
12INFOPLIST_FILE =
13SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator
14OTHER_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>
21WANTS_GET_TASK_ALLOW = NO
22
23// Deployment linking.
24MACH_O_TYPE = mh_execute
25PRODUCT_NAME = xpc_executables
26EXECUTABLE_PREFIX =
27FRAMEWORK_SEARCH_PATHS = $(SDKROOT)/System/Library/PrivateFrameworks $(inherited)
28STRIP_STYLE = all
29XPC_EXECUTABLE_OTHER_LDFLAGS = $(XPC_EXECUTABLE_WORKAROUND_14483011) $(XPC_CRASHREPORTCLIENT_LDFLAGS)
30CREATE_INFOPLIST_SECTION_IN_BINARY = YES
31
32// Output our launchd plist as binary on iOS.
33APPLY_RULES_IN_COPY_FILES[sdk=iphoneos*] = YES
34PLIST_FILE_OUTPUT_FORMAT[sdk=iphoneos*] = binary
35
36// For building variants
37DARWIN_VARIANT_LOWER_RELEASE = release
38DARWIN_VARIANT_SUFFIX_RELEASE =
39DARWIN_VARIANT_LOWER_DEVELOPMENT = development
40DARWIN_VARIANT_SUFFIX_DEVELOPMENT = .development
41DARWIN_VARIANT_LOWER_DEBUG = debug
42DARWIN_VARIANT_SUFFIX_DEBUG = .debug
43
44DARWIN_VARIANT_LOWER = $(DARWIN_VARIANT_LOWER_$(DARWIN_VARIANT))
45DARWIN_VARIANT_SUFFIX = $(DARWIN_VARIANT_SUFFIX_$(DARWIN_VARIANT))