Update the definition of ENABLE_VIDEO_PRESENTATION_MODE for Mac platform
[WebKit-https.git] / Source / JavaScriptCore / Configurations / FeatureDefines.xcconfig
1 // Copyright (C) 2009, 2010, 2014, 2015 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 ENABLE_ATTACHMENT_ELEMENT = ENABLE_ATTACHMENT_ELEMENT;
38 ENABLE_AVF_CAPTIONS = ENABLE_AVF_CAPTIONS;
39 ENABLE_CACHE_PARTITIONING = ENABLE_CACHE_PARTITIONING;
40 ENABLE_CANVAS_PATH = ENABLE_CANVAS_PATH;
41 ENABLE_CANVAS_PROXY = ;
42 ENABLE_CHANNEL_MESSAGING = ENABLE_CHANNEL_MESSAGING;
43 ENABLE_ES6_ARROWFUNCTION_SYNTAX = ENABLE_ES6_ARROWFUNCTION_SYNTAX;
44 ENABLE_ES6_CLASS_SYNTAX = ENABLE_ES6_CLASS_SYNTAX;
45 ENABLE_ES6_GENERATORS = ENABLE_ES6_GENERATORS;
46 ENABLE_ES6_MODULES = ;
47 ENABLE_ES6_TEMPLATE_LITERAL_SYNTAX = ENABLE_ES6_TEMPLATE_LITERAL_SYNTAX;
48 ENABLE_CONTENT_FILTERING = ENABLE_CONTENT_FILTERING;
49 ENABLE_CSP_NEXT = ;
50 ENABLE_CSS_ANIMATIONS_LEVEL_2 = ENABLE_CSS_ANIMATIONS_LEVEL_2;
51 ENABLE_CSS_BOX_DECORATION_BREAK = ENABLE_CSS_BOX_DECORATION_BREAK;
52 ENABLE_CSS_COMPOSITING = ENABLE_CSS_COMPOSITING;
53 ENABLE_CSS_DEVICE_ADAPTATION = ;
54 ENABLE_CSS_GRID_LAYOUT = ENABLE_CSS_GRID_LAYOUT;
55 ENABLE_CSS_IMAGE_ORIENTATION = ;
56 ENABLE_CSS_IMAGE_RESOLUTION = ;
57 ENABLE_CSS_REGIONS = ENABLE_CSS_REGIONS;
58 ENABLE_CSS_SELECTORS_LEVEL4 = ENABLE_CSS_SELECTORS_LEVEL4;
59 ENABLE_CSS_SHAPES = ENABLE_CSS_SHAPES;
60 ENABLE_CSS3_TEXT = ;
61 ENABLE_CSS3_TEXT_LINE_BREAK = ;
62 ENABLE_CURSOR_VISIBILITY = ENABLE_CURSOR_VISIBILITY;
63 ENABLE_CUSTOM_SCHEME_HANDLER = ;
64 ENABLE_DASHBOARD_SUPPORT[sdk=macosx*] = ENABLE_DASHBOARD_SUPPORT;
65 ENABLE_DATALIST_ELEMENT = ;
66 ENABLE_DATA_TRANSFER_ITEMS = ;
67 ENABLE_DETAILS_ELEMENT = ENABLE_DETAILS_ELEMENT;
68 ENABLE_DEVICE_ORIENTATION[sdk=iphone*] = ENABLE_DEVICE_ORIENTATION;
69 ENABLE_DOM4_EVENTS_CONSTRUCTOR = ENABLE_DOM4_EVENTS_CONSTRUCTOR;
70 ENABLE_ENCRYPTED_MEDIA[sdk=macosx*] = ENABLE_ENCRYPTED_MEDIA;
71 ENABLE_ENCRYPTED_MEDIA_V2[sdk=macosx*] = ENABLE_ENCRYPTED_MEDIA_V2;
72 ENABLE_FETCH_API = ENABLE_FETCH_API;
73 ENABLE_FILTERS_LEVEL_2 = ENABLE_FILTERS_LEVEL_2;
74 ENABLE_FONT_LOAD_EVENTS = ;
75 ENABLE_FULLSCREEN_API[sdk=macosx*] = ENABLE_FULLSCREEN_API;
76 ENABLE_GAMEPAD[sdk=macosx*] = ENABLE_GAMEPAD;
77 ENABLE_GAMEPAD_DEPRECATED = ;
78 ENABLE_GEOLOCATION = ENABLE_GEOLOCATION;
79 ENABLE_ICONDATABASE[sdk=macosx*] = ENABLE_ICONDATABASE;
80 ENABLE_SERVICE_CONTROLS[sdk=macosx*] = ENABLE_SERVICE_CONTROLS;
81 ENABLE_INDEXED_DATABASE = ENABLE_INDEXED_DATABASE;
82 ENABLE_INDEXED_DATABASE_IN_WORKERS = ;
83 ENABLE_INDIE_UI = ENABLE_INDIE_UI;
84 ENABLE_INPUT_TYPE_COLOR[sdk=macosx*] = ENABLE_INPUT_TYPE_COLOR;
85 ENABLE_INPUT_TYPE_COLOR_POPOVER[sdk=macosx*] = ENABLE_INPUT_TYPE_COLOR_POPOVER;
86 ENABLE_INPUT_TYPE_DATE[sdk=iphone*] = ENABLE_INPUT_TYPE_DATE;
87 ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE = ;
88 ENABLE_INPUT_TYPE_DATETIMELOCAL[sdk=iphone*] = ENABLE_INPUT_TYPE_DATETIMELOCAL;
89 ENABLE_INPUT_TYPE_MONTH[sdk=iphone*] = ENABLE_INPUT_TYPE_MONTH;
90 ENABLE_INPUT_TYPE_TIME[sdk=iphone*] = ENABLE_INPUT_TYPE_TIME;
91 ENABLE_INPUT_TYPE_WEEK[sdk=iphone*] = ENABLE_INPUT_TYPE_WEEK;
92
93 ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS = ENABLE_INSPECTOR_ALTERNATE_DISPATCHERS;
94
95 ENABLE_WIRELESS_PLAYBACK_TARGET[sdk=iphone*] = ENABLE_WIRELESS_PLAYBACK_TARGET;
96 ENABLE_WIRELESS_PLAYBACK_TARGET[sdk=macosx*] = $(ENABLE_WIRELESS_PLAYBACK_TARGET_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR))
97 ENABLE_WIRELESS_PLAYBACK_TARGET_macosx_101000 = ;
98 ENABLE_WIRELESS_PLAYBACK_TARGET_macosx_101100 = ENABLE_WIRELESS_PLAYBACK_TARGET;
99 ENABLE_WIRELESS_PLAYBACK_TARGET_macosx_101200 = ENABLE_WIRELESS_PLAYBACK_TARGET;
100
101 ENABLE_INTL = ENABLE_INTL;
102
103 ENABLE_IOS_GESTURE_EVENTS = ;
104 ENABLE_IOS_GESTURE_EVENTS[sdk=iphone*] = $(ENABLE_IOS_GESTURE_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK));
105 ENABLE_IOS_GESTURE_EVENTS_ios_WITH_INTERNAL_SDK_YES = ENABLE_IOS_GESTURE_EVENTS;
106
107 ENABLE_MAC_GESTURE_EVENTS = ;
108 ENABLE_MAC_GESTURE_EVENTS[sdk=macosx*] = $(ENABLE_MAC_GESTURE_EVENTS_macosx_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK));
109 ENABLE_MAC_GESTURE_EVENTS_macosx_WITH_INTERNAL_SDK_YES = ENABLE_MAC_GESTURE_EVENTS;
110
111 ENABLE_IOS_TEXT_AUTOSIZING[sdk=iphone*] = ENABLE_IOS_TEXT_AUTOSIZING;
112 ENABLE_DATA_DETECTION = ENABLE_DATA_DETECTION;
113
114 ENABLE_IOS_TOUCH_EVENTS[sdk=iphone*] = $(ENABLE_IOS_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK));
115 ENABLE_IOS_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_YES = ENABLE_IOS_TOUCH_EVENTS;
116
117 ENABLE_LEGACY_CSS_VENDOR_PREFIXES = ENABLE_LEGACY_CSS_VENDOR_PREFIXES;
118 ENABLE_LEGACY_NOTIFICATIONS[sdk=macosx*] = ENABLE_LEGACY_NOTIFICATIONS;
119 ENABLE_LEGACY_VENDOR_PREFIXES = ENABLE_LEGACY_VENDOR_PREFIXES;
120 ENABLE_LEGACY_WEB_AUDIO = ENABLE_LEGACY_WEB_AUDIO;
121 ENABLE_LETTERPRESS[sdk=iphone*] = ENABLE_LETTERPRESS;
122 ENABLE_LINK_PREFETCH = ;
123 ENABLE_MATHML = ENABLE_MATHML;
124 ENABLE_MEDIA_CONTROLS_SCRIPT = ENABLE_MEDIA_CONTROLS_SCRIPT;
125 ENABLE_MEDIA_SESSION = ;
126
127 ENABLE_MEDIA_SOURCE[sdk=macosx*] = ENABLE_MEDIA_SOURCE;
128
129 ENABLE_MEDIA_STATISTICS = ;
130 ENABLE_MEDIA_STREAM = ENABLE_MEDIA_STREAM;
131 ENABLE_METER_ELEMENT[sdk=macosx*] = ENABLE_METER_ELEMENT;
132 ENABLE_MHTML = ;
133 ENABLE_MOUSE_CURSOR_SCALE[sdk=macosx*] = ENABLE_MOUSE_CURSOR_SCALE;
134 ENABLE_NAVIGATOR_CONTENT_UTILS = ;
135 ENABLE_NAVIGATOR_HWCONCURRENCY = ENABLE_NAVIGATOR_HWCONCURRENCY;
136 ENABLE_NOSNIFF = ;
137 ENABLE_NOTIFICATIONS[sdk=macosx*] = ENABLE_NOTIFICATIONS;
138 ENABLE_PDFKIT_PLUGIN[sdk=macosx*] = ENABLE_PDFKIT_PLUGIN;
139 ENABLE_POINTER_LOCK = ;
140 ENABLE_PROXIMITY_EVENTS = ;
141 ENABLE_PUBLIC_SUFFIX_LIST = ENABLE_PUBLIC_SUFFIX_LIST;
142 ENABLE_QUOTA = ;
143 ENABLE_REQUEST_ANIMATION_FRAME = ENABLE_REQUEST_ANIMATION_FRAME;
144 ENABLE_REQUEST_AUTOCOMPLETE = ;
145 ENABLE_REMOTE_INSPECTOR = ENABLE_REMOTE_INSPECTOR;
146 ENABLE_RESOLUTION_MEDIA_QUERY = ;
147 ENABLE_RESOURCE_USAGE = ENABLE_RESOURCE_USAGE;
148 ENABLE_RUBBER_BANDING[sdk=macosx*] = ENABLE_RUBBER_BANDING;
149 ENABLE_CSS_SCROLL_SNAP = ENABLE_CSS_SCROLL_SNAP;
150 ENABLE_SPEECH_SYNTHESIS = ENABLE_SPEECH_SYNTHESIS;
151 ENABLE_STREAMS_API = ENABLE_STREAMS_API;
152 ENABLE_SUBTLE_CRYPTO = ENABLE_SUBTLE_CRYPTO;
153 ENABLE_SVG_FONTS = ENABLE_SVG_FONTS;
154 ENABLE_SVG_OTF_CONVERTER = ENABLE_SVG_OTF_CONVERTER;
155
156 ENABLE_TELEPHONE_NUMBER_DETECTION = ENABLE_TELEPHONE_NUMBER_DETECTION;
157
158 ENABLE_TEMPLATE_ELEMENT = ENABLE_TEMPLATE_ELEMENT;
159 ENABLE_TEXT_AUTOSIZING = ;
160
161 ENABLE_CSS_TRAILING_WORD = ENABLE_CSS_TRAILING_WORD;
162
163 // FIXME: Remove the USE_INTERNAL_SDK condition once we support touch events when building for iOS with
164 // the public SDK. We will also need to update FeatureDefines.h.
165 ENABLE_TOUCH_EVENTS[sdk=iphone*] = $(ENABLE_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK));
166 ENABLE_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_YES = ENABLE_TOUCH_EVENTS;
167
168 ENABLE_TOUCH_ICON_LOADING = ;
169 ENABLE_USERSELECT_ALL = ENABLE_USERSELECT_ALL;
170 ENABLE_VIDEO = ENABLE_VIDEO;
171 ENABLE_VIDEO_PRESENTATION_MODE[sdk=iphone*] = ENABLE_VIDEO_PRESENTATION_MODE;
172 ENABLE_VIDEO_PRESENTATION_MODE[sdk=macosx*] = $(ENABLE_VIDEO_PRESENTATION_MODE_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR))
173 ENABLE_VIDEO_PRESENTATION_MODE_macosx_101200 = ENABLE_VIDEO_PRESENTATION_MODE;
174 ENABLE_VIDEO_TRACK = ENABLE_VIDEO_TRACK;
175 ENABLE_DATACUE_VALUE = ENABLE_DATACUE_VALUE;
176 ENABLE_VIEW_MODE_CSS_MEDIA = ;
177 ENABLE_WEBASSEMBLY = ;
178 ENABLE_WEBGL = ENABLE_WEBGL;
179 ENABLE_WEBGL2 = ;
180 ENABLE_WEB_ANIMATIONS = ENABLE_WEB_ANIMATIONS;
181 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO;
182 ENABLE_WEB_REPLAY = $(ENABLE_WEB_REPLAY_$(PLATFORM_NAME)_$(CONFIGURATION));
183 ENABLE_WEB_REPLAY_macosx_Debug = ENABLE_WEB_REPLAY;
184 ENABLE_WEB_REPLAY_macosx_Release = ENABLE_WEB_REPLAY;
185 ENABLE_WEB_SOCKETS = ENABLE_WEB_SOCKETS;
186
187 ENABLE_WEB_TIMING = ENABLE_WEB_TIMING;
188
189 ENABLE_XSLT = ENABLE_XSLT;
190
191 ENABLE_FTL_JIT[sdk=macosx*] = ENABLE_FTL_JIT;
192 ENABLE_FTL_JIT[sdk=iphoneos*] = ENABLE_FTL_JIT;
193
194 ENABLE_SHADOW_DOM = ENABLE_SHADOW_DOM;
195 ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
196
197 FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_AVF_CAPTIONS) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_ES6_ARROWFUNCTION_SYNTAX) $(ENABLE_ES6_CLASS_SYNTAX) $(ENABLE_ES6_GENERATORS) $(ENABLE_ES6_MODULES) $(ENABLE_ES6_TEMPLATE_LITERAL_SYNTAX) $(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_SELECTORS_LEVEL4) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(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_WIRELESS_PLAYBACK_TARGET) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TEXT_AUTOSIZING) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(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_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_STREAMS_API) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_OTF_CONVERTER) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_DATACUE_VALUE) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(ENABLE_JIT) $(ENABLE_SHADOW_DOM) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_VIDEO_PRESENTATION_MODE);