1 // Copyright (c) 2018 Apple Inc. All rights reserved.
3 #include "<DEVELOPER_DIR>/Makefiles/CoreOS/Xcode/BSD.xcconfig"
5 HEADER_SEARCH_PATHS = /usr/local/include $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
6 INSTALLHDRS_SCRIPT_PHASE = YES
7 SDKROOT = macosx.internal
8 SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator
10 GCC_PREPROCESSOR_DEFINITIONS = __DARWIN_NON_CANCELABLE=1 __MigTypeCheck=1 INET6=1
11 GCC_PREPROCESSOR_DEFINITIONS[sdk=iphoneos*] = MUSER_AVAILABLE $(GCC_PREPROCESSOR_DEFINITIONS)
12 GCC_PREPROCESSOR_DEFINITIONS[sdk=watchos*] = MUSER_AVAILABLE $(GCC_PREPROCESSOR_DEFINITIONS)
13 GCC_PREPROCESSOR_DEFINITIONS[sdk=appletvos*] = MUSER_AVAILABLE $(GCC_PREPROCESSOR_DEFINITIONS)
14 GCC_PREPROCESSOR_DEFINITIONS[sdk=macosx*] = CONFIG_MAC DS_AVAILABLE SYNTH_ROOTFS $(GCC_PREPROCESSOR_DEFINITIONS)
16 BUILD_VARIANTS = normal profile debug
18 INSTALL_PATH = /usr/lib/system
20 EXECUTABLE_PREFIX = libsystem_
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
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
27 LINK_WITH_STANDARD_LIBRARIES = NO
29 SIM_SUFFIX[sdk=*simulator*] = _sim
31 LIBCOMPILER_RT_LDFLAGS = -lcompiler_rt
32 LIBMALLOC_LDFLAGS = -lsystem_malloc
33 LIBPLATFORM_LDFLAGS = -lsystem$(SIM_SUFFIX)_platform
34 LIBPTHREAD_LDFLAGS = -lsystem$(SIM_SUFFIX)_pthread
35 LIBSYSCALL_LDFLAGS = -lsystem$(SIM_SUFFIX)_kernel
36 LIBM_LDFLAGS = -lsystem_m
37 LIBDYLD_LDFLAGS = -ldyld
38 LIBC_LDFLAGS = -lsystem_c
39 LIBDISPATCH_LDFLAGS = -ldispatch
40 LIBASL_LDFLAGS = -lsystem_asl
41 LIBBLOCKS_LDFLAGS = -lsystem_blocks
42 LIBDNSD_LDFLAGS = -lsystem_dnssd
43 LIBNOTIFY_LDFLAGS = -lsystem_notify
44 LIBXPC_LDFLAGS = -lxpc
45 LIBTRACE_LDFLAGS = -lsystem_trace
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
68 GCC_C_LANGUAGE_STANDARD = gnu99;
69 ENABLE_STRICT_OBJC_MSGSEND = YES;
71 //:configuration = Debug
72 GCC_OPTIMIZATION_LEVEL = 0
73 OTHER_CFLAGS = -DDEBUG=1
74 //:completeSettings = none
76 DYLIB_COMPATIBILITY_VERSION = 1
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)
80 // Text-Based API settings
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
86 GCC_SYMBOLS_PRIVATE_EXTERN = YES