OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007-2009 Torch Mobile, Inc. |
| 4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. |
| 5 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 6 * |
| 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions |
| 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright |
| 11 * notice, this list of conditions and the following disclaimer. |
| 12 * 2. Redistributions in binary form must reproduce the above copyright |
| 13 * notice, this list of conditions and the following disclaimer in the |
| 14 * documentation and/or other materials provided with the distribution. |
| 15 * |
| 16 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
| 17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
| 20 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ |
| 28 |
| 29 #ifndef WTF_FeatureDefines_h |
| 30 #define WTF_FeatureDefines_h |
| 31 |
| 32 /* Use this file to list _all_ ENABLE() macros. Define the macros to be one of t
he following values: |
| 33 * - "0" disables the feature by default. The feature can still be enabled for
a specific port or environment. |
| 34 * - "1" enables the feature by default. The feature can still be disabled for
a specific port or environment. |
| 35 * |
| 36 * The feature defaults in this file are only taken into account if the (port sp
ecific) build system |
| 37 * has not enabled or disabled a particular feature. |
| 38 * |
| 39 * Use this file to define ENABLE() macros only. Do not use this file to define
USE() or macros ! |
| 40 * |
| 41 * Only define a macro if it was not defined before - always check for !defined
first. |
| 42 * |
| 43 * Keep the file sorted by the name of the defines. As an exception you can chan
ge the order |
| 44 * to allow interdependencies between the default values. |
| 45 * |
| 46 * Below are a few potential commands to take advantage of this file running fro
m the Source/WTF directory |
| 47 * |
| 48 * Get the list of feature defines: grep -o "ENABLE_\(\w\+\)" wtf/FeatureDefines
.h | sort | uniq |
| 49 * Get the list of features enabled by default for a PLATFORM(XXX): gcc -E -dM -
I. -DWTF_PLATFORM_XXX "wtf/Platform.h" | grep "ENABLE_\w\+ 1" | cut -d' ' -f2 |
sort |
| 50 */ |
| 51 |
| 52 /* FIXME: Move out the PLATFORM specific rules into platform specific files. */ |
| 53 |
| 54 /* ENABLE macro defaults for WebCore */ |
| 55 /* Do not use PLATFORM() tests in this section ! */ |
| 56 |
| 57 #if !defined(ENABLE_3D_PLUGIN) |
| 58 #define ENABLE_3D_PLUGIN 0 |
| 59 #endif |
| 60 |
| 61 #if !defined(ENABLE_8BIT_TEXTRUN) |
| 62 #define ENABLE_8BIT_TEXTRUN 0 |
| 63 #endif |
| 64 |
| 65 #if !defined(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) |
| 66 #define ENABLE_ACCELERATED_OVERFLOW_SCROLLING 0 |
| 67 #endif |
| 68 |
| 69 #if !defined(ENABLE_BATTERY_STATUS) |
| 70 #define ENABLE_BATTERY_STATUS 0 |
| 71 #endif |
| 72 |
| 73 #if !defined(ENABLE_CALENDAR_PICKER) |
| 74 #define ENABLE_CALENDAR_PICKER 0 |
| 75 #endif |
| 76 |
| 77 #if !defined(ENABLE_CANVAS_PROXY) |
| 78 #define ENABLE_CANVAS_PROXY 0 |
| 79 #endif |
| 80 |
| 81 #if !defined(ENABLE_CHANNEL_MESSAGING) |
| 82 #define ENABLE_CHANNEL_MESSAGING 1 |
| 83 #endif |
| 84 |
| 85 #if !defined(ENABLE_CONTEXT_MENUS) |
| 86 #define ENABLE_CONTEXT_MENUS 1 |
| 87 #endif |
| 88 |
| 89 #if !defined(ENABLE_CSS3_CONDITIONAL_RULES) |
| 90 #define ENABLE_CSS3_CONDITIONAL_RULES 0 |
| 91 #endif |
| 92 |
| 93 #if !defined(ENABLE_CSS3_TEXT) |
| 94 #define ENABLE_CSS3_TEXT 0 |
| 95 #endif |
| 96 |
| 97 #if !defined(ENABLE_CSS_DEVICE_ADAPTATION) |
| 98 #define ENABLE_CSS_DEVICE_ADAPTATION 0 |
| 99 #endif |
| 100 |
| 101 #if !defined(ENABLE_CSS_COMPOSITING) |
| 102 #define ENABLE_CSS_COMPOSITING 0 |
| 103 #endif |
| 104 |
| 105 #if !defined(ENABLE_CSS_FILTERS) |
| 106 #define ENABLE_CSS_FILTERS 0 |
| 107 #endif |
| 108 |
| 109 #if !defined(ENABLE_CSS_IMAGE_ORIENTATION) |
| 110 #define ENABLE_CSS_IMAGE_ORIENTATION 0 |
| 111 #endif |
| 112 |
| 113 #if !defined(ENABLE_CSS_IMAGE_SET) |
| 114 #define ENABLE_CSS_IMAGE_SET 0 |
| 115 #endif |
| 116 |
| 117 #if !defined(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED) |
| 118 #define ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED 0 |
| 119 #endif |
| 120 |
| 121 #if !defined(ENABLE_CUSTOM_SCHEME_HANDLER) |
| 122 #define ENABLE_CUSTOM_SCHEME_HANDLER 0 |
| 123 #endif |
| 124 |
| 125 #if !defined(ENABLE_DATALIST_ELEMENT) |
| 126 #define ENABLE_DATALIST_ELEMENT 0 |
| 127 #endif |
| 128 |
| 129 #if !defined(ENABLE_DIALOG_ELEMENT) |
| 130 #define ENABLE_DIALOG_ELEMENT 0 |
| 131 #endif |
| 132 |
| 133 #if !defined(ENABLE_ENCRYPTED_MEDIA) |
| 134 #define ENABLE_ENCRYPTED_MEDIA 0 |
| 135 #endif |
| 136 |
| 137 #if !defined(ENABLE_ENCRYPTED_MEDIA_V2) |
| 138 #define ENABLE_ENCRYPTED_MEDIA_V2 0 |
| 139 #endif |
| 140 |
| 141 #if !defined(ENABLE_FAST_MOBILE_SCROLLING) |
| 142 #define ENABLE_FAST_MOBILE_SCROLLING 0 |
| 143 #endif |
| 144 |
| 145 #if !defined(ENABLE_FONT_LOAD_EVENTS) |
| 146 #define ENABLE_FONT_LOAD_EVENTS 0 |
| 147 #endif |
| 148 |
| 149 #if !defined(ENABLE_GAMEPAD) |
| 150 #define ENABLE_GAMEPAD 0 |
| 151 #endif |
| 152 |
| 153 #if !defined(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) |
| 154 #define ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING 0 |
| 155 #endif |
| 156 |
| 157 #if !defined(ENABLE_HIGH_DPI_CANVAS) |
| 158 #define ENABLE_HIGH_DPI_CANVAS 0 |
| 159 #endif |
| 160 |
| 161 #if !defined(ENABLE_ICONDATABASE) |
| 162 #define ENABLE_ICONDATABASE 1 |
| 163 #endif |
| 164 |
| 165 #if !defined(ENABLE_IMAGE_DECODER_DOWN_SAMPLING) |
| 166 #define ENABLE_IMAGE_DECODER_DOWN_SAMPLING 0 |
| 167 #endif |
| 168 |
| 169 #if !defined(ENABLE_INPUT_MULTIPLE_FIELDS_UI) |
| 170 #define ENABLE_INPUT_MULTIPLE_FIELDS_UI 0 |
| 171 #endif |
| 172 |
| 173 #if !defined(ENABLE_INPUT_SPEECH) |
| 174 #define ENABLE_INPUT_SPEECH 0 |
| 175 #endif |
| 176 |
| 177 #if !defined(ENABLE_INPUT_TYPE_COLOR) |
| 178 #define ENABLE_INPUT_TYPE_COLOR 0 |
| 179 #endif |
| 180 |
| 181 #if !defined(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) |
| 182 #define ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE 0 |
| 183 #endif |
| 184 |
| 185 #if !defined(ENABLE_JAVASCRIPT_I18N_API) |
| 186 #define ENABLE_JAVASCRIPT_I18N_API 0 |
| 187 #endif |
| 188 |
| 189 #if !defined(ENABLE_LEGACY_NOTIFICATIONS) |
| 190 #define ENABLE_LEGACY_NOTIFICATIONS 0 |
| 191 #endif |
| 192 |
| 193 #if !defined(ENABLE_MATHML) |
| 194 #define ENABLE_MATHML 1 |
| 195 #endif |
| 196 |
| 197 #if !defined(ENABLE_MEDIA_CAPTURE) |
| 198 #define ENABLE_MEDIA_CAPTURE 0 |
| 199 #endif |
| 200 |
| 201 #if !defined(ENABLE_MEDIA_STREAM) |
| 202 #define ENABLE_MEDIA_STREAM 0 |
| 203 #endif |
| 204 |
| 205 #if !defined(ENABLE_MOUSE_CURSOR_SCALE) |
| 206 #define ENABLE_MOUSE_CURSOR_SCALE 0 |
| 207 #endif |
| 208 |
| 209 #if !defined(ENABLE_NAVIGATOR_CONTENT_UTILS) |
| 210 #define ENABLE_NAVIGATOR_CONTENT_UTILS 0 |
| 211 #endif |
| 212 |
| 213 #if !defined(ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE) |
| 214 #define ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE 0 |
| 215 #endif |
| 216 |
| 217 #if !defined(ENABLE_NOTIFICATIONS) |
| 218 #define ENABLE_NOTIFICATIONS 0 |
| 219 #endif |
| 220 |
| 221 #if !defined(ENABLE_OPENTYPE_VERTICAL) |
| 222 #define ENABLE_OPENTYPE_VERTICAL 0 |
| 223 #endif |
| 224 |
| 225 #if !defined(ENABLE_ORIENTATION_EVENTS) |
| 226 #define ENABLE_ORIENTATION_EVENTS 0 |
| 227 #endif |
| 228 |
| 229 #if !defined(ENABLE_PAGE_POPUP) |
| 230 #define ENABLE_PAGE_POPUP 0 |
| 231 #endif |
| 232 |
| 233 #if OS(WINDOWS) |
| 234 #if !defined(ENABLE_PAN_SCROLLING) |
| 235 #define ENABLE_PAN_SCROLLING 1 |
| 236 #endif |
| 237 #endif |
| 238 |
| 239 #if !defined(ENABLE_PARSED_STYLE_SHEET_CACHING) |
| 240 #define ENABLE_PARSED_STYLE_SHEET_CACHING 1 |
| 241 #endif |
| 242 |
| 243 #if !defined(ENABLE_REPAINT_THROTTLING) |
| 244 #define ENABLE_REPAINT_THROTTLING 0 |
| 245 #endif |
| 246 |
| 247 #if !defined(ENABLE_RUBBER_BANDING) |
| 248 #define ENABLE_RUBBER_BANDING 0 |
| 249 #endif |
| 250 |
| 251 #if !defined(ENABLE_SATURATED_LAYOUT_ARITHMETIC) |
| 252 #define ENABLE_SATURATED_LAYOUT_ARITHMETIC 1 |
| 253 #endif |
| 254 |
| 255 #if !defined(ENABLE_SHARED_WORKERS) |
| 256 #define ENABLE_SHARED_WORKERS 0 |
| 257 #endif |
| 258 |
| 259 #if !defined(ENABLE_SPEECH_SYNTHESIS) |
| 260 #define ENABLE_SPEECH_SYNTHESIS 0 |
| 261 #endif |
| 262 |
| 263 #if !defined(ENABLE_SVG) |
| 264 #define ENABLE_SVG 1 |
| 265 #endif |
| 266 |
| 267 #if ENABLE(SVG) |
| 268 #if !defined(ENABLE_SVG_FONTS) |
| 269 #define ENABLE_SVG_FONTS 1 |
| 270 #endif |
| 271 #endif |
| 272 |
| 273 #if !defined(ENABLE_TEXT_NOTIFICATIONS_ONLY) |
| 274 #define ENABLE_TEXT_NOTIFICATIONS_ONLY 0 |
| 275 #endif |
| 276 |
| 277 #if !defined(ENABLE_THREADED_HTML_PARSER) |
| 278 #define ENABLE_THREADED_HTML_PARSER 0 |
| 279 #endif |
| 280 |
| 281 #if !defined(ENABLE_THREADED_SCROLLING) |
| 282 #define ENABLE_THREADED_SCROLLING 0 |
| 283 #endif |
| 284 |
| 285 #if !defined(ENABLE_TOUCH_EVENTS) |
| 286 #define ENABLE_TOUCH_EVENTS 0 |
| 287 #endif |
| 288 |
| 289 #if !defined(ENABLE_TOUCH_ICON_LOADING) |
| 290 #define ENABLE_TOUCH_ICON_LOADING 0 |
| 291 #endif |
| 292 |
| 293 #if !defined(ENABLE_VIBRATION) |
| 294 #define ENABLE_VIBRATION 0 |
| 295 #endif |
| 296 |
| 297 #if !defined(ENABLE_VIDEO) |
| 298 #define ENABLE_VIDEO 0 |
| 299 #endif |
| 300 |
| 301 #if !defined(ENABLE_VIEWPORT) |
| 302 #define ENABLE_VIEWPORT 0 |
| 303 #endif |
| 304 |
| 305 #if !defined(ENABLE_VIEWSOURCE_ATTRIBUTE) |
| 306 #define ENABLE_VIEWSOURCE_ATTRIBUTE 1 |
| 307 #endif |
| 308 |
| 309 #if !defined(ENABLE_WEBGL) |
| 310 #define ENABLE_WEBGL 0 |
| 311 #endif |
| 312 |
| 313 #if !defined(ENABLE_WEB_AUDIO) |
| 314 #define ENABLE_WEB_AUDIO 0 |
| 315 #endif |
| 316 |
| 317 #if !defined(ENABLE_XHR_TIMEOUT) |
| 318 #define ENABLE_XHR_TIMEOUT 0 |
| 319 #endif |
| 320 |
| 321 /* Asserts, invariants for macro definitions */ |
| 322 |
| 323 #if ENABLE(SVG_FONTS) && !ENABLE(SVG) |
| 324 #error "ENABLE(SVG_FONTS) requires ENABLE(SVG)" |
| 325 #endif |
| 326 |
| 327 #endif /* WTF_FeatureDefines_h */ |
OLD | NEW |