75e4862228b89c1f5e21e03bd4a5abadd923ecdb
[WebKit-https.git] / Source / ThirdParty / libwebrtc / Configurations / macOSTargetConditionals.xcconfig
1 // Use the following helpers to define build settings whose value depends on the target
2 // macOS version in a succinct and future-proof way.
3 //
4 // Example 1: To give the SMOOTHNESS build setting the value 3 in macOS 10.12 and later and the
5 // value 2 in earlier versions, write:
6 //
7 //     SMOOTHNESS = $(SMOOTHNESS$(WK_MACOS_1012));
8 //     SMOOTHNESS_MACOS_BEFORE_1012 = 2;
9 //     SMOOTHNESS_MACOS_SINCE_1012 = 3;
10 //
11 // Example 2: To define ENABLE_COLOR to ENABLE_COLOR in all platforms except macOS 10.12 and
12 // earlier write:
13 //
14 //     ENABLE_COLOR = ENABLE_COLOR;
15 //     ENABLE_COLOR[sdk=macosx*] = $(ENABLE_COLOR$(WK_MACOS_1013));
16 //     ENABLE_COLOR_MACOS_SINCE_1013 = $(ENABLE_COLOR);
17 //
18 // Example 3: To give EXTRA_PATH one value before macOS 10.12, another value in macOS 10.12 and
19 // macOS 10.13, and a third value in macOS 10.14 and later, write:
20 //
21 //     EXTRA_PATH = $(EXTRA_PATH$(WK_MACOS_1012_1014));
22 //     EXTRA_PATH_MACOS_BEFORE_1012 = "/Library/Application Support/WebKit";
23 //     EXTRA_PATH_MACOS_BEFORE_1014 = /System/Library/CoreServices;
24 //     EXTRA_PATH_MACOS_SINCE_1014 = /System/Library/PrivateFrameworks;
25
26 WK_MACOS_BEFORE_1012 = $(WK_MACOS_BEFORE_1012_$(TARGET_MAC_OS_X_VERSION_MAJOR));
27 WK_MACOS_BEFORE_1012_101100 = YES;
28
29 WK_MACOS_BEFORE_1013 = $(WK_MACOS_BEFORE_1013_$(TARGET_MAC_OS_X_VERSION_MAJOR));
30 WK_MACOS_BEFORE_1013_101100 = YES;
31 WK_MACOS_BEFORE_1013_101200 = YES;
32
33 WK_MACOS_BEFORE_1014 = $(WK_MACOS_BEFORE_1014_$(TARGET_MAC_OS_X_VERSION_MAJOR));
34 WK_MACOS_BEFORE_1014_101100 = YES;
35 WK_MACOS_BEFORE_1014_101200 = YES;
36 WK_MACOS_BEFORE_1014_101300 = YES;
37
38 WK_MACOS_BEFORE_1015 = $(WK_MACOS_BEFORE_1015_$(TARGET_MAC_OS_X_VERSION_MAJOR));
39 WK_MACOS_BEFORE_1015_101100 = YES;
40 WK_MACOS_BEFORE_1015_101200 = YES;
41 WK_MACOS_BEFORE_1015_101300 = YES;
42 WK_MACOS_BEFORE_1015_101400 = YES;
43
44 WK_MACOS_1012 = $(WK_MACOS_1012_$(WK_MACOS_BEFORE_1012));
45 WK_MACOS_1012_ = _MACOS_SINCE_1012;
46 WK_MACOS_1012_YES = _MACOS_BEFORE_1012;
47
48 WK_MACOS_1012_1013 = $(WK_MACOS_1012_1013_$(WK_MACOS_BEFORE_1012));
49 WK_MACOS_1012_1013_ = $(WK_MACOS_1013);
50 WK_MACOS_1012_1013_YES = _MACOS_BEFORE_1012;
51
52 WK_MACOS_1012_1014 = $(WK_MACOS_1012_1014_$(WK_MACOS_BEFORE_1012));
53 WK_MACOS_1012_1014_ = $(WK_MACOS_1014);
54 WK_MACOS_1012_1014_YES = _MACOS_BEFORE_1012;
55
56 WK_MACOS_1012_1015 = $(WK_MACOS_1012_1015_$(WK_MACOS_BEFORE_1012));
57 WK_MACOS_1012_1015_ = $(WK_MACOS_1015);
58 WK_MACOS_1012_1015_YES = _MACOS_BEFORE_1012;
59
60 WK_MACOS_1013 = $(WK_MACOS_1013_$(WK_MACOS_BEFORE_1013));
61 WK_MACOS_1013_ = _MACOS_SINCE_1013;
62 WK_MACOS_1013_YES = _MACOS_BEFORE_1013;
63
64 WK_MACOS_1013_1014 = $(WK_MACOS_1013_1014_$(WK_MACOS_BEFORE_1013));
65 WK_MACOS_1013_1014_ = $(WK_MACOS_1014);
66 WK_MACOS_1013_1014_YES = _MACOS_BEFORE_1013;
67
68 WK_MACOS_1013_1015 = $(WK_MACOS_1013_1015_$(WK_MACOS_BEFORE_1013));
69 WK_MACOS_1013_1015_ = $(WK_MACOS_1015);
70 WK_MACOS_1013_1015_YES = _MACOS_BEFORE_1013;
71
72 WK_MACOS_1014 = $(WK_MACOS_1014_$(WK_MACOS_BEFORE_1014));
73 WK_MACOS_1014_ = _MACOS_SINCE_1014;
74 WK_MACOS_1014_YES = _MACOS_BEFORE_1014;
75
76 WK_MACOS_1014_1015 = $(WK_MACOS_1014_1015_$(WK_MACOS_BEFORE_1014));
77 WK_MACOS_1014_1015_ = $(WK_MACOS_1015);
78 WK_MACOS_1014_1015_YES = _MACOS_BEFORE_1014;
79
80 WK_MACOS_1015 = $(WK_MACOS_1015_$(WK_MACOS_BEFORE_1015));
81 WK_MACOS_1015_ = _MACOS_SINCE_1015;
82 WK_MACOS_1015_YES = _MACOS_BEFORE_1015;