1 #include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig"
4 SDKROOT = macosx.internal
5 SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator
6 SRCROOT_SEARCH_PATHS = $(SRCROOT) $(SRCROOT)/private $(SRCROOT)/os
7 SYSTEM_FRAMEWORK_HEADERS = $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
8 HEADER_SEARCH_PATHS = $($(PRODUCT_NAME)_SEARCH_PATHS) $(SRCROOT_SEARCH_PATHS) $(SYSTEM_FRAMEWORK_HEADERS) $(SDKROOT)/usr/local/include $(inherited)
9 ALWAYS_SEARCH_USER_PATHS = YES
11 BUILD_VARIANTS = normal debug
13 GCC_OPTIMIZATION_LEVEL = s
14 GCC_C_LANGUAGE_STANDARD = gnu99
15 GCC_ENABLE_OBJC_EXCEPTIONS = YES
16 GCC_SYMBOLS_PRIVATE_EXTERN = NO
17 GCC_DYNAMIC_NO_PIC = NO
18 GCC_THUMB_SUPPORT = YES
21 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
22 CLANG_WARN_DOCUMENTATION_COMMENTS = YES
23 GCC_WARN_64_TO_32_BIT_CONVERSION = YES
24 GCC_WARN_ABOUT_RETURN_TYPE = YES
25 GCC_WARN_UNINITIALIZED_AUTOS = YES
26 GCC_WARN_UNUSED_VARIABLE = YES
28 INSTALLHDRS_SCRIPT_PHASE = YES
31 STRIP_INSTALLED_PRODUCT = YES
32 STRIP_STYLE = debugging
35 DYLIB_CURRENT_VERSION = $(RC_ProjectSourceVersion)
36 DYLIB_COMPATIBILITY_VERSION = 1
39 INSTALL_PATH = /usr/lib/system
40 PUBLIC_HEADERS_FOLDER_PATH = /usr/include/pthread
41 PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/pthread
45 // TODO: Remove -fstack-protector on _debug when it is moved to libplatform
46 LINK_WITH_STANDARD_LIBRARIES = NO
47 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)
48 GCC_PREPROCESSOR_DEFINITIONS = $(BASE_PREPROCESSOR_MACROS)
50 OTHER_CFLAGS = -fno-stack-protector -fdollars-in-identifiers -fno-common -fno-builtin -momit-leaf-frame-pointer $($(PRODUCT_NAME)_CFLAGS)
51 OTHER_CFLAGS_debug = -fno-stack-protector -fno-inline -O0 -DDEBUG=1
52 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)
55 CR_LDFLAGS = -lCrashReporterClient
57 ORDER_FILE = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libsystem_pthread.order
58 ORDER_FILE[sdk=iphonesimulator*] =
60 // Simulator build rules
61 EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*] = *.c *.s
62 SKIP_INSTALL[sdk=iphonesimulator*] = YES
63 OTHER_LDFLAGS[sdk=iphonesimulator*] =