]>
Commit | Line | Data |
---|---|---|
f1a1da6c | 1 | #include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig" |
f1a1da6c | 2 | |
964d3577 A |
3 | SDKROOT = macosx.internal |
4 | SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator | |
a0619f9c A |
5 | BUILD_VARIANTS = normal debug |
6 | ||
7 | INSTALL_PATH = /usr/lib/system | |
8 | EXECUTABLE_PREFIX = lib | |
9 | PRODUCT_NAME = system_pthread | |
10 | PUBLIC_HEADERS_FOLDER_PATH = /usr/include/pthread | |
11 | PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/pthread | |
12 | ||
13 | SRCROOT_SEARCH_PATHS = $(SRCROOT) $(SRCROOT)/private $(SRCROOT)/os $(SRCROOT)/src/resolver | |
f1a1da6c | 14 | SYSTEM_FRAMEWORK_HEADERS = $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders |
964d3577 | 15 | HEADER_SEARCH_PATHS = $($(PRODUCT_NAME)_SEARCH_PATHS) $(SRCROOT_SEARCH_PATHS) $(SYSTEM_FRAMEWORK_HEADERS) $(SDKROOT)/usr/local/include $(inherited) |
a0619f9c | 16 | INSTALLHDRS_SCRIPT_PHASE = YES |
f1a1da6c A |
17 | ALWAYS_SEARCH_USER_PATHS = YES |
18 | USE_HEADERMAP = NO | |
f1a1da6c A |
19 | |
20 | GCC_OPTIMIZATION_LEVEL = s | |
a0619f9c A |
21 | GCC_C_LANGUAGE_STANDARD = gnu11 |
22 | GCC_ENABLE_OBJC_EXCEPTIONS = NO | |
23 | GCC_NO_COMMON_BLOCKS = YES | |
f1a1da6c | 24 | GCC_SYMBOLS_PRIVATE_EXTERN = NO |
a0619f9c | 25 | CLANG_LINK_OBJC_RUNTIME = NO |
f1a1da6c | 26 | |
f1a1da6c | 27 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES |
a0619f9c A |
28 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES |
29 | GCC_WARN_ABOUT_MISSING_NEWLINE = YES | |
30 | //GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES | |
f1a1da6c | 31 | GCC_WARN_ABOUT_RETURN_TYPE = YES |
a0619f9c A |
32 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES |
33 | GCC_WARN_SIGN_COMPARE = YES | |
34 | GCC_WARN_SHADOW = YES | |
35 | GCC_WARN_UNKNOWN_PRAGMAS = YES | |
36 | GCC_WARN_UNUSED_FUNCTION = YES | |
37 | GCC_WARN_UNUSED_LABEL = YES | |
38 | // GCC_WARN_UNUSED_PARAMETER = YES | |
39 | GCC_WARN_UNUSED_VALUE = YES | |
f1a1da6c | 40 | GCC_WARN_UNUSED_VARIABLE = YES |
a0619f9c A |
41 | GCC_WARN_UNINITIALIZED_AUTOS = YES |
42 | CLANG_WARN_ASSIGN_ENUM = YES | |
43 | CLANG_WARN_BOOL_CONVERSION = YES | |
44 | CLANG_WARN_CONSTANT_CONVERSION = YES | |
45 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES | |
46 | CLANG_WARN_EMPTY_BODY = YES | |
47 | CLANG_WARN_ENUM_CONVERSION = YES | |
48 | //CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES | |
49 | CLANG_WARN_INFINITE_RECURSION = YES | |
50 | // CLANG_WARN_INT_CONVERSION = YES | |
51 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES | |
52 | CLANG_WARN_SUSPICIOUS_MOVE = YES | |
53 | CLANG_WARN_UNREACHABLE_CODE = YES | |
54 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES | |
f1a1da6c | 55 | |
a0619f9c A |
56 | DISABLED_WARNING_CFLAGS = -Wno-int-conversion -Wno-missing-prototypes -Wno-sign-compare -Wno-sign-conversion -Wno-unused-parameter |
57 | WARNING_CFLAGS = -Wall -Wextra -Warray-bounds-pointer-arithmetic -Wcomma -Wconditional-uninitialized -Wcovered-switch-default -Wdate-time -Wdeprecated -Wdouble-promotion -Wduplicate-enum -Wfloat-equal -Widiomatic-parentheses -Wignored-qualifiers -Wimplicit-fallthrough -Wmissing-noreturn -Wnullable-to-nonnull-conversion -Wover-aligned -Wpointer-arith -Wstatic-in-inline -Wtautological-compare -Wunguarded-availability -Wunused $(NO_WARNING_CFLAGS) $(DISABLED_WARNING_CFLAGS) | |
58 | NO_WARNING_CFLAGS = -Wno-pedantic -Wno-bad-function-cast -Wno-c++98-compat-pedantic -Wno-cast-align -Wno-cast-qual -Wno-disabled-macro-expansion -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-missing-variable-declarations -Wno-packed -Wno-padded -Wno-reserved-id-macro -Wno-switch-enum -Wno-undef -Wno-unreachable-code-aggressive -Wno-unused-macros -Wno-used-but-marked-unused | |
f1a1da6c | 59 | |
214d78a2 | 60 | 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) __PTHREAD_EXPOSE_INTERNALS__ |
a0619f9c | 61 | GCC_PREPROCESSOR_DEFINITIONS = $(BASE_PREPROCESSOR_MACROS) $(PLATFORM_PREPROCESSOR_DEFINITIONS) |
2546420a | 62 | |
a0619f9c A |
63 | // TODO: Remove -fstack-protector on _debug when it is moved to libplatform |
64 | OTHER_CFLAGS = -fno-stack-protector -fno-builtin $(PLATFORM_CFLAGS) $($(PRODUCT_NAME)_CFLAGS) | |
65 | OTHER_CFLAGS_normal = -momit-leaf-frame-pointer | |
66 | OTHER_CFLAGS_debug = -fno-inline -O0 -DDEBUG=1 | |
f1a1da6c | 67 | |
a0619f9c A |
68 | LINK_WITH_STANDARD_LIBRARIES = NO |
69 | DYLIB_CURRENT_VERSION = $(RC_ProjectSourceVersion) | |
70 | DYLIB_COMPATIBILITY_VERSION = 1 | |
214d78a2 A |
71 | DIRTY_LDFLAGS = -Wl,-dirty_data_list,$(SRCROOT)/xcodescripts/pthread.dirty |
72 | DIRTY_LDFLAGS[sdk=macos*] = | |
a0619f9c | 73 | DYLIB_LDFLAGS = -Wl,-alias_list,$(SRCROOT)/xcodescripts/pthread.aliases -Wl,-umbrella,System -L/usr/lib/system -lsystem_kernel -lsystem_platform -ldyld -lcompiler_rt |
214d78a2 | 74 | OTHER_LDFLAGS = $(DYLIB_LDFLAGS) $(DIRTY_LDFLAGS) $(CR_LDFLAGS) $(PLATFORM_LDFLAGS) |
f1a1da6c A |
75 | |
76 | // Simulator build rules | |
964d3577 | 77 | EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*] = *.c *.s |
f1a1da6c A |
78 | SKIP_INSTALL[sdk=iphonesimulator*] = YES |
79 | OTHER_LDFLAGS[sdk=iphonesimulator*] = | |
a0619f9c | 80 |