Build fix.
[WebKit-https.git] / Tools / TestWebKitAPI / Configurations / FeatureDefines.xcconfig
1 // Copyright (C) 2009, 2010, 2014, 2015, 2016 Apple Inc. All rights reserved.
2 // Copyright (C) 2009 Google Inc. All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions
6 // are met:
7 // 1. Redistributions of source code must retain the above copyright
8 //    notice, this list of conditions and the following disclaimer.
9 // 2. Redistributions in binary form must reproduce the above copyright
10 //    notice, this list of conditions and the following disclaimer in the
11 //    documentation and/or other materials provided with the distribution.
12 //
13 // THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
17 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
25 // The contents of this file must be kept in sync with FeatureDefines.xcconfig in JavaScriptCore,
26 // WebCore, WebKit and WebKit2.  Also the default values of the ENABLE_FEATURE_NAME macros in
27 // build-webkit should match the values below, but they do not need to be in the same order.
28
29 // Keep this list of features (not enabled/disabled state) in sync with FeatureDefines.vsprops
30 // and FeatureDefinesCairo.vsprops in WebKitLibraries/win/tools/vsprops.
31
32 // Set any ENABLE_FEATURE_NAME macro to an empty string to disable that feature.
33
34 ENABLE_3D_TRANSFORMS = ENABLE_3D_TRANSFORMS;
35 ENABLE_ACCELERATED_2D_CANVAS = ;
36 ENABLE_ACCELERATED_OVERFLOW_SCROLLING[sdk=iphone*] = ENABLE_ACCELERATED_OVERFLOW_SCROLLING;
37
38 ENABLE_APPLE_PAY[sdk=embedded*] = $(ENABLE_APPLE_PAY_$(PLATFORM_NAME));
39 ENABLE_APPLE_PAY_iphoneos = ENABLE_APPLE_PAY;
40 ENABLE_APPLE_PAY_iphonesimulator = ENABLE_APPLE_PAY;
41 ENABLE_APPLE_PAY[sdk=iphoneos9*] = ;
42 ENABLE_APPLE_PAY[sdk=iphonesimulator9*] = ;
43 ENABLE_APPLE_PAY[sdk=macosx*] = $(ENABLE_APPLE_PAY_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR))
44 ENABLE_APPLE_PAY_macosx_101200 = ENABLE_APPLE_PAY;
45 ENABLE_APPLE_PAY_macosx_101300 = ENABLE_APPLE_PAY;
46
47 ENABLE_ATTACHMENT_ELEMENT = ENABLE_ATTACHMENT_ELEMENT;
48 ENABLE_AVF_CAPTIONS = ENABLE_AVF_CAPTIONS;
49 ENABLE_CACHE_PARTITIONING = ENABLE_CACHE_PARTITIONING;
50 ENABLE_CANVAS_PATH = ENABLE_CANVAS_PATH;
51 ENABLE_CANVAS_PROXY = ;
52 ENABLE_CHANNEL_MESSAGING = ENABLE_CHANNEL_MESSAGING;
53 ENABLE_ES6_MODULES = ;
54 ENABLE_CONTENT_FILTERING[sdk=appletv*] = ;
55 ENABLE_CONTENT_FILTERING[sdk=iphone*] = ENABLE_CONTENT_FILTERING;
56 ENABLE_CONTENT_FILTERING[sdk=macosx*] = ENABLE_CONTENT_FILTERING;
57 ENABLE_CSP_NEXT = ;
58 ENABLE_CSS_ANIMATIONS_LEVEL_2 = ENABLE_CSS_ANIMATIONS_LEVEL_2;
59 ENABLE_CSS_BOX_DECORATION_BREAK = ENABLE_CSS_BOX_DECORATION_BREAK;
60 ENABLE_CSS_COMPOSITING = ENABLE_CSS_COMPOSITING;
61 ENABLE_CSS_DEVICE_ADAPTATION = ;
62 ENABLE_CSS_GRID_LAYOUT = ENABLE_CSS_GRID_LAYOUT;
63 ENABLE_CSS_IMAGE_ORIENTATION = ;
64 ENABLE_CSS_IMAGE_RESOLUTION = ;
65 ENABLE_CSS_REGIONS = ENABLE_CSS_REGIONS;
66 ENABLE_CSS_SELECTORS_LEVEL4 = ENABLE_CSS_SELECTORS_LEVEL4;
67 ENABLE_CSS_SHAPES = ENABLE_CSS_SHAPES;
68 ENABLE_CSS3_TEXT = ;
69 ENABLE_CURSOR_VISIBILITY = ENABLE_CURSOR_VISIBILITY;
70 ENABLE_CUSTOM_SCHEME_HANDLER = ;
71 ENABLE_DASHBOARD_SUPPORT[sdk=macosx*] = ENABLE_DASHBOARD_SUPPORT;
72 ENABLE_DATALIST_ELEMENT = ;
73 ENABLE_DATA_TRANSFER_ITEMS = ;
74 ENABLE_DETAILS_ELEMENT = ENABLE_DETAILS_ELEMENT;
75 ENABLE_DEVICE_ORIENTATION[sdk=iphone*] = ENABLE_DEVICE_ORIENTATION;
76 ENABLE_DOM4_EVENTS_CONSTRUCTOR = ENABLE_DOM4_EVENTS_CONSTRUCTOR;
77 ENABLE_ENCRYPTED_MEDIA[sdk=macosx*] = ENABLE_ENCRYPTED_MEDIA;
78 ENABLE_ENCRYPTED_MEDIA_V2[sdk=macosx*] = ENABLE_ENCRYPTED_MEDIA_V2;
79 ENABLE_FETCH_API = ENABLE_FETCH_API;
80 ENABLE_FILTERS_LEVEL_2 = ENABLE_FILTERS_LEVEL_2;
81 ENABLE_FONT_LOAD_EVENTS = ;
82 ENABLE_FULLSCREEN_API[sdk=macosx*] = ENABLE_FULLSCREEN_API;
83 ENABLE_GAMEPAD = ENABLE_GAMEPAD;
84 ENABLE_GAMEPAD[sdk=watch*] = ;
85 ENABLE_GAMEPAD_DEPRECATED = ;
86 ENABLE_GEOLOCATION = ENABLE_GEOLOCATION;
87 ENABLE_ICONDATABASE[sdk=macosx*] = ENABLE_ICONDATABASE;
88 ENABLE_SERVICE_CONTROLS[sdk=macosx*] = ENABLE_SERVICE_CONTROLS;
89 ENABLE_INDEXED_DATABASE = ENABLE_INDEXED_DATABASE;
90 ENABLE_INDEXED_DATABASE_IN_WORKERS = ENABLE_INDEXED_DATABASE_IN_WORKERS;
91 ENABLE_INDIE_UI = ENABLE_INDIE_UI;
92 ENABLE_INPUT_TYPE_COLOR[sdk=macosx*] = ENABLE_INPUT_TYPE_COLOR;
93 ENABLE_INPUT_TYPE_COLOR_POPOVER[sdk=macosx*] = ENABLE_INPUT_TYPE_COLOR_POPOVER;
94 ENABLE_INPUT_TYPE_DATE[sdk=iphone*] = ENABLE_INPUT_TYPE_DATE;
95 ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE = ;
96 ENABLE_INPUT_TYPE_DATETIMELOCAL[sdk=iphone*] = ENABLE_INPUT_TYPE_DATETIMELOCAL;
97 ENABLE_INPUT_TYPE_MONTH[sdk=iphone*] = ENABLE_INPUT_TYPE_MONTH;
98 ENABLE_INPUT_TYPE_TIME[sdk=iphone*] = ENABLE_INPUT_TYPE_TIME;
99 ENABLE_INPUT_TYPE_WEEK[sdk=iphone*] = ENABLE_INPUT_TYPE_WEEK;
100
101 ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS = ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS;
102
103 ENABLE_WIRELESS_PLAYBACK_TARGET[sdk=iphone*] = ENABLE_WIRELESS_PLAYBACK_TARGET;
104 ENABLE_WIRELESS_PLAYBACK_TARGET[sdk=macosx*] = $(ENABLE_WIRELESS_PLAYBACK_TARGET_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR))
105 ENABLE_WIRELESS_PLAYBACK_TARGET_macosx_101000 = ;
106 ENABLE_WIRELESS_PLAYBACK_TARGET_macosx_101100 = ENABLE_WIRELESS_PLAYBACK_TARGET;
107 ENABLE_WIRELESS_PLAYBACK_TARGET_macosx_101200 = ENABLE_WIRELESS_PLAYBACK_TARGET;
108 ENABLE_WIRELESS_PLAYBACK_TARGET_macosx_101300 = ENABLE_WIRELESS_PLAYBACK_TARGET;
109
110 ENABLE_INTL = ENABLE_INTL;
111
112 ENABLE_IOS_GESTURE_EVENTS = ;
113 ENABLE_IOS_GESTURE_EVENTS[sdk=iphone*] = $(ENABLE_IOS_GESTURE_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK));
114 ENABLE_IOS_GESTURE_EVENTS_ios_WITH_INTERNAL_SDK_YES = ENABLE_IOS_GESTURE_EVENTS;
115
116 ENABLE_MAC_GESTURE_EVENTS = ;
117 ENABLE_MAC_GESTURE_EVENTS[sdk=macosx*] = $(ENABLE_MAC_GESTURE_EVENTS_macosx_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK));
118 ENABLE_MAC_GESTURE_EVENTS_macosx_WITH_INTERNAL_SDK_YES = ENABLE_MAC_GESTURE_EVENTS;
119
120 ENABLE_IOS_TEXT_AUTOSIZING = ENABLE_IOS_TEXT_AUTOSIZING;
121 ENABLE_DATA_DETECTION = ENABLE_DATA_DETECTION;
122
123 ENABLE_IOS_TOUCH_EVENTS[sdk=iphone*] = $(ENABLE_IOS_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK));
124 ENABLE_IOS_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_YES = ENABLE_IOS_TOUCH_EVENTS;
125
126 ENABLE_LEGACY_CSS_VENDOR_PREFIXES = ENABLE_LEGACY_CSS_VENDOR_PREFIXES;
127 ENABLE_LEGACY_NOTIFICATIONS[sdk=macosx*] = ENABLE_LEGACY_NOTIFICATIONS;
128 ENABLE_LEGACY_VENDOR_PREFIXES = ENABLE_LEGACY_VENDOR_PREFIXES;
129 ENABLE_LETTERPRESS[sdk=iphone*] = ENABLE_LETTERPRESS;
130 ENABLE_LINK_PREFETCH = ;
131 ENABLE_MATHML = ENABLE_MATHML;
132 ENABLE_MEDIA_CAPTURE[sdk=iphone*] = ENABLE_MEDIA_CAPTURE;
133 ENABLE_MEDIA_CONTROLS_SCRIPT = ENABLE_MEDIA_CONTROLS_SCRIPT;
134 ENABLE_MEDIA_SESSION = ;
135
136 ENABLE_MEDIA_SOURCE[sdk=macosx*] = ENABLE_MEDIA_SOURCE;
137
138 ENABLE_MEDIA_STATISTICS = ;
139 ENABLE_MEDIA_STREAM = ENABLE_MEDIA_STREAM;
140 ENABLE_METER_ELEMENT[sdk=macosx*] = ENABLE_METER_ELEMENT;
141 ENABLE_MHTML = ;
142 ENABLE_MOUSE_CURSOR_SCALE[sdk=macosx*] = ENABLE_MOUSE_CURSOR_SCALE;
143 ENABLE_NAVIGATOR_CONTENT_UTILS = ;
144 ENABLE_NAVIGATOR_HWCONCURRENCY = ENABLE_NAVIGATOR_HWCONCURRENCY;
145 ENABLE_NOSNIFF = ;
146 ENABLE_NOTIFICATIONS[sdk=macosx*] = ENABLE_NOTIFICATIONS;
147 ENABLE_PDFKIT_PLUGIN[sdk=macosx*] = ENABLE_PDFKIT_PLUGIN;
148 ENABLE_POINTER_LOCK = ;
149 ENABLE_PROXIMITY_EVENTS = ;
150 ENABLE_PUBLIC_SUFFIX_LIST = ENABLE_PUBLIC_SUFFIX_LIST;
151 ENABLE_QUOTA = ;
152 ENABLE_REQUEST_ANIMATION_FRAME = ENABLE_REQUEST_ANIMATION_FRAME;
153 ENABLE_REQUEST_AUTOCOMPLETE = ;
154 ENABLE_REMOTE_INSPECTOR = ENABLE_REMOTE_INSPECTOR;
155 ENABLE_RESOLUTION_MEDIA_QUERY = ;
156 ENABLE_RESOURCE_USAGE = ENABLE_RESOURCE_USAGE;
157 ENABLE_RUBBER_BANDING[sdk=macosx*] = ENABLE_RUBBER_BANDING;
158 ENABLE_CSS_SCROLL_SNAP = ENABLE_CSS_SCROLL_SNAP;
159 ENABLE_SPEECH_SYNTHESIS = ENABLE_SPEECH_SYNTHESIS;
160 ENABLE_STREAMS_API = ENABLE_STREAMS_API;
161 ENABLE_SUBTLE_CRYPTO = ENABLE_SUBTLE_CRYPTO;
162 ENABLE_SVG_FONTS = ENABLE_SVG_FONTS;
163
164 ENABLE_TELEPHONE_NUMBER_DETECTION = ENABLE_TELEPHONE_NUMBER_DETECTION;
165
166 ENABLE_TEXT_AUTOSIZING = ;
167
168 ENABLE_CSS_TRAILING_WORD = ENABLE_CSS_TRAILING_WORD;
169
170 // FIXME: Remove the USE_INTERNAL_SDK condition once we support touch events when building for iOS with
171 // the public SDK. We will also need to update FeatureDefines.h.
172 ENABLE_TOUCH_EVENTS[sdk=iphone*] = $(ENABLE_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK));
173 ENABLE_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_YES = ENABLE_TOUCH_EVENTS;
174
175 ENABLE_TOUCH_ICON_LOADING = ;
176 ENABLE_USERSELECT_ALL = ENABLE_USERSELECT_ALL;
177 ENABLE_VIDEO = ENABLE_VIDEO;
178 ENABLE_VIDEO_PRESENTATION_MODE[sdk=iphone*] = ENABLE_VIDEO_PRESENTATION_MODE;
179 ENABLE_VIDEO_PRESENTATION_MODE[sdk=macosx*] = $(ENABLE_VIDEO_PRESENTATION_MODE_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR))
180 ENABLE_VIDEO_PRESENTATION_MODE_macosx_101200 = ENABLE_VIDEO_PRESENTATION_MODE;
181 ENABLE_VIDEO_PRESENTATION_MODE_macosx_101300 = ENABLE_VIDEO_PRESENTATION_MODE;
182 ENABLE_VIDEO_TRACK = ENABLE_VIDEO_TRACK;
183 ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
184 ENABLE_VIEW_MODE_CSS_MEDIA = ;
185 ENABLE_WEBASSEMBLY = ;
186 ENABLE_WEBGL = ENABLE_WEBGL;
187 ENABLE_WEBGL2 = ENABLE_WEBGL2;
188 ENABLE_WEB_ANIMATIONS = ENABLE_WEB_ANIMATIONS;
189 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO;
190 ENABLE_WEB_REPLAY = $(ENABLE_WEB_REPLAY_$(PLATFORM_NAME)_$(CONFIGURATION));
191 ENABLE_WEB_REPLAY_macosx_Debug = ENABLE_WEB_REPLAY;
192 ENABLE_WEB_REPLAY_macosx_Release = ENABLE_WEB_REPLAY;
193 ENABLE_WEB_SOCKETS = ENABLE_WEB_SOCKETS;
194
195 ENABLE_WEB_TIMING = ENABLE_WEB_TIMING;
196
197 ENABLE_XSLT = ENABLE_XSLT;
198
199 ENABLE_FTL_JIT[sdk=macosx*] = ENABLE_FTL_JIT;
200 ENABLE_FTL_JIT[sdk=iphoneos*] = ENABLE_FTL_JIT;
201
202 ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
203
204 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES6_MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_XSLT);