[JSC] Implement Temporal.Now.instant()
[WebKit-https.git] / Source / WebInspectorUI / Configurations / WebKitTargetConditionals.xcconfig
1 // Copyright (C) 2019 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 // Use the following helpers to define build settings whose value depends on the target
25 // macOS version in a succinct and future-proof way.
26 //
27 // Example 1: To give the SMOOTHNESS build setting the value 3 in macOS 10.12 and later and the
28 // value 2 in earlier versions, write:
29 //
30 //     SMOOTHNESS = $(SMOOTHNESS$(WK_MACOS_1012));
31 //     SMOOTHNESS_MACOS_BEFORE_1012 = 2;
32 //     SMOOTHNESS_MACOS_SINCE_1012 = 3;
33 //
34 // Example 2: To define ENABLE_COLOR to ENABLE_COLOR in all platforms except macOS 10.12 and
35 // earlier write:
36 //
37 //     ENABLE_COLOR = ENABLE_COLOR;
38 //     ENABLE_COLOR[sdk=macosx*] = $(ENABLE_COLOR$(WK_MACOS_1013));
39 //     ENABLE_COLOR_MACOS_SINCE_1013 = $(ENABLE_COLOR);
40 //
41 // Example 3: To give EXTRA_PATH one value before macOS 10.12, another value in macOS 10.12 and
42 // macOS 10.13, and a third value in macOS 10.14 and later, write:
43 //
44 //     EXTRA_PATH = $(EXTRA_PATH$(WK_MACOS_1012_1014));
45 //     EXTRA_PATH_MACOS_BEFORE_1012 = "/Library/Application Support/WebKit";
46 //     EXTRA_PATH_MACOS_BEFORE_1014 = /System/Library/CoreServices;
47 //     EXTRA_PATH_MACOS_SINCE_1014 = /System/Library/PrivateFrameworks;
48
49 // macOS
50
51 WK_MACOS_BEFORE_1014 = $(WK_MACOS_BEFORE_1014_$(TARGET_MAC_OS_X_VERSION_MAJOR));
52 WK_MACOS_BEFORE_1014_101300 = YES;
53
54 WK_MACOS_BEFORE_1015 = $(WK_MACOS_BEFORE_1015_$(TARGET_MAC_OS_X_VERSION_MAJOR));
55 WK_MACOS_BEFORE_1015_101300 = YES;
56 WK_MACOS_BEFORE_1015_101400 = YES;
57
58 WK_MACOS_BEFORE_1016 = $(WK_MACOS_BEFORE_1016_$(TARGET_MAC_OS_X_VERSION_MAJOR));
59 WK_MACOS_BEFORE_1016_101300 = YES;
60 WK_MACOS_BEFORE_1016_101400 = YES;
61 WK_MACOS_BEFORE_1016_101500 = YES;
62
63 WK_MACOS_BEFORE_1100 = $(WK_MACOS_BEFORE_1100_$(TARGET_MAC_OS_X_VERSION_MAJOR));
64 WK_MACOS_BEFORE_1100_101300 = YES;
65 WK_MACOS_BEFORE_1100_101400 = YES;
66 WK_MACOS_BEFORE_1100_101500 = YES;
67
68 WK_MACOS_BEFORE_1200 = $(WK_MACOS_BEFORE_1200_$(TARGET_MAC_OS_X_VERSION_MAJOR));
69 WK_MACOS_BEFORE_1200_101300 = YES;
70 WK_MACOS_BEFORE_1200_101400 = YES;
71 WK_MACOS_BEFORE_1200_101500 = YES;
72 WK_MACOS_BEFORE_1200_110000 = YES;
73
74 WK_MACOS_1014 = $(WK_MACOS_1014_$(WK_MACOS_BEFORE_1014));
75 WK_MACOS_1014_ = _MACOS_SINCE_1014;
76 WK_MACOS_1014_YES = _MACOS_BEFORE_1014;
77
78 WK_MACOS_1014_1015 = $(WK_MACOS_1014_1015_$(WK_MACOS_BEFORE_1014));
79 WK_MACOS_1014_1015_ = $(WK_MACOS_1015);
80 WK_MACOS_1014_1015_YES = _MACOS_BEFORE_1014;
81
82 WK_MACOS_1014_1016 = $(WK_MACOS_1014_1016_$(WK_MACOS_BEFORE_1014));
83 WK_MACOS_1014_1016_ = $(WK_MACOS_1016);
84 WK_MACOS_1014_1016_YES = _MACOS_BEFORE_1014;
85
86 WK_MACOS_1014_1100 = $(WK_MACOS_1014_1100_$(WK_MACOS_BEFORE_1014));
87 WK_MACOS_1014_1100_ = $(WK_MACOS_1100);
88 WK_MACOS_1014_1100_YES = _MACOS_BEFORE_1014;
89
90 WK_MACOS_1014_1200 = $(WK_MACOS_1014_1200_$(WK_MACOS_BEFORE_1014));
91 WK_MACOS_1014_1200_ = $(WK_MACOS_1200);
92 WK_MACOS_1014_1200_YES = _MACOS_BEFORE_1014;
93
94 WK_MACOS_1015 = $(WK_MACOS_1015_$(WK_MACOS_BEFORE_1015));
95 WK_MACOS_1015_ = _MACOS_SINCE_1015;
96 WK_MACOS_1015_YES = _MACOS_BEFORE_1015;
97
98 WK_MACOS_1015_1016 = $(WK_MACOS_1015_1016_$(WK_MACOS_BEFORE_1015));
99 WK_MACOS_1015_1016_ = $(WK_MACOS_1016);
100 WK_MACOS_1015_1016_YES = _MACOS_BEFORE_1015;
101
102 WK_MACOS_1015_1100 = $(WK_MACOS_1015_1100_$(WK_MACOS_BEFORE_1015));
103 WK_MACOS_1015_1100_ = $(WK_MACOS_1100);
104 WK_MACOS_1015_1100_YES = _MACOS_BEFORE_1015;
105
106 WK_MACOS_1015_1200 = $(WK_MACOS_1015_1200_$(WK_MACOS_BEFORE_1015));
107 WK_MACOS_1015_1200_ = $(WK_MACOS_1200);
108 WK_MACOS_1015_1200_YES = _MACOS_BEFORE_1015;
109
110 WK_MACOS_1016 = $(WK_MACOS_1016_$(WK_MACOS_BEFORE_1016));
111 WK_MACOS_1016_ = _MACOS_SINCE_1016;
112 WK_MACOS_1016_YES = _MACOS_BEFORE_1016;
113
114 WK_MACOS_1016_1100 = $(WK_MACOS_1016_$(WK_MACOS_BEFORE_1016));
115 WK_MACOS_1016_1100 = _MACOS_SINCE_1016;
116 WK_MACOS_1016_1100_YES = _MACOS_BEFORE_1016;
117
118 WK_MACOS_1016_1200 = $(WK_MACOS_1016_$(WK_MACOS_BEFORE_1016));
119 WK_MACOS_1016_1200 = _MACOS_SINCE_1016;
120 WK_MACOS_1016_1200_YES = _MACOS_BEFORE_1016;
121
122 WK_MACOS_1100 = $(WK_MACOS_1100_$(WK_MACOS_BEFORE_1100));
123 WK_MACOS_1100_ = _MACOS_SINCE_1100;
124 WK_MACOS_1100_YES = _MACOS_BEFORE_1100;
125
126 WK_MACOS_1100_1200 = $(WK_MACOS_1100_$(WK_MACOS_BEFORE_1100));
127 WK_MACOS_1100_1200 = _MACOS_SINCE_1100;
128 WK_MACOS_1100_1200_YES = _MACOS_BEFORE_1100;
129
130 WK_MACOS_1200 = $(WK_MACOS_1200_$(WK_MACOS_BEFORE_1200));
131 WK_MACOS_1200_ = _MACOS_SINCE_1200;
132 WK_MACOS_1200_YES = _MACOS_BEFORE_1200;
133
134 // iOS
135
136 WK_IOS_BEFORE_11 = $(WK_IOS_BEFORE_11_$(IPHONEOS_DEPLOYMENT_TARGET:base));
137
138 WK_IOS_BEFORE_12 = $(WK_IOS_BEFORE_12_$(IPHONEOS_DEPLOYMENT_TARGET:base));
139 WK_IOS_BEFORE_12_11 = YES;
140
141 WK_IOS_BEFORE_13 = $(WK_IOS_BEFORE_13_$(IPHONEOS_DEPLOYMENT_TARGET:base));
142 WK_IOS_BEFORE_13_11 = YES;
143 WK_IOS_BEFORE_13_12 = YES;
144
145 WK_IOS_BEFORE_14 = $(WK_IOS_BEFORE_14_$(IPHONEOS_DEPLOYMENT_TARGET:base));
146 WK_IOS_BEFORE_14_11 = YES;
147 WK_IOS_BEFORE_14_12 = YES;
148 WK_IOS_BEFORE_14_13 = YES;
149
150 WK_IOS_11 = $(WK_IOS_11_$(WK_IOS_BEFORE_11));
151 WK_IOS_11_ = _IOS_SINCE_11;
152 WK_IOS_11_YES = _IOS_BEFORE_11;
153
154 WK_IOS_12 = $(WK_IOS_12_$(WK_IOS_BEFORE_12));
155 WK_IOS_12_ = _IOS_SINCE_12;
156 WK_IOS_12_YES = _IOS_BEFORE_12;
157
158 WK_IOS_12_13 = $(WK_IOS_12_13_$(WK_IOS_BEFORE_12));
159 WK_IOS_12_13_ = $(WK_IOS_13);
160 WK_IOS_12_13_YES = _IOS_BEFORE_12;
161
162 WK_IOS_12_14 = $(WK_IOS_12_14_$(WK_IOS_BEFORE_12));
163 WK_IOS_12_14_ = $(WK_IOS_14);
164 WK_IOS_12_14_YES = _IOS_BEFORE_12;
165
166 WK_IOS_13 = $(WK_IOS_13_$(WK_IOS_BEFORE_13));
167 WK_IOS_13_ = _IOS_SINCE_13;
168 WK_IOS_13_YES = _IOS_BEFORE_13;
169
170 WK_IOS_13_14 = $(WK_IOS_13_14_$(WK_IOS_BEFORE_13));
171 WK_IOS_13_14_ = $(WK_IOS_14);
172 WK_IOS_13_14_YES = _IOS_BEFORE_13;
173
174 WK_IOS_14 = $(WK_IOS_14_$(WK_IOS_BEFORE_14));
175 WK_IOS_14_ = _IOS_SINCE_14;
176 WK_IOS_14_YES = _IOS_BEFORE_14;