]> git.saurik.com Git - apple/libpthread.git/blame_incremental - xcodescripts/kext.xcconfig
libpthread-416.11.1.tar.gz
[apple/libpthread.git] / xcodescripts / kext.xcconfig
... / ...
CommitLineData
1// pthread kext build options
2
3SDKROOT = macosx.internal
4SUPPORTED_PLATFORMS = macosx iphoneos appletvos watchos
5BUILD_VARIANTS = normal development kasan
6
7PTHREAD_VARIANT_ = $(CURRENT_VARIANT)
8PTHREAD_VARIANT_YES = development
9PTHREAD_VARIANT = $(PTHREAD_VARIANT_$(DEBUG))
10
11VALID_ARCHS[sdk=macosx*] = $(NATIVE_ARCH_ACTUAL)
12ARCHS = $(ARCHS_STANDARD_32_64_BIT)
13
14INSTALL_PATH = $(SYSTEM_LIBRARY_DIR)/Extensions
15PRODUCT_NAME = pthread
16WRAPPER_EXTENSION = kext
17MODULE_NAME = com.apple.kec.pthread
18MODULE_START = pthread_start
19MODULE_STOP = pthread_stop
20MODULE_VERSION = 1.0.0d1
21PRODUCT_BUNDLE_IDENTIFIER = ${MODULE_NAME}
22INFOPLIST_FILE = kern/pthread-Info.plist
23
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 = gnu11
28CLANG_CXX_LANGUAGE_STANDARD = gnu++0x
29CLANG_CXX_LIBRARY = libc++
30GCC_PRECOMPILE_PREFIX_HEADER = YES
31CODE_SIGN_IDENTITY = -
32DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
33
34GCC_OPTIMIZATION_LEVEL_normal = s
35GCC_OPTIMIZATION_LEVEL_development = s
36GCC_OPTIMIZATION_LEVEL = $(GCC_OPTIMIZATION_LEVEL_$(PTHREAD_VARIANT))
37
38DEAD_CODE_STRIPPING = NO
39LLVM_LTO_normal = YES
40LLVM_LTO_development = NO
41LLVM_LTO_kasan = NO
42LLVM_LTO = $(LLVM_LTO_$(PTHREAD_VARIANT))
43
44GCC_PREPROCESSOR_DEFINITIONS_kext = XNU_KERNEL_PRIVATE MACH_KERNEL_PRIVATE ABSOLUTETIME_SCALAR_TYPE NEEDS_SCHED_CALL_T __PTHREAD_EXPOSE_INTERNALS__
45GCC_PREPROCESSOR_DEFINITIONS_kext_development = MACH_ASSERT DEBUG
46GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_kext) $(GCC_PREPROCESSOR_DEFINITIONS_kext_$(PTHREAD_VARIANT))
47
48OTHER_CFLAGS_kasan = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow -fno-inline
49
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