Support ::before and ::after pseudo elements after ::slotted
[WebKit-https.git] / Tools / DumpRenderTree / mac / Configurations / Base.xcconfig
1 // Copyright (C) 2009-2020 Apple Inc. All rights reserved.
2 //
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions
5 // are met:
6 // 1. Redistributions of source code must retain the above copyright
7 //    notice, this list of conditions and the following disclaimer.
8 // 2. Redistributions in binary form must reproduce the above copyright
9 //    notice, this list of conditions and the following disclaimer in the
10 //    documentation and/or other materials provided with the distribution.
11 //
12 // THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
13 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
15 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
16 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
17 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
18 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
19 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
20 // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
23
24 #include? "../../../../../Internal/Configurations/HaveInternalSDK.xcconfig"
25 #include "SDKVariant.xcconfig"
26
27 USE_INTERNAL_SDK = $(USE_INTERNAL_SDK_$(CONFIGURATION));
28 USE_INTERNAL_SDK_Production = YES;
29 USE_INTERNAL_SDK_Debug = $(HAVE_INTERNAL_SDK);
30 USE_INTERNAL_SDK_Release = $(HAVE_INTERNAL_SDK);
31
32 WK_TARGET_IOS_VERSION_MAJOR = $(IPHONEOS_DEPLOYMENT_TARGET:base); // e.g. iOS 9.3 => 9
33 WK_TARGET_TVOS_VERSION_MAJOR = $(TVOS_DEPLOYMENT_TARGET:base);
34 WK_TARGET_WATCHOS_VERSION_MAJOR = $(WATCHOS_DEPLOYMENT_TARGET:base);
35
36 WK_PRIVATE_FRAMEWORKS_DIR = $(WK_PRIVATE_FRAMEWORKS_DIR_$(USE_INTERNAL_SDK));
37 WK_PRIVATE_FRAMEWORKS_DIR_[sdk=macos*] = $(PROJECT_DIR)/../../WebKitLibraries/WebKitPrivateFrameworkStubs/Mac/$(TARGET_MAC_OS_X_VERSION_MAJOR);
38 WK_PRIVATE_FRAMEWORKS_DIR_[sdk=iphone*] = $(PROJECT_DIR)/../../WebKitLibraries/WebKitPrivateFrameworkStubs/iOS/$(WK_TARGET_IOS_VERSION_MAJOR);
39 WK_PRIVATE_FRAMEWORKS_DIR_[sdk=appletv*] = $(PROJECT_DIR)/../../WebKitLibraries/WebKitPrivateFrameworkStubs/appletvos/$(WK_TARGET_TVOS_VERSION_MAJOR);
40 WK_PRIVATE_FRAMEWORKS_DIR_[sdk=watch*] = $(PROJECT_DIR)/../../WebKitLibraries/WebKitPrivateFrameworkStubs/watchos/$(WK_TARGET_WATCHOS_VERSION_MAJOR);
41
42 FRAMEWORK_SEARCH_PATHS = $(WK_PRIVATE_FRAMEWORKS_DIR);
43
44 CLANG_CXX_LANGUAGE_STANDARD = gnu++1z;
45 CLANG_CXX_LIBRARY = libc++;
46 CLANG_ENABLE_OBJC_WEAK = YES;
47 CLANG_WARN_CXX0X_EXTENSIONS = NO;
48 GCC_NO_COMMON_BLOCKS = YES;
49 ENABLE_STRICT_OBJC_MSGSEND=YES;
50 GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) U_DISABLE_RENAMING=1 U_SHOW_CPLUSPLUS_API=0;
51 DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
52 PREBINDING = NO
53 GCC_C_LANGUAGE_STANDARD = gnu99
54 GCC_ENABLE_CPP_RTTI = NO;
55 GCC_OBJC_CALL_CXX_CDTORS = YES
56 GCC_PRECOMPILE_PREFIX_HEADER = YES
57 GCC_TREAT_WARNINGS_AS_ERRORS = YES
58 CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
59 CLANG_WARN_BOOL_CONVERSION = YES;
60 CLANG_WARN_COMMA = YES;
61 CLANG_WARN_CONSTANT_CONVERSION = YES;
62 CLANG_WARN_EMPTY_BODY = YES;
63 CLANG_WARN_ENUM_CONVERSION = YES;
64 CLANG_WARN_INFINITE_RECURSION = YES;
65 CLANG_WARN_INT_CONVERSION = YES;
66 CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
67 CLANG_WARN_STRICT_PROTOTYPES = YES;
68 CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
69 CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
70 CLANG_WARN_SUSPICIOUS_MOVE = YES;
71 CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
72 CLANG_WARN_UNREACHABLE_CODE = YES;
73 GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
74 GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO
75 GCC_WARN_ABOUT_RETURN_TYPE = YES;
76 GCC_WARN_UNINITIALIZED_AUTOS = YES;
77 GCC_WARN_UNUSED_FUNCTION = YES
78 GCC_WARN_UNUSED_VARIABLE = YES
79 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
80 GCC_WARN_UNDECLARED_SELECTOR = YES;
81 CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
82 CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
83 // FIXME: <http://webkit.org/b/118590> DumpRenderTree should build with -Wshorten-64-to-32
84 GCC_WARN_64_TO_32_BIT_CONVERSION[arch=arm64*] = NO;
85 GCC_WARN_64_TO_32_BIT_CONVERSION[arch=x86_64] = NO;
86 WARNING_CFLAGS = -Wall -W -Wconditional-uninitialized -Wno-unused-parameter -Wundef;
87
88 DEBUG_DEFINES = NDEBUG;
89 DEBUG_DEFINES[config=Debug] = ;
90
91 GCC_OPTIMIZATION_LEVEL[config=Debug] = 0;
92
93 TARGET_MACOS_LEGACY_VERSION_IDENTIFIER = $(TARGET_MACOS_LEGACY_VERSION_IDENTIFIER_$(MACOSX_DEPLOYMENT_TARGET:base))
94 TARGET_MACOS_LEGACY_VERSION_IDENTIFIER_10 = 10$(MACOSX_DEPLOYMENT_TARGET:suffix:identifier)
95
96 TARGET_MAC_OS_X_VERSION_MAJOR = $(TARGET_MAC_OS_X_VERSION_MAJOR_$(TARGET_MACOS_LEGACY_VERSION_IDENTIFIER))
97 TARGET_MAC_OS_X_VERSION_MAJOR_ = $(MACOSX_DEPLOYMENT_TARGET:base:base)0000
98 TARGET_MAC_OS_X_VERSION_MAJOR_10_13 = 101300
99 TARGET_MAC_OS_X_VERSION_MAJOR_10_14 = 101400
100 TARGET_MAC_OS_X_VERSION_MAJOR_10_15 = 101500
101
102 SDKROOT = macosx.internal;
103
104 PRODUCTION_FRAMEWORKS_DIR[sdk=embedded*] = $(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks;
105 PRODUCTION_FRAMEWORKS_DIR[sdk=macosx*] = $(SDKROOT)$(NEXT_ROOT)$(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks;
106
107 WTF_BUILD_SCRIPTS_DIR = $(WTF_BUILD_SCRIPTS_DIR_$(CONFIGURATION));
108 WTF_BUILD_SCRIPTS_DIR_Release = $(WTF_BUILD_SCRIPTS_DIR_engineering);
109 WTF_BUILD_SCRIPTS_DIR_Debug = $(WTF_BUILD_SCRIPTS_DIR_engineering);
110 WTF_BUILD_SCRIPTS_DIR_Production = $(WTF_BUILD_SCRIPTS_DIR_Production_COCOA_TOUCH_$(WK_IS_COCOA_TOUCH));
111 WTF_BUILD_SCRIPTS_DIR_Production_COCOA_TOUCH_YES = $(SDKROOT)$(WK_ALTERNATE_WEBKIT_SDK_PATH)/usr/local/include/wtf/Scripts;
112 WTF_BUILD_SCRIPTS_DIR_Production_COCOA_TOUCH_NO = $(SDKROOT)/usr/local/include/wtf/Scripts;
113 WTF_BUILD_SCRIPTS_DIR_engineering = $(BUILT_PRODUCTS_DIR)/usr/local/include/wtf/Scripts;
114
115 WEBCORE_PRIVATE_HEADERS_DIR = $(WEBCORE_PRIVATE_HEADERS_DIR_$(CONFIGURATION));
116 WEBCORE_PRIVATE_HEADERS_DIR_Release = $(WEBCORE_PRIVATE_HEADERS_DIR_engineering);
117 WEBCORE_PRIVATE_HEADERS_DIR_Debug = $(WEBCORE_PRIVATE_HEADERS_DIR_engineering);
118 WEBCORE_PRIVATE_HEADERS_DIR_Production = $(PRODUCTION_FRAMEWORKS_DIR)/WebCore.framework/PrivateHeaders;
119 WEBCORE_PRIVATE_HEADERS_DIR_engineering = $(BUILT_PRODUCTS_DIR)/WebCore.framework/PrivateHeaders;
120
121 AD_HOC_CODE_SIGNING_ALLOWED = YES;
122 CODE_SIGN_IDENTITY = -;
123
124 SUPPORTED_PLATFORMS = iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator;
125 SUPPORTS_MACCATALYST = YES;
126
127 OTHER_CFLAGS = $(inherited) -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders;
128 OTHER_CPLUSPLUSFLAGS = $(inherited) -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders;
129
130 WEBKIT_FRAMEWORK_RESOURCES_PATH = WebKit.framework;
131 WEBKIT_FRAMEWORK_RESOURCES_PATH[sdk=macosx*] = WebKit.framework/Versions/A/Resources;
132
133 WK_COCOA_TOUCH = $(WK_COCOA_TOUCH_$(WK_PLATFORM_NAME));
134 WK_COCOA_TOUCH_iphoneos = cocoatouch;
135 WK_COCOA_TOUCH_maccatalyst = cocoatouch;
136 WK_COCOA_TOUCH_iphonesimulator = cocoatouch;
137 WK_COCOA_TOUCH_watchos = cocoatouch;
138 WK_COCOA_TOUCH_watchsimulator = cocoatouch;
139 WK_COCOA_TOUCH_appletvos = cocoatouch;
140 WK_COCOA_TOUCH_appletvsimulator = cocoatouch;
141 WK_IS_COCOA_TOUCH = $(WK_NOT_$(WK_EMPTY_$(WK_COCOA_TOUCH)));
142
143 HEADER_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR)/usr/local/include $(BUILT_PRODUCTS_DIR)/WebCoreTestSupport ForwardingHeaders $(HEADER_SEARCH_PATHS_$(WK_COCOA_TOUCH));
144 HEADER_SEARCH_PATHS_ = mac/InternalHeaders $(NEXT_ROOT)/usr/local/include/WebCoreTestSupport;
145 HEADER_SEARCH_PATHS_cocoatouch = $(SDKROOT)/usr/local/include $(SDKROOT)/usr/local/include/WebCoreTestSupport $(SRCROOT)/../../Source/WebKit/Platform/spi/ios;