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