[Cocoa] Minor ARC tidying of libwebrtc
[WebKit-https.git] / Source / ThirdParty / libwebrtc / 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 ALWAYS_SEARCH_USER_PATHS = NO;
9
10 CLANG_CXX_LANGUAGE_STANDARD = gnu++14;
11 CLANG_CXX_LIBRARY = libc++;
12 CLANG_ENABLE_OBJC_ARC = YES;
13 CLANG_ENABLE_OBJC_WEAK = YES;
14 CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
15 CLANG_WARN_BOOL_CONVERSION = YES;
16 CLANG_WARN_CONSTANT_CONVERSION = YES;
17 CLANG_WARN_EMPTY_BODY = YES;
18 CLANG_WARN_ENUM_CONVERSION = YES;
19 CLANG_WARN_INT_CONVERSION = YES;
20 CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
21 CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
22 CLANG_WARN_STRICT_PROTOTYPES = YES;
23 CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
24 DEAD_CODE_STRIPPING = YES;
25 DEBUG_INFORMATION_FORMAT = dwarf-with-dsym;
26 GCC_C_LANGUAGE_STANDARD = gnu99;
27 GCC_DEBUGGING_SYMBOLS = default;
28 GCC_ENABLE_CPP_EXCEPTIONS = NO;
29 GCC_ENABLE_CPP_RTTI = NO;
30 GCC_ENABLE_OBJC_EXCEPTIONS = YES;
31 ENABLE_STRICT_OBJC_MSGSEND = YES;
32 GCC_ENABLE_SYMBOL_SEPARATION = NO;
33 GCC_FAST_OBJC_DISPATCH = YES;
34 GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
35 GCC_NO_COMMON_BLOCKS = YES;
36 GCC_OBJC_CALL_CXX_CDTORS = YES;
37 GCC_OPTIMIZATION_LEVEL = s;
38 GCC_PRECOMPILE_PREFIX_HEADER = NO;
39 GCC_SYMBOLS_PRIVATE_EXTERN = YES;
40 GCC_THREADSAFE_STATICS = NO;
41 GCC_TREAT_WARNINGS_AS_ERRORS = YES;
42 GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
43 GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
44 GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
45 GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
46 GCC_WARN_ABOUT_RETURN_TYPE = YES;
47 GCC_WARN_UNDECLARED_SELECTOR = YES;
48 GCC_WARN_UNINITIALIZED_AUTOS = YES;
49 GCC_WARN_UNUSED_FUNCTION = YES;
50 GCC_WARN_UNUSED_VARIABLE = YES;
51 PREBINDING = NO;
52 STRIP_INSTALLED_PRODUCT = NO;
53 WARNING_CFLAGS = -Wexit-time-destructors -Wglobal-constructors;
54
55 SUPPORTED_PLATFORMS = iphoneos iphonesimulator macosx;
56 VALID_ARCHS = $(ARCHS_STANDARD_64_BIT);
57
58 TARGET_MAC_OS_X_VERSION_MAJOR = $(TARGET_MAC_OS_X_VERSION_MAJOR$(MACOSX_DEPLOYMENT_TARGET:suffix:identifier));
59 TARGET_MAC_OS_X_VERSION_MAJOR_11 = 101100;
60 TARGET_MAC_OS_X_VERSION_MAJOR_12 = 101200;
61 TARGET_MAC_OS_X_VERSION_MAJOR_13 = 101300;
62 TARGET_MAC_OS_X_VERSION_MAJOR_14 = 101400;
63 TARGET_MAC_OS_X_VERSION_MAJOR_15 = 101500;
64
65 SDKROOT = macosx.internal;
66
67
68 // DEBUG_DEFINES, GCC_OPTIMIZATION_LEVEL, STRIP_INSTALLED_PRODUCT and DEAD_CODE_STRIPPING vary between the debug and normal variants.
69 // We set up the values for each variant here, and have the Debug configuration in the Xcode project use the _debug variant.
70 DEBUG_DEFINES_debug = ;
71 DEBUG_DEFINES_normal = NDEBUG;
72 DEBUG_DEFINES = $(DEBUG_DEFINES_$(CURRENT_VARIANT));
73
74 GCC_OPTIMIZATION_LEVEL = $(GCC_OPTIMIZATION_LEVEL_$(CURRENT_VARIANT));
75 GCC_OPTIMIZATION_LEVEL_normal = 3;
76 GCC_OPTIMIZATION_LEVEL_debug = 0;
77
78 STRIP_INSTALLED_PRODUCT = $(STRIP_INSTALLED_PRODUCT_$(CURRENT_VARIANT));
79 STRIP_INSTALLED_PRODUCT_normal = YES;
80 STRIP_INSTALLED_PRODUCT_debug = NO;
81
82 DEAD_CODE_STRIPPING_debug = NO;
83 DEAD_CODE_STRIPPING_normal = YES;
84 DEAD_CODE_STRIPPING = $(DEAD_CODE_STRIPPING_$(CURRENT_VARIANT));
85
86 OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS) -fvisibility=default;
87 OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS) -fvisibility=default;
88 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS) -fvisibility=default;
89
90 GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) $(inherited);
91
92 EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = $(inherited) "$(PROJECT_DIR)/Source/webrtc/examples";
93
94 NORMAL_WEBCORE_FRAMEWORKS_DIR = $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks;
95 NORMAL_WEBCORE_FRAMEWORKS_DIR[sdk=macosx*] = $(SYSTEM_LIBRARY_DIR)/Frameworks/WebKit.framework/Versions/A/Frameworks;
96
97 WK_EMPTY_ = YES;
98 WK_NOT_ = YES;
99 WK_NOT_YES = NO;
100
101 WK_USE_OVERRIDE_FRAMEWORKS_DIR = $(WK_NOT_$(WK_EMPTY_$(WK_OVERRIDE_FRAMEWORKS_DIR)));
102
103 WK_OVERRIDE_FRAMEWORKS_DIR = $(WK_OVERRIDE_FRAMEWORKS_DIR_USE_STAGING_INSTALL_PATH_$(USE_STAGING_INSTALL_PATH));
104 WK_OVERRIDE_FRAMEWORKS_DIR_USE_STAGING_INSTALL_PATH_YES = $(SYSTEM_LIBRARY_DIR)/StagedFrameworks/Safari;