]>
Commit | Line | Data |
---|---|---|
f1a1da6c A |
1 | // pthread kext build options |
2 | ||
2546420a A |
3 | BUILD_VARIANTS = normal development |
4 | BUILD_VARIANTS[sdk=macosx*] = normal | |
5 | ||
6 | PTHREAD_VARIANT_ = $(CURRENT_VARIANT) | |
7 | PTHREAD_VARIANT_YES = development | |
8 | PTHREAD_VARIANT = $(PTHREAD_VARIANT_$(DEBUG)) | |
9 | ||
10 | VALID_ARCHS[sdk=macosx*] = $(NATIVE_ARCH_ACTUAL) | |
f1a1da6c | 11 | ARCHS = $(ARCHS_STANDARD_32_64_BIT) |
964d3577 | 12 | SUPPORTED_PLATFORMS = macosx iphoneos appletvos watchos |
f1a1da6c A |
13 | DYLIB_CURRENT_VERSION = $(RC_ProjectSourceVersion) |
14 | INSTALL_PATH = $(SYSTEM_LIBRARY_DIR)/Extensions | |
15 | MODULE_NAME = com.apple.kec.pthread | |
16 | MODULE_START = pthread_start | |
17 | MODULE_STOP = pthread_stop | |
18 | MODULE_VERSION = 1.0.0d1 | |
19 | DEAD_CODE_STRIPPING = NO | |
20 | INFOPLIST_FILE = kern/pthread-Info.plist | |
21 | PRODUCT_NAME = $(TARGET_NAME) | |
22 | WRAPPER_EXTENSION = kext | |
23 | ALWAYS_SEARCH_USER_PATHS = NO | |
24 | SRCROOT_SEARCH_PATHS = $(SRCROOT) $(SRCROOT)/pthread $(SRCROOT)/private | |
25 | HEADER_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) | |
26 | GCC_C_LANGUAGE_STANDARD = gnu99 | |
27 | CLANG_CXX_LANGUAGE_STANDARD = gnu++0x | |
28 | CLANG_CXX_LIBRARY = libc++ | |
29 | GCC_PRECOMPILE_PREFIX_HEADER = YES | |
2546420a A |
30 | |
31 | GCC_OPTIMIZATION_LEVEL_normal = s | |
32 | GCC_OPTIMIZATION_LEVEL_development = 0 | |
33 | GCC_OPTIMIZATION_LEVEL = $(GCC_OPTIMIZATION_LEVEL_$(PTHREAD_VARIANT)) | |
34 | ||
35 | LLVM_LTO_normal = YES | |
36 | LLVM_LTO_development = NO | |
37 | LLVM_LTO = $(LLVM_LTO_$(PTHREAD_VARIANT)) | |
38 | ||
964d3577 | 39 | GCC_PREPROCESSOR_DEFINITIONS_kext = XNU_KERNEL_PRIVATE MACH_KERNEL_PRIVATE ABSOLUTETIME_SCALAR_TYPE NEEDS_SCHED_CALL_T |
2546420a A |
40 | GCC_PREPROCESSOR_DEFINITIONS_kext_development = MACH_ASSERT DEBUG |
41 | GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_kext) $(GCC_PREPROCESSOR_DEFINITIONS_kext_$(PTHREAD_VARIANT)) | |
f1a1da6c A |
42 | |
43 | GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES | |
44 | GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES | |
45 | ||
46 | // Warnings | |
47 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES | |
48 | CLANG_WARN_EMPTY_BODY = YES | |
49 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES | |
50 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES | |
51 | GCC_WARN_ABOUT_MISSING_NEWLINE = YES | |
52 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES | |
53 | GCC_WARN_ABOUT_RETURN_TYPE = YES | |
54 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES | |
55 | GCC_WARN_SHADOW = YES | |
56 | GCC_WARN_SIGN_COMPARE = YES | |
57 | GCC_WARN_UNINITIALIZED_AUTOS = YES | |
58 | GCC_WARN_UNUSED_FUNCTION = YES | |
59 | GCC_WARN_UNUSED_LABEL = YES | |
60 | GCC_WARN_UNUSED_PARAMETER = YES | |
61 | GCC_WARN_UNUSED_VARIABLE = YES |