]> git.saurik.com Git - apple/libsystem.git/blame - Libsystem.xcconfig
Libsystem-1281.100.1.tar.gz
[apple/libsystem.git] / Libsystem.xcconfig
CommitLineData
afef526e 1#include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig"
2fbbb8fa 2
c06d156a
A
3// NO means only libSystem.B_asan.dylib will be ASanified.
4// YES means even the normal variant, libSystem.B.dylib, will be ASanified.
421cd580
A
5//
6// XBS sets RC_SUPPORT_ADDRESS_SANITIZATION=1 to trigger the ASanified normal variant.
b8ce8438
A
7ASAN_IN_NORMAL_VARIANT_DK_ = YES
8ASAN_IN_NORMAL_VARIANT_DK_1 = NO
9ASAN_IN_NORMAL_VARIANT_RC_1 = $(ASAN_IN_NORMAL_VARIANT_DK_$(DRIVERKIT))
10ASAN_IN_NORMAL_VARIANT_RC_ = NO
11ASAN_IN_NORMAL_VARIANT = $(ASAN_IN_NORMAL_VARIANT_RC_$(RC_SUPPORT_ADDRESS_SANITIZATION))
c06d156a
A
12
13ASAN_CFLAGS_ =
14ASAN_CFLAGS_YES = -DCURRENT_VARIANT_asan=1
15ASAN_LDFLAGS_ =
16SHARED_ASAN_LDFLAGS = -L $(SDKROOT)/usr/local/lib/sanitizers -Xlinker -not_for_dyld_shared_cache -rpath /usr/local/lib/sanitizers/
17ASAN_LDFLAGS_YES[sdk=macosx*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_osx_dynamic
18ASAN_LDFLAGS_YES[sdk=iphoneos*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_ios_dynamic
19ASAN_LDFLAGS_YES[sdk=watchos*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_watchos_dynamic
20ASAN_LDFLAGS_YES[sdk=appletvos*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_tvos_dynamic
21ASAN_LDFLAGS_YES[sdk=bridgeos*] = $(SHARED_ASAN_LDFLAGS) -Xlinker -upward-lclang_rt.asan_bridgeos_dynamic
22ASAN_IN_NORMAL_VARIANT_CFLAGS = $(ASAN_CFLAGS_$(ASAN_IN_NORMAL_VARIANT))
23ASAN_IN_NORMAL_VARIANT_LDFLAGS = $(ASAN_LDFLAGS_$(ASAN_IN_NORMAL_VARIANT))
24
b8ce8438
A
25SDK_INSTALL_VARIANT = $(SDK_INSTALL_VARIANT_$(DRIVERKIT))
26SDK_INSTALL_VARIANT_1 = driverkit
27SDK_INSTALL_VARIANT_ = default
28SDK_INSTALL_ROOT = $(SDK_INSTALL_ROOT_$(SDK_INSTALL_VARIANT))
29SDK_INSTALL_ROOT_driverkit = $(DRIVERKITROOT)
30SDK_INSTALL_HEADERS_ROOT = $(SDK_INSTALL_HEADERS_ROOT_$(SDK_INSTALL_VARIANT))
31SDK_INSTALL_HEADERS_ROOT_driverkit = $(SDK_INSTALL_ROOT)/$(SDK_RUNTIME_HEADERS_PREFIX)
32SDK_RUNTIME_HEADERS_PREFIX = Runtime
33
34BUILD_VARIANTS = $(BUILD_VARIANTS_$(SDK_INSTALL_VARIANT))
35BUILD_VARIANTS_default = normal debug asan
36BUILD_VARIANTS_driverkit = normal debug
9acf5127 37SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator
b8ce8438
A
38INSTALL_PATH = $(SDK_INSTALL_ROOT)/usr/lib
39INSTALL_PATH_PREFIX = $(SDK_INSTALL_ROOT)
40INSTALL_PATH_FRAMEWORK_PREFIX = $(SDK_INSTALL_HEADERS_ROOT)
afef526e 41DYLIB_CURRENT_VERSION = $(CURRENT_VERSION_STRING_$(RC_XBS))
b8ce8438
A
42// used in PRODUCT_NAME of dylib target
43DYLIB_NAME_VERSION_SUFFIX = .B
44DYLIB_NAME_VERSION_SUFFIX[sdk=driverkit*] =
afef526e
A
45ORDER_FILE = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libSystem.order
46ORDER_FILE[sdk=iphonesimulator*] =
b8ce8438
A
47ORDER_FILE[sdk=driverkit*] =
48SYSTEM_HEADER_SEARCH_PATHS = $(SDKROOT)/$(SDK_INSTALL_HEADERS_ROOT)/System/Library/Frameworks/System.framework/PrivateHeaders $(SDKROOT)/$(SDK_INSTALL_HEADERS_ROOT)/usr/local/include $(SDKROOT)/$(SDK_INSTALL_HEADERS_ROOT)/usr/include
49SYSTEM_FRAMEWORK_SEARCH_PATHS = $(SDKROOT)/$(SDK_INSTALL_HEADERS_ROOT)/System/Library/PrivateFrameworks $(SDKROOT)/$(SDK_INSTALL_HEADERS_ROOT)/System/Library/Frameworks
c06d156a 50OTHER_CFLAGS = -include $(BUILT_PRODUCTS_DIR)/config.$(CURRENT_ARCH).$(CURRENT_VARIANT).h -DCURRENT_VARIANT_$(CURRENT_VARIANT)=1 $(ASAN_IN_NORMAL_VARIANT_CFLAGS)
b8ce8438 51OTHER_LDFLAGS = -Wl,-search_paths_first -nodefaultlibs @$(BUILT_PRODUCTS_DIR)/linker_arguments.$(CURRENT_ARCH).$(CURRENT_VARIANT).txt $(ASAN_IN_NORMAL_VARIANT_LDFLAGS) $(DRIVERKIT_LDFLAGS)
c06d156a 52OTHER_LDFLAGS_asan = $(ASAN_LDFLAGS_YES)
b8ce8438
A
53// whitelist of libraries in DriverKit SDK allowed to link directly against libSystem.dylib (outside of the umbrella)
54DRIVERKIT_LDFLAGS[sdk=driverkit*] = -Wl,-allowable_client,c++ -Wl,-allowable_client,c++abi -Wl,-allowable_client,DriverKit
afef526e
A
55LD_GENERATE_MAP_FILE = YES
56EXECUTABLE_PREFIX = lib
b8ce8438
A
57PRIVATE_HEADERS_FOLDER_PATH = $(SDK_INSTALL_HEADERS_ROOT)/usr/local/include/os
58LIBRARY_SEARCH_PATHS = $(SDKROOT)/$(SDK_INSTALL_ROOT)/usr/lib/system $(SDKROOT)/$(SDK_INSTALL_ROOT)/usr/local/lib/system
afef526e
A
59GCC_NO_COMMON_BLOCKS = YES
60GCC_WARN_64_TO_32_BIT_CONVERSION = YES
61GCC_WARN_ABOUT_RETURN_TYPE = YES
62GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
63GCC_TREAT_WARNINGS_AS_ERRORS = YES
64GCC_WARN_UNUSED_VARIABLE = YES
65CURRENT_VERSION_STRING_ = 159
66CURRENT_VERSION_STRING_YES = $(CURRENT_PROJECT_VERSION)
9acf5127
A
67INFOPLIST_INSTALL_PATH = Versions/B/Resources
68INFOPLIST_INSTALL_PATH[sdk=iphoneos*] =
69INFOPLIST_INSTALL_PATH[sdk=*simulator*] =
70INFOPLIST_INSTALL_PATH[sdk=watchos*] =
a8f6861e
A
71INFOPLIST_OUTPUT_FORMAT = binary
72INFOPLIST_OUTPUT_FORMAT[sdk=macosx*] = xml
73APPLY_RULES_IN_COPY_FILES = YES
74PLIST_FILE_OUTPUT_FORMAT = binary
75PLIST_FILE_OUTPUT_FORMAT[sdk=macosx*] = xml
b8ce8438 76EXCLUDED_SOURCE_FILE_NAMES[sdk=driverkit*] = Info.plist
a8f6861e
A
77
78// override presence of $(EXECUTABLE_VARIANT_SUFFIX) in the default EXECUTABLE_NAME rdar://26234727
79DYLIB_INSTALL_NAME_EXECUTABLE_NAME = $(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_SUFFIX)
80DYLIB_INSTALL_NAME_EXECUTABLE_PATH = $(DYLIB_INSTALL_NAME_EXECUTABLE_NAME)
81LD_DYLIB_INSTALL_NAME = $(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(DYLIB_INSTALL_NAME_EXECUTABLE_PATH)
a85a94cf
A
82
83IS_ZIPPERED = YES