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