]>
Commit | Line | Data |
---|---|---|
f475de6c A |
1 | // Copyright (c) 2018 Apple Inc. All rights reserved. |
2 | ||
53dd3e4a A |
3 | #include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig" |
4 | ||
9e8ccf68 | 5 | HEADER_SEARCH_PATHS = /usr/local/include $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders |
993b5481 | 6 | INSTALLHDRS_SCRIPT_PHASE = YES |
9e8ccf68 A |
7 | SDKROOT = macosx.internal |
8 | SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator | |
993b5481 A |
9 | |
10 | GCC_PREPROCESSOR_DEFINITIONS = __DARWIN_NON_CANCELABLE=1 __MigTypeCheck=1 INET6=1 | |
9e8ccf68 | 11 | GCC_PREPROCESSOR_DEFINITIONS[sdk=iphoneos*] = MUSER_AVAILABLE $(GCC_PREPROCESSOR_DEFINITIONS) |
53dd3e4a A |
12 | GCC_PREPROCESSOR_DEFINITIONS[sdk=watchos*] = MUSER_AVAILABLE $(GCC_PREPROCESSOR_DEFINITIONS) |
13 | GCC_PREPROCESSOR_DEFINITIONS[sdk=appletvos*] = MUSER_AVAILABLE $(GCC_PREPROCESSOR_DEFINITIONS) | |
993b5481 A |
14 | GCC_PREPROCESSOR_DEFINITIONS[sdk=macosx*] = CONFIG_MAC DS_AVAILABLE SYNTH_ROOTFS $(GCC_PREPROCESSOR_DEFINITIONS) |
15 | ||
53dd3e4a A |
16 | BUILD_VARIANTS = normal profile debug |
17 | ||
9d0fc09c | 18 | INSTALL_PATH = /usr/lib/system |
993b5481 A |
19 | |
20 | EXECUTABLE_PREFIX = libsystem_ | |
993b5481 A |
21 | |
22 | ORDER_FILE[sdk=macosx*] = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libsystem_info.order | |
23 | ORDER_FILE[sdk=iphoneos*] = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libsystem_info.order | |
53dd3e4a A |
24 | ORDER_FILE[sdk=watchos*] = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libsystem_info.order |
25 | ORDER_FILE[sdk=appletvos*] = $(SDKROOT)/$(APPLE_INTERNAL_DIR)/OrderFiles/libsystem_info.order | |
993b5481 A |
26 | |
27 | LINK_WITH_STANDARD_LIBRARIES = NO | |
28 | ||
db6e2fe0 A |
29 | SIM_SUFFIX[sdk=*simulator*] = _sim |
30 | ||
993b5481 | 31 | LIBCOMPILER_RT_LDFLAGS = -lcompiler_rt |
993b5481 | 32 | LIBMALLOC_LDFLAGS = -lsystem_malloc |
db6e2fe0 A |
33 | LIBPLATFORM_LDFLAGS = -lsystem$(SIM_SUFFIX)_platform |
34 | LIBPTHREAD_LDFLAGS = -lsystem$(SIM_SUFFIX)_pthread | |
35 | LIBSYSCALL_LDFLAGS = -lsystem$(SIM_SUFFIX)_kernel | |
993b5481 | 36 | LIBM_LDFLAGS = -lsystem_m |
993b5481 | 37 | LIBDYLD_LDFLAGS = -ldyld |
993b5481 | 38 | LIBC_LDFLAGS = -lsystem_c |
993b5481 | 39 | LIBDISPATCH_LDFLAGS = -ldispatch |
993b5481 | 40 | LIBASL_LDFLAGS = -lsystem_asl |
993b5481 | 41 | LIBBLOCKS_LDFLAGS = -lsystem_blocks |
993b5481 | 42 | LIBDNSD_LDFLAGS = -lsystem_dnssd |
993b5481 | 43 | LIBNOTIFY_LDFLAGS = -lsystem_notify |
993b5481 | 44 | LIBXPC_LDFLAGS = -lxpc |
53dd3e4a A |
45 | LIBTRACE_LDFLAGS = -lsystem_trace |
46 | ||
47 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; | |
48 | CLANG_WARN_BOOL_CONVERSION = YES; | |
49 | CLANG_WARN_CONSTANT_CONVERSION = YES; | |
50 | CLANG_WARN_EMPTY_BODY = YES; | |
51 | CLANG_WARN_ENUM_CONVERSION = YES; | |
52 | CLANG_WARN_INFINITE_RECURSION = YES; | |
53 | CLANG_WARN_INT_CONVERSION = YES; | |
54 | CLANG_WARN_SUSPICIOUS_MOVE = YES; | |
55 | CLANG_WARN_UNREACHABLE_CODE = YES; | |
56 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
57 | GCC_NO_COMMON_BLOCKS = YES; | |
58 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; | |
59 | GCC_WARN_64_TO_32_BIT_CONVERSION = NO; | |
60 | GCC_WARN_ABOUT_RETURN_TYPE = YES; | |
61 | GCC_WARN_UNDECLARED_SELECTOR = YES; | |
62 | GCC_WARN_UNINITIALIZED_AUTOS = YES; | |
63 | GCC_WARN_UNUSED_VARIABLE = YES; | |
64 | WARNING_LDFLAGS = -Wall | |
65 | WARNING_CFLAGS = -Wno-error=deprecated-declarations | |
66 | GCC_WARN_UNUSED_FUNCTION = YES | |
67 | ||
68 | GCC_C_LANGUAGE_STANDARD = gnu99; | |
69 | ENABLE_STRICT_OBJC_MSGSEND = YES; | |
70 | ||
71 | //:configuration = Debug | |
72 | GCC_OPTIMIZATION_LEVEL = 0 | |
73 | OTHER_CFLAGS = -DDEBUG=1 | |
74 | //:completeSettings = none | |
75 | ||
76 | DYLIB_COMPATIBILITY_VERSION = 1 | |
993b5481 | 77 | |
ff4fe4c3 | 78 | OTHER_LDFLAGS = -all_load -umbrella System -L/usr/lib/system $(LIBCOMPILER_RT_LDFLAGS) $(LIBDYLD_LDFLAGS) $(LIBSYSCALL_LDFLAGS) $(LIBMALLOC_LDFLAGS) $(LIBPLATFORM_LDFLAGS) $(LIBPTHREAD_LDFLAGS) $(LIBC_LDFLAGS) $(LIBDISPATCH_LDFLAGS) $(LIBASL_LDFLAGS) $(LIBBLOCKS_LDFLAGS) $(LIBDNSD_LDFLAGS) $(LIBNOTIFY_LDFLAGS) $(LIBXPC_LDFLAGS) $(LIBTRACE_LDFLAGS) |
f475de6c A |
79 | |
80 | // Text-Based API settings | |
81 | ||
82 | SUPPORTS_TEXT_BASED_API = YES | |
83 | TAPI_VERIFY_MODE = Pedantic | |
84 | OTHER_TAPI_FLAGS = -D LIBINFO_INSTALL_API=1 -extra-public-header $(SRCROOT)/Libinfo/pseudo_public.h -extra-public-header $(DSTROOT)/usr/include -extra-private-header $(DSTROOT)/usr/local/include -extra-private-header $(SRCROOT)/Libinfo/pseudo_private.h -umbrella System | |
85 | ||
86 | GCC_SYMBOLS_PRIVATE_EXTERN = YES |