]> git.saurik.com Git - apple/libpthread.git/blame - xcodescripts/pthread.xcconfig
libpthread-137.1.1.tar.gz
[apple/libpthread.git] / xcodescripts / pthread.xcconfig
CommitLineData
f1a1da6c 1#include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig"
f1a1da6c
A
2
3// Standard settings
964d3577
A
4SDKROOT = macosx.internal
5SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator
6SRCROOT_SEARCH_PATHS = $(SRCROOT) $(SRCROOT)/private $(SRCROOT)/os
f1a1da6c 7SYSTEM_FRAMEWORK_HEADERS = $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
964d3577 8HEADER_SEARCH_PATHS = $($(PRODUCT_NAME)_SEARCH_PATHS) $(SRCROOT_SEARCH_PATHS) $(SYSTEM_FRAMEWORK_HEADERS) $(SDKROOT)/usr/local/include $(inherited)
f1a1da6c
A
9ALWAYS_SEARCH_USER_PATHS = YES
10USE_HEADERMAP = NO
964d3577 11BUILD_VARIANTS = normal debug
f1a1da6c
A
12
13GCC_OPTIMIZATION_LEVEL = s
14GCC_C_LANGUAGE_STANDARD = gnu99
15GCC_ENABLE_OBJC_EXCEPTIONS = YES
16GCC_SYMBOLS_PRIVATE_EXTERN = NO
17GCC_DYNAMIC_NO_PIC = NO
18GCC_THUMB_SUPPORT = YES
19
20// Warnings
21CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
22CLANG_WARN_DOCUMENTATION_COMMENTS = YES
23GCC_WARN_64_TO_32_BIT_CONVERSION = YES
24GCC_WARN_ABOUT_RETURN_TYPE = YES
25GCC_WARN_UNINITIALIZED_AUTOS = YES
26GCC_WARN_UNUSED_VARIABLE = YES
27
28INSTALLHDRS_SCRIPT_PHASE = YES
29
30COPY_PHASE_STRIP = NO
31STRIP_INSTALLED_PRODUCT = YES
32STRIP_STYLE = debugging
33
34// Versioning
35DYLIB_CURRENT_VERSION = $(RC_ProjectSourceVersion)
36DYLIB_COMPATIBILITY_VERSION = 1
37
38// Installation paths
964d3577
A
39INSTALL_PATH = /usr/lib/system
40PUBLIC_HEADERS_FOLDER_PATH = /usr/include/pthread
41PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/pthread
f1a1da6c
A
42SKIP_INSTALL = NO
43
44// Base definitions
45// TODO: Remove -fstack-protector on _debug when it is moved to libplatform
46LINK_WITH_STANDARD_LIBRARIES = NO
47BASE_PREPROCESSOR_MACROS = __LIBC__ __DARWIN_UNIX03=1 __DARWIN_64_BIT_INO_T=1 __DARWIN_NON_CANCELABLE=1 __DARWIN_VERS_1050=1 _FORTIFY_SOURCE=0 __PTHREAD_BUILDING_PTHREAD__=1 $(SIM_PREPROCESSOR_MACROS)
964d3577
A
48GCC_PREPROCESSOR_DEFINITIONS = $(BASE_PREPROCESSOR_MACROS)
49
50OTHER_CFLAGS = -fno-stack-protector -fdollars-in-identifiers -fno-common -fno-builtin -momit-leaf-frame-pointer $($(PRODUCT_NAME)_CFLAGS)
f1a1da6c
A
51OTHER_CFLAGS_debug = -fno-stack-protector -fno-inline -O0 -DDEBUG=1
52OTHER_LDFLAGS = -Wl,-alias_list,$(SRCROOT)/xcodescripts/pthread.aliases -Wl,-umbrella,System -L/usr/lib/system -lsystem_kernel -lsystem_platform -ldyld -lcompiler_rt $(UPLINK_LDFLAGS) $(CR_LDFLAGS)
f1a1da6c
A
53
54// CrashReporter
55CR_LDFLAGS = -lCrashReporterClient
56
57ORDER_FILE = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libsystem_pthread.order
58ORDER_FILE[sdk=iphonesimulator*] =
59
60// Simulator build rules
964d3577 61EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*] = *.c *.s
f1a1da6c
A
62SKIP_INSTALL[sdk=iphonesimulator*] = YES
63OTHER_LDFLAGS[sdk=iphonesimulator*] =