SDK_VARIANT build destinations should be separate from non-SDK_VARIANT builds
[WebKit-https.git] / Source / WebInspectorUI / Configurations / Base.xcconfig
1 #include? "../../../../Internal/Configurations/HaveInternalSDK.xcconfig"
2 #include "SDKVariant.xcconfig"
3
4 CODE_SIGN_IDENTITY = -;
5
6 USE_INTERNAL_SDK = $(USE_INTERNAL_SDK_$(CONFIGURATION));
7 USE_INTERNAL_SDK_Production = YES;
8 USE_INTERNAL_SDK_Debug = $(HAVE_INTERNAL_SDK);
9 USE_INTERNAL_SDK_Release = $(HAVE_INTERNAL_SDK);
10
11 COPY_PHASE_STRIP = NO;
12 DEAD_CODE_STRIPPING = YES;
13 DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
14
15 ALWAYS_SEARCH_USER_PATHS = NO;
16 FRAMEWORK_SEARCH_PATHS = $(WK_QUOTED_OVERRIDE_FRAMEWORKS_DIR) $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks $(inherited);
17
18 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
19 CLANG_CXX_LIBRARY = libc++;
20 CLANG_ENABLE_OBJC_WEAK = YES;
21 CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
22 CLANG_WARN_BOOL_CONVERSION = YES;
23 CLANG_WARN_COMMA = YES;
24 CLANG_WARN_CONSTANT_CONVERSION = YES;
25 CLANG_WARN_CXX0X_EXTENSIONS = NO;
26 CLANG_WARN_EMPTY_BODY = YES;
27 CLANG_WARN_ENUM_CONVERSION = YES;
28 CLANG_WARN_INFINITE_RECURSION = YES;
29 CLANG_WARN_INT_CONVERSION = YES;
30 CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
31 CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
32 CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
33 CLANG_WARN_SUSPICIOUS_MOVE = YES;
34 CLANG_WARN_STRICT_PROTOTYPES = YES;
35 CLANG_WARN_UNREACHABLE_CODE = YES;
36 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
37 ENABLE_STRICT_OBJC_MSGSEND = YES;
38 GCC_C_LANGUAGE_STANDARD = gnu99;
39 GCC_DYNAMIC_NO_PIC = YES;
40 GCC_ENABLE_CPP_EXCEPTIONS = NO;
41 GCC_ENABLE_CPP_RTTI = NO;
42 GCC_ENABLE_OBJC_EXCEPTIONS = YES;
43 GCC_FAST_OBJC_DISPATCH = YES;
44 GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
45 GCC_NO_COMMON_BLOCKS = YES;
46 GCC_OPTIMIZATION_LEVEL = s;
47 GCC_PRECOMPILE_PREFIX_HEADER = NO;
48 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(ENGINEERING_BUILD_DEFINES);
49 GCC_THREADSAFE_STATICS = NO;
50 GCC_TREAT_WARNINGS_AS_ERRORS = YES;
51 GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
52 GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
53 GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
54 GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
55 GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
56 GCC_WARN_ABOUT_RETURN_TYPE = YES
57 GCC_WARN_ABOUT_RETURN_TYPE = YES;
58 GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES;
59 CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
60 GCC_WARN_UNDECLARED_SELECTOR = YES;
61 CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
62 GCC_WARN_UNINITIALIZED_AUTOS = YES
63 GCC_WARN_UNUSED_FUNCTION = YES;
64 GCC_WARN_UNUSED_VARIABLE = YES
65 WARNING_CFLAGS = -Wall -W -Wcast-qual -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wexit-time-destructors;
66
67 ENGINEERING_BUILD_DEFINES = $(ENGINEERING_BUILD_DEFINES_$(ENGINEERING_BUILD));
68 ENGINEERING_BUILD_DEFINES_1 = ENGINEERING_BUILD=1;
69
70 SUPPORTED_PLATFORMS = iphoneos iphonesimulator macosx tvos tvsimulator watchos watchsimulator;
71
72 TARGET_MAC_OS_X_VERSION_MAJOR = $(TARGET_MAC_OS_X_VERSION_MAJOR$(MACOSX_DEPLOYMENT_TARGET:suffix:identifier));
73 TARGET_MAC_OS_X_VERSION_MAJOR_12 = 101200;
74 TARGET_MAC_OS_X_VERSION_MAJOR_13 = 101300;
75 TARGET_MAC_OS_X_VERSION_MAJOR_14 = 101400;
76 TARGET_MAC_OS_X_VERSION_MAJOR_15 = 101500;
77
78 SDKROOT = macosx.internal;
79
80 OTHER_LDFLAGS_VERSIONED_FRAMEWORK_PATH = -Wl,-dyld_env -Wl,DYLD_VERSIONED_FRAMEWORK_PATH=/System/Library/StagedFrameworks/Safari;
81
82 OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS);
83 OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS);
84 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS);
85
86 COMBINE_INSPECTOR_RESOURCES = YES;
87 COMBINE_TEST_RESOURCES = NO;
88
89 WK_USE_OVERRIDE_FRAMEWORKS_DIR = $(WK_NOT_$(WK_EMPTY_$(WK_OVERRIDE_FRAMEWORKS_DIR)));
90
91 WK_OVERRIDE_FRAMEWORKS_DIR = $(WK_OVERRIDE_FRAMEWORKS_DIR_USE_STAGING_INSTALL_PATH_$(USE_STAGING_INSTALL_PATH));
92 WK_OVERRIDE_FRAMEWORKS_DIR_USE_STAGING_INSTALL_PATH_YES = $(SYSTEM_LIBRARY_DIR)/StagedFrameworks/Safari;
93
94 WK_QUOTED_OVERRIDE_FRAMEWORKS_DIR = $(WK_QUOTED_OVERRIDE_FRAMEWORKS_DIR_$(WK_USE_OVERRIDE_FRAMEWORKS_DIR));
95 WK_QUOTED_OVERRIDE_FRAMEWORKS_DIR_YES = "$(WK_OVERRIDE_FRAMEWORKS_DIR)";
96
97 WK_COCOA_TOUCH = $(WK_COCOA_TOUCH_$(WK_PLATFORM_NAME));
98 WK_COCOA_TOUCH_iphoneos = cocoatouch;
99 WK_COCOA_TOUCH_iosmac = cocoatouch;
100 WK_COCOA_TOUCH_iphonesimulator = cocoatouch;
101 WK_COCOA_TOUCH_watchos = cocoatouch;
102 WK_COCOA_TOUCH_watchsimulator = cocoatouch;
103 WK_COCOA_TOUCH_appletvos = cocoatouch;
104 WK_COCOA_TOUCH_appletvsimulator = cocoatouch;
105 WK_IS_COCOA_TOUCH = $(WK_NOT_$(WK_EMPTY_$(WK_COCOA_TOUCH)));
106
107 LLVM_LTO = $(WK_LLVM_LTO_$(WK_XCODE_SUPPORTS_LTO));
108 WK_LLVM_LTO_NO = NO;
109 WK_LLVM_LTO_YES = $(WK_USER_LTO_MODE);
110
111 WK_XCODE_SUPPORTS_LTO = $(WK_NOT_$(WK_XCODE_VERSION_BEFORE_9_$(XCODE_VERSION_MAJOR)));
112 WK_XCODE_VERSION_BEFORE_9_0800 = YES;
113 WK_XCODE_VERSION_BEFORE_9_0700 = YES;
114
115 WK_USER_LTO_MODE = $(WK_USER_LTO_MODE_$(WK_LTO_MODE));
116 WK_USER_LTO_MODE_full = YES;
117 WK_USER_LTO_MODE_thin = YES_THIN;
118 WK_USER_LTO_MODE_none = NO;
119 WK_USER_LTO_MODE_ = $(WK_DEFAULT_LTO_MODE);
120 WK_DEFAULT_LTO_MODE = $(WK_USER_LTO_MODE_none);