]>
Commit | Line | Data |
---|---|---|
f1a1da6c | 1 | #include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig" |
f1a1da6c A |
2 | |
3 | // Standard settings | |
964d3577 A |
4 | SDKROOT = macosx.internal |
5 | SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator | |
6 | SRCROOT_SEARCH_PATHS = $(SRCROOT) $(SRCROOT)/private $(SRCROOT)/os | |
f1a1da6c | 7 | SYSTEM_FRAMEWORK_HEADERS = $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders |
964d3577 | 8 | HEADER_SEARCH_PATHS = $($(PRODUCT_NAME)_SEARCH_PATHS) $(SRCROOT_SEARCH_PATHS) $(SYSTEM_FRAMEWORK_HEADERS) $(SDKROOT)/usr/local/include $(inherited) |
f1a1da6c A |
9 | ALWAYS_SEARCH_USER_PATHS = YES |
10 | USE_HEADERMAP = NO | |
964d3577 | 11 | BUILD_VARIANTS = normal debug |
f1a1da6c A |
12 | |
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 | |
19 | ||
20 | // Warnings | |
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 | |
27 | ||
28 | INSTALLHDRS_SCRIPT_PHASE = YES | |
29 | ||
30 | COPY_PHASE_STRIP = NO | |
31 | STRIP_INSTALLED_PRODUCT = YES | |
32 | STRIP_STYLE = debugging | |
33 | ||
34 | // Versioning | |
35 | DYLIB_CURRENT_VERSION = $(RC_ProjectSourceVersion) | |
36 | DYLIB_COMPATIBILITY_VERSION = 1 | |
37 | ||
38 | // Installation paths | |
964d3577 A |
39 | INSTALL_PATH = /usr/lib/system |
40 | PUBLIC_HEADERS_FOLDER_PATH = /usr/include/pthread | |
41 | PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/pthread | |
f1a1da6c A |
42 | SKIP_INSTALL = NO |
43 | ||
44 | // Base definitions | |
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) | |
964d3577 A |
48 | GCC_PREPROCESSOR_DEFINITIONS = $(BASE_PREPROCESSOR_MACROS) |
49 | ||
50 | OTHER_CFLAGS = -fno-stack-protector -fdollars-in-identifiers -fno-common -fno-builtin -momit-leaf-frame-pointer $($(PRODUCT_NAME)_CFLAGS) | |
f1a1da6c A |
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) | |
f1a1da6c A |
53 | |
54 | // CrashReporter | |
55 | CR_LDFLAGS = -lCrashReporterClient | |
56 | ||
57 | ORDER_FILE = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libsystem_pthread.order | |
58 | ORDER_FILE[sdk=iphonesimulator*] = | |
59 | ||
60 | // Simulator build rules | |
964d3577 | 61 | EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*] = *.c *.s |
f1a1da6c A |
62 | SKIP_INSTALL[sdk=iphonesimulator*] = YES |
63 | OTHER_LDFLAGS[sdk=iphonesimulator*] = |