Fixed Apple production builds.
[WebKit-https.git] / Source / ThirdParty / libwebrtc / Configurations / Base.xcconfig
1 #include? "../../../../../Internal/Configurations/HaveInternalSDK.xcconfig"
2
3 CODE_SIGN_IDENTITY = -;
4
5 USE_INTERNAL_SDK = $(USE_INTERNAL_SDK_$(CONFIGURATION));
6 USE_INTERNAL_SDK_Production = YES;
7 USE_INTERNAL_SDK_Debug = $(HAVE_INTERNAL_SDK);
8 USE_INTERNAL_SDK_Release = $(HAVE_INTERNAL_SDK);
9
10 ALWAYS_SEARCH_USER_PATHS = NO;
11
12 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
13 CLANG_CXX_LIBRARY = libc++;
14 CLANG_ENABLE_OBJC_ARC = YES;
15 CLANG_ENABLE_OBJC_WEAK = YES;
16 CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
17 CLANG_WARN_BOOL_CONVERSION = YES;
18 CLANG_WARN_CONSTANT_CONVERSION = YES;
19 CLANG_WARN_EMPTY_BODY = YES;
20 CLANG_WARN_ENUM_CONVERSION = YES;
21 CLANG_WARN_INFINITE_RECURSION = YES;
22 CLANG_WARN_INT_CONVERSION = YES;
23 CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
24 CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
25 CLANG_WARN_STRICT_PROTOTYPES = YES;
26 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
27 DEAD_CODE_STRIPPING = YES;
28 DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
29 GCC_C_LANGUAGE_STANDARD = gnu99;
30 GCC_DEBUGGING_SYMBOLS = default;
31 GCC_ENABLE_CPP_EXCEPTIONS = NO;
32 GCC_ENABLE_CPP_RTTI = NO;
33 GCC_ENABLE_OBJC_EXCEPTIONS = YES;
34 ENABLE_STRICT_OBJC_MSGSEND = YES;
35 GCC_ENABLE_SYMBOL_SEPARATION = NO;
36 GCC_FAST_OBJC_DISPATCH = YES;
37 GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
38 GCC_NO_COMMON_BLOCKS = YES;
39 GCC_OBJC_CALL_CXX_CDTORS = YES;
40 GCC_OPTIMIZATION_LEVEL = s;
41 GCC_PRECOMPILE_PREFIX_HEADER = NO;
42 GCC_SYMBOLS_PRIVATE_EXTERN = YES;
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_RETURN_TYPE = YES;
50 GCC_WARN_UNDECLARED_SELECTOR = YES;
51 CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
52 CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
53 GCC_WARN_UNINITIALIZED_AUTOS = YES;
54 GCC_WARN_UNUSED_FUNCTION = YES;
55 GCC_WARN_UNUSED_VARIABLE = YES;
56 CLANG_WARN_SUSPICIOUS_MOVE = YES;
57 PREBINDING = NO;
58 STRIP_INSTALLED_PRODUCT = NO;
59 WARNING_CFLAGS = -Wexit-time-destructors -Wglobal-constructors -Wthread-safety;
60
61 SUPPORTED_PLATFORMS = iphoneos iphonesimulator macosx;
62 VALID_ARCHS = $(ARCHS_STANDARD_64_BIT);
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_12 = 101200;
66 TARGET_MAC_OS_X_VERSION_MAJOR_13 = 101300;
67 TARGET_MAC_OS_X_VERSION_MAJOR_14 = 101400;
68 TARGET_MAC_OS_X_VERSION_MAJOR_15 = 101500;
69
70 SDKROOT = macosx.internal;
71
72
73 // DEBUG_DEFINES, GCC_OPTIMIZATION_LEVEL, STRIP_INSTALLED_PRODUCT and DEAD_CODE_STRIPPING vary between the debug and normal variants.
74 // We set up the values for each variant here, and have the Debug configuration in the Xcode project use the _debug variant.
75 DEBUG_DEFINES_debug = ;
76 DEBUG_DEFINES_normal = NDEBUG;
77 DEBUG_DEFINES = $(DEBUG_DEFINES_$(CURRENT_VARIANT));
78
79 GCC_OPTIMIZATION_LEVEL = $(GCC_OPTIMIZATION_LEVEL_$(CURRENT_VARIANT));
80 GCC_OPTIMIZATION_LEVEL_normal = 3;
81 GCC_OPTIMIZATION_LEVEL_debug = 0;
82
83 STRIP_INSTALLED_PRODUCT = $(STRIP_INSTALLED_PRODUCT_$(CURRENT_VARIANT));
84 STRIP_INSTALLED_PRODUCT_normal = YES;
85 STRIP_INSTALLED_PRODUCT_debug = NO;
86
87 DEAD_CODE_STRIPPING_debug = NO;
88 DEAD_CODE_STRIPPING_normal = YES;
89 DEAD_CODE_STRIPPING = $(DEAD_CODE_STRIPPING_$(CURRENT_VARIANT));
90
91 OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS) -fvisibility=default;
92 OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS) -fvisibility=default;
93 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS) -fvisibility=default;
94
95 GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) $(inherited) ABSL_ALLOCATOR_NOTHROW;
96
97 EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = $(inherited) "$(PROJECT_DIR)/Source/webrtc/examples" "$(PROJECT_DIR)/Source/third_party/boringssl/src/util";
98
99 NORMAL_WEBCORE_FRAMEWORKS_DIR = $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks;
100 NORMAL_WEBCORE_FRAMEWORKS_DIR[sdk=macosx*] = $(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks;
101
102 WK_EMPTY_ = YES;
103 WK_NOT_ = YES;
104 WK_NOT_YES = NO;
105
106 WK_USE_OVERRIDE_FRAMEWORKS_DIR = $(WK_NOT_$(WK_EMPTY_$(WK_OVERRIDE_FRAMEWORKS_DIR)));
107
108 WK_OVERRIDE_FRAMEWORKS_DIR = $(WK_OVERRIDE_FRAMEWORKS_DIR_USE_STAGING_INSTALL_PATH_$(USE_STAGING_INSTALL_PATH));
109 WK_OVERRIDE_FRAMEWORKS_DIR_USE_STAGING_INSTALL_PATH_YES = $(SYSTEM_LIBRARY_DIR)/StagedFrameworks/Safari;
110
111 LLVM_LTO = $(WK_LLVM_LTO_$(WK_XCODE_SUPPORTS_LTO));
112 WK_LLVM_LTO_NO = NO;
113 WK_LLVM_LTO_YES = $(WK_USER_LTO_MODE);
114
115 WK_XCODE_SUPPORTS_LTO = $(WK_NOT_$(WK_XCODE_VERSION_BEFORE_9_$(XCODE_VERSION_MAJOR)));
116 WK_XCODE_VERSION_BEFORE_9_0800 = YES;
117 WK_XCODE_VERSION_BEFORE_9_0700 = YES;
118
119 WK_USER_LTO_MODE = $(WK_USER_LTO_MODE_$(WK_LTO_MODE));
120 WK_USER_LTO_MODE_full = YES;
121 WK_USER_LTO_MODE_thin = YES_THIN;
122 WK_USER_LTO_MODE_none = NO;
123 WK_USER_LTO_MODE_ = $(WK_DEFAULT_LTO_MODE);
124 WK_DEFAULT_LTO_MODE = $(WK_USER_LTO_MODE_none);