1 // Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
2 // Copyright (C) 2009 Google Inc. All rights reserved.
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions
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.
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.
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.
29 // Keep this list of features (not enabled/disabled state) in sync with FeatureDefines.vsprops
30 // and FeatureDefinesCairo.vsprops in WebKitLibraries/win/tools/vsprops.
32 // Set any ENABLE_FEATURE_NAME macro to an empty string to disable that feature.
34 ENABLE_3D_RENDERING = ENABLE_3D_RENDERING;
35 ENABLE_ACCELERATED_2D_CANVAS = ;
36 ENABLE_ANIMATION_API = ;
37 ENABLE_BLOB = ENABLE_BLOB;
38 ENABLE_CHANNEL_MESSAGING = ENABLE_CHANNEL_MESSAGING;
40 ENABLE_CSS_BOX_DECORATION_BREAK = ENABLE_CSS_BOX_DECORATION_BREAK;
41 ENABLE_CSS_EXCLUSIONS = ENABLE_CSS_EXCLUSIONS;
42 ENABLE_CSS_FILTERS = ENABLE_CSS_FILTERS;
43 ENABLE_CSS_IMAGE_ORIENTATION = ;
44 ENABLE_CSS_IMAGE_RESOLUTION = ;
45 ENABLE_CSS_REGIONS = ENABLE_CSS_REGIONS;
46 ENABLE_CSS_SHADERS = ENABLE_CSS_SHADERS;
47 ENABLE_CSS_STICKY_POSITION = ENABLE_CSS_STICKY_POSITION;
48 ENABLE_CSS_VARIABLES = ;
49 ENABLE_CSS3_FLEXBOX = ENABLE_CSS3_FLEXBOX;
50 ENABLE_CUSTOM_SCHEME_HANDLER = ;
51 ENABLE_DASHBOARD_SUPPORT = $(ENABLE_DASHBOARD_SUPPORT_$(REAL_PLATFORM_NAME));
52 ENABLE_DASHBOARD_SUPPORT_macosx = ENABLE_DASHBOARD_SUPPORT;
53 ENABLE_DATALIST_ELEMENT = ;
54 ENABLE_DATA_TRANSFER_ITEMS = ;
55 ENABLE_DETAILS_ELEMENT = ENABLE_DETAILS_ELEMENT;
56 ENABLE_DEVICE_ORIENTATION = ;
57 ENABLE_DIALOG_ELEMENT = ;
58 ENABLE_DIRECTORY_UPLOAD = ;
59 ENABLE_FILE_SYSTEM = ;
60 ENABLE_FILTERS = $(ENABLE_FILTERS_$(REAL_PLATFORM_NAME));
61 ENABLE_FILTERS_macosx = ENABLE_FILTERS;
62 ENABLE_FULLSCREEN_API = ENABLE_FULLSCREEN_API;
64 ENABLE_GEOLOCATION = ENABLE_GEOLOCATION;
65 ENABLE_HIGH_DPI_CANVAS = ENABLE_HIGH_DPI_CANVAS;
66 ENABLE_ICONDATABASE = $(ENABLE_ICONDATABASE_$(REAL_PLATFORM_NAME));
67 ENABLE_ICONDATABASE_macosx = ENABLE_ICONDATABASE;
68 ENABLE_IFRAME_SEAMLESS = ENABLE_IFRAME_SEAMLESS;
69 ENABLE_INDEXED_DATABASE = ;
70 ENABLE_INPUT_SPEECH = ;
71 ENABLE_INPUT_TYPE_COLOR = ;
72 ENABLE_INPUT_TYPE_DATE = $(ENABLE_INPUT_TYPE_DATE_$(REAL_PLATFORM_NAME));
73 ENABLE_INPUT_TYPE_DATE_iphoneos = ENABLE_INPUT_TYPE_DATE;
74 ENABLE_INPUT_TYPE_DATE_iphonesimulator = ENABLE_INPUT_TYPE_DATE;
75 ENABLE_INPUT_TYPE_DATETIME = $(ENABLE_INPUT_TYPE_DATETIME_$(REAL_PLATFORM_NAME));
76 ENABLE_INPUT_TYPE_DATETIME_iphoneos = ENABLE_INPUT_TYPE_DATETIME;
77 ENABLE_INPUT_TYPE_DATETIME_iphonesimulator = ENABLE_INPUT_TYPE_DATETIME;
78 ENABLE_INPUT_TYPE_DATETIMELOCAL = $(ENABLE_INPUT_TYPE_DATETIMELOCAL_$(REAL_PLATFORM_NAME));
79 ENABLE_INPUT_TYPE_DATETIMELOCAL_iphoneos = ENABLE_INPUT_TYPE_DATETIMELOCAL;
80 ENABLE_INPUT_TYPE_DATETIMELOCAL_iphonesimulator = ENABLE_INPUT_TYPE_DATETIMELOCAL;
81 ENABLE_INPUT_TYPE_MONTH = $(ENABLE_INPUT_TYPE_MONTH_$(REAL_PLATFORM_NAME));
82 ENABLE_INPUT_TYPE_MONTH_iphoneos = ENABLE_INPUT_TYPE_MONTH;
83 ENABLE_INPUT_TYPE_MONTH_iphonesimulator = ENABLE_INPUT_TYPE_MONTH;
84 ENABLE_INPUT_TYPE_TIME = $(ENABLE_INPUT_TYPE_TIME_$(REAL_PLATFORM_NAME));
85 ENABLE_INPUT_TYPE_TIME_iphoneos = ENABLE_INPUT_TYPE_TIME;
86 ENABLE_INPUT_TYPE_TIME_iphonesimulator = ENABLE_INPUT_TYPE_TIME;
87 ENABLE_INPUT_TYPE_WEEK = $(ENABLE_INPUT_TYPE_WEEK_$(REAL_PLATFORM_NAME));
88 ENABLE_INPUT_TYPE_WEEK_iphoneos = ENABLE_INPUT_TYPE_WEEK;
89 ENABLE_INPUT_TYPE_WEEK_iphonesimulator = ENABLE_INPUT_TYPE_WEEK;
90 ENABLE_JAVASCRIPT_DEBUGGER = ENABLE_JAVASCRIPT_DEBUGGER;
91 ENABLE_LEGACY_CSS_VENDOR_PREFIXES = ENABLE_LEGACY_CSS_VENDOR_PREFIXES;
92 ENABLE_LEGACY_NOTIFICATIONS = $(ENABLE_LEGACY_NOTIFICATIONS_$(REAL_PLATFORM_NAME));
93 ENABLE_LEGACY_NOTIFICATIONS_macosx = $(ENABLE_LEGACY_NOTIFICATIONS_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR));
94 ENABLE_LEGACY_NOTIFICATIONS_macosx_1070 = ;
95 ENABLE_LEGACY_NOTIFICATIONS_macosx_1080 = ENABLE_LEGACY_NOTIFICATIONS;
96 ENABLE_LEGACY_NOTIFICATIONS_macosx_1090 = ENABLE_LEGACY_NOTIFICATIONS;
97 ENABLE_LEGACY_WEB_AUDIO = ENABLE_LEGACY_WEB_AUDIO;
98 ENABLE_LINK_PREFETCH = ;
99 ENABLE_LINK_PRERENDER = ;
100 ENABLE_MATHML = ENABLE_MATHML;
101 ENABLE_MEDIA_SOURCE = ;
102 ENABLE_MEDIA_STATISTICS = ;
103 ENABLE_METER_ELEMENT = ENABLE_METER_ELEMENT;
106 ENABLE_MUTATION_OBSERVERS = ENABLE_MUTATION_OBSERVERS;
107 ENABLE_NOTIFICATIONS = $(ENABLE_NOTIFICATIONS_$(REAL_PLATFORM_NAME));
108 ENABLE_NOTIFICATIONS_macosx = $(ENABLE_NOTIFICATIONS_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR));
109 ENABLE_NOTIFICATIONS_macosx_1070 = ;
110 ENABLE_NOTIFICATIONS_macosx_1080 = ENABLE_NOTIFICATIONS;
111 ENABLE_NOTIFICATIONS_macosx_1090 = ENABLE_NOTIFICATIONS;
112 ENABLE_PAGE_VISIBILITY_API = ;
113 ENABLE_PROGRESS_ELEMENT = ENABLE_PROGRESS_ELEMENT;
115 ENABLE_REGISTER_PROTOCOL_HANDLER = ;
116 ENABLE_REQUEST_ANIMATION_FRAME = ENABLE_REQUEST_ANIMATION_FRAME;
117 ENABLE_SCRIPTED_SPEECH = ;
118 ENABLE_SHADOW_DOM = ;
119 ENABLE_SHARED_WORKERS = ENABLE_SHARED_WORKERS;
120 ENABLE_SQL_DATABASE = ENABLE_SQL_DATABASE;
121 ENABLE_STYLE_SCOPED = ;
122 ENABLE_SVG = ENABLE_SVG;
123 ENABLE_SVG_DOM_OBJC_BINDINGS = $(ENABLE_SVG_DOM_OBJC_BINDINGS_$(REAL_PLATFORM_NAME));
124 ENABLE_SVG_DOM_OBJC_BINDINGS_macosx = ENABLE_SVG_DOM_OBJC_BINDINGS;
125 ENABLE_SVG_FONTS = ENABLE_SVG_FONTS;
126 ENABLE_TEXT_AUTOSIZING = ;
127 ENABLE_TEXT_NOTIFICATIONS_ONLY = ENABLE_TEXT_NOTIFICATIONS_ONLY;
128 ENABLE_TOUCH_ICON_LOADING = ;
129 ENABLE_UNDO_MANAGER = ;
130 ENABLE_VIDEO = ENABLE_VIDEO;
131 ENABLE_VIDEO_TRACK = $(ENABLE_VIDEO_TRACK_$(REAL_PLATFORM_NAME));
132 ENABLE_VIDEO_TRACK_macosx = ENABLE_VIDEO_TRACK;
133 ENABLE_WEBGL = ENABLE_WEBGL;
134 ENABLE_WEB_AUDIO = ENABLE_WEB_AUDIO;
135 ENABLE_WEB_SOCKETS = ENABLE_WEB_SOCKETS;
136 ENABLE_WEB_TIMING = ;
137 ENABLE_WORKERS = ENABLE_WORKERS;
138 ENABLE_XSLT = ENABLE_XSLT;
140 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ANIMATION_API) $(ENABLE_BLOB) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHADERS) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_VARIABLES) $(ENABLE_CSS3_FLEXBOX) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIALOG_ELEMENT) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_FILE_SYSTEM) $(ENABLE_FILTERS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_IFRAME_SEAMLESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_SPEECH) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LINK_PREFETCH) $(ENABLE_LINK_PRERENDER) $(ENABLE_MATHML) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MICRODATA) $(ENABLE_MUTATION_OBSERVERS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_QUOTA) $(ENABLE_REGISTER_PROTOCOL_HANDLER) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHADOW_DOM) $(ENABLE_SHARED_WORKERS) $(ENABLE_SQL_DATABASE) $(ENABLE_STYLE_SCOPED) $(ENABLE_SVG) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TEXT_NOTIFICATIONS_ONLY) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_UNDO_MANAGER) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XSLT);