]> git.saurik.com Git - apple/libpthread.git/blame - xcodescripts/kext.xcconfig
libpthread-330.250.2.tar.gz
[apple/libpthread.git] / xcodescripts / kext.xcconfig
CommitLineData
f1a1da6c
A
1// pthread kext build options
2
a0619f9c
A
3SDKROOT = macosx.internal
4SUPPORTED_PLATFORMS = macosx iphoneos appletvos watchos
5BUILD_VARIANTS = normal development kasan
2546420a
A
6
7PTHREAD_VARIANT_ = $(CURRENT_VARIANT)
8PTHREAD_VARIANT_YES = development
9PTHREAD_VARIANT = $(PTHREAD_VARIANT_$(DEBUG))
10
11VALID_ARCHS[sdk=macosx*] = $(NATIVE_ARCH_ACTUAL)
f1a1da6c 12ARCHS = $(ARCHS_STANDARD_32_64_BIT)
a0619f9c 13
f1a1da6c 14INSTALL_PATH = $(SYSTEM_LIBRARY_DIR)/Extensions
a0619f9c
A
15PRODUCT_NAME = pthread
16WRAPPER_EXTENSION = kext
f1a1da6c
A
17MODULE_NAME = com.apple.kec.pthread
18MODULE_START = pthread_start
19MODULE_STOP = pthread_stop
20MODULE_VERSION = 1.0.0d1
a0619f9c 21PRODUCT_BUNDLE_IDENTIFIER = ${MODULE_NAME}
f1a1da6c 22INFOPLIST_FILE = kern/pthread-Info.plist
a0619f9c 23
f1a1da6c
A
24ALWAYS_SEARCH_USER_PATHS = NO
25SRCROOT_SEARCH_PATHS = $(SRCROOT) $(SRCROOT)/pthread $(SRCROOT)/private
26HEADER_SEARCH_PATHS = $(SDKROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders $(SDKROOT)/System/Library/Frameworks/Kernel.framework/Headers $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders $(SDKROOT)/System/Library/Frameworks/System.framework/Headers $(SRCROOT_SEARCH_PATHS)
27GCC_C_LANGUAGE_STANDARD = gnu99
28CLANG_CXX_LANGUAGE_STANDARD = gnu++0x
29CLANG_CXX_LIBRARY = libc++
30GCC_PRECOMPILE_PREFIX_HEADER = YES
a0619f9c
A
31CODE_SIGN_IDENTITY = -
32DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
2546420a
A
33
34GCC_OPTIMIZATION_LEVEL_normal = s
35GCC_OPTIMIZATION_LEVEL_development = 0
36GCC_OPTIMIZATION_LEVEL = $(GCC_OPTIMIZATION_LEVEL_$(PTHREAD_VARIANT))
37
a0619f9c 38DEAD_CODE_STRIPPING = NO
2546420a
A
39LLVM_LTO_normal = YES
40LLVM_LTO_development = NO
a0619f9c 41LLVM_LTO_kasan = NO
2546420a
A
42LLVM_LTO = $(LLVM_LTO_$(PTHREAD_VARIANT))
43
214d78a2 44GCC_PREPROCESSOR_DEFINITIONS_kext = XNU_KERNEL_PRIVATE MACH_KERNEL_PRIVATE ABSOLUTETIME_SCALAR_TYPE NEEDS_SCHED_CALL_T __PTHREAD_EXPOSE_INTERNALS__
2546420a
A
45GCC_PREPROCESSOR_DEFINITIONS_kext_development = MACH_ASSERT DEBUG
46GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_kext) $(GCC_PREPROCESSOR_DEFINITIONS_kext_$(PTHREAD_VARIANT))
f1a1da6c 47
a0619f9c
A
48OTHER_CFLAGS_kasan = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow -fno-inline
49
f1a1da6c
A
50GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES
51GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES
52
53// Warnings
54CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
55CLANG_WARN_EMPTY_BODY = YES
56GCC_WARN_64_TO_32_BIT_CONVERSION = YES
57GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
58GCC_WARN_ABOUT_MISSING_NEWLINE = YES
59GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
60GCC_WARN_ABOUT_RETURN_TYPE = YES
61GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
62GCC_WARN_SHADOW = YES
63GCC_WARN_SIGN_COMPARE = YES
64GCC_WARN_UNINITIALIZED_AUTOS = YES
65GCC_WARN_UNUSED_FUNCTION = YES
66GCC_WARN_UNUSED_LABEL = YES
67GCC_WARN_UNUSED_PARAMETER = YES
68GCC_WARN_UNUSED_VARIABLE = YES