1 #include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig"
2 #include "<DEVELOPER_DIR>/AppleInternal/XcodeConfig/SimulatorSupport.xcconfig"
4 // Set INSTALL_PATH[sdk=macosx*] when SimulatorSupport.xcconfig is unavailable
5 INSTALL_PATH[sdk=macosx*] = $(INSTALL_PATH_ACTUAL)
8 SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator
9 SRCROOT_SEARCH_PATHS = $(SRCROOT) $(SRCROOT)/private
10 SYSTEM_FRAMEWORK_HEADERS = $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
11 HEADER_SEARCH_PATHS = $($(TARGET_NAME)_SEARCH_PATHS) $(SRCROOT_SEARCH_PATHS) $(SYSTEM_FRAMEWORK_HEADERS) $(SDKROOT)/usr/local/include $(inherited)
12 ALWAYS_SEARCH_USER_PATHS = YES
14 BUILD_VARIANTS = normal
16 GCC_OPTIMIZATION_LEVEL = s
17 GCC_C_LANGUAGE_STANDARD = gnu99
18 GCC_ENABLE_OBJC_EXCEPTIONS = YES
19 GCC_SYMBOLS_PRIVATE_EXTERN = NO
20 GCC_DYNAMIC_NO_PIC = NO
21 GCC_THUMB_SUPPORT = YES
24 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
25 CLANG_WARN_DOCUMENTATION_COMMENTS = YES
26 GCC_WARN_64_TO_32_BIT_CONVERSION = YES
27 GCC_WARN_ABOUT_RETURN_TYPE = YES
28 GCC_WARN_UNINITIALIZED_AUTOS = YES
29 GCC_WARN_UNUSED_VARIABLE = YES
31 INSTALLHDRS_SCRIPT_PHASE = YES
34 STRIP_INSTALLED_PRODUCT = YES
35 STRIP_STYLE = debugging
38 DYLIB_CURRENT_VERSION = $(RC_ProjectSourceVersion)
39 DYLIB_COMPATIBILITY_VERSION = 1
42 INSTALL_PATH_ACTUAL = /usr/lib/system
43 PUBLIC_HEADERS_FOLDER_PATH = $(INSTALL_PATH_PREFIX)/usr/include/pthread
44 PRIVATE_HEADERS_FOLDER_PATH = $(INSTALL_PATH_PREFIX)/usr/local/include/pthread
48 // TODO: Remove -fstack-protector on _debug when it is moved to libplatform
49 LINK_WITH_STANDARD_LIBRARIES = NO
50 BASE_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)
51 OTHER_CFLAGS = -fno-stack-protector -fdollars-in-identifiers -fno-common -fno-builtin -momit-leaf-frame-pointer $($(TARGET_NAME)_CFLAGS)
52 OTHER_CFLAGS_debug = -fno-stack-protector -fno-inline -O0 -DDEBUG=1
53 OTHER_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)
54 GCC_PREPROCESSOR_DEFINITIONS = $(BASE_PREPROCESSOR_MACROS)
57 CR_LDFLAGS = -lCrashReporterClient
59 ORDER_FILE = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libsystem_pthread.order
60 ORDER_FILE[sdk=iphonesimulator*] =
62 // Simulator build rules
63 EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*] = *.c *.d *.s
64 SKIP_INSTALL[sdk=iphonesimulator*] = YES
65 OTHER_LDFLAGS[sdk=iphonesimulator*] =