| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. |    2  * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. | 
|    3  * Copyright (C) 2007-2009 Torch Mobile, Inc. |    3  * Copyright (C) 2007-2009 Torch Mobile, Inc. | 
|    4  * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. |    4  * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved. | 
|    5  * Copyright (C) 2013 Samsung Electronics. All rights reserved. |    5  * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 
|    6  * |    6  * | 
|    7  * Redistribution and use in source and binary forms, with or without |    7  * Redistribution and use in source and binary forms, with or without | 
|    8  * modification, are permitted provided that the following conditions |    8  * modification, are permitted provided that the following conditions | 
|    9  * are met: |    9  * are met: | 
|   10  * 1. Redistributions of source code must retain the above copyright |   10  * 1. Redistributions of source code must retain the above copyright | 
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   44  * to allow interdependencies between the default values. |   44  * to allow interdependencies between the default values. | 
|   45  *  |   45  *  | 
|   46  * Below are a few potential commands to take advantage of this file running fro
     m the Source/WTF directory |   46  * Below are a few potential commands to take advantage of this file running fro
     m the Source/WTF directory | 
|   47  * |   47  * | 
|   48  * Get the list of feature defines: grep -o "ENABLE_\(\w\+\)" wtf/FeatureDefines
     .h | sort | uniq |   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  |   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  */ |   50  */ | 
|   51  |   51  | 
|   52 /* FIXME: Move out the PLATFORM specific rules into platform specific files. */ |   52 /* FIXME: Move out the PLATFORM specific rules into platform specific files. */ | 
|   53  |   53  | 
|   54 /* --------- Apple IOS (but not MAC) port --------- */ |  | 
|   55 /* PLATFORM(IOS) is a specialization of PLATFORM(MAC). */ |  | 
|   56 /* PLATFORM(MAC) is always enabled when PLATFORM(IOS) is enabled. */ |  | 
|   57 #if PLATFORM(IOS) |  | 
|   58  |  | 
|   59 #if !defined(ENABLE_8BIT_TEXTRUN) |  | 
|   60 #define ENABLE_8BIT_TEXTRUN 1 |  | 
|   61 #endif |  | 
|   62  |  | 
|   63 #if !defined(ENABLE_CONTEXT_MENUS) |  | 
|   64 #define ENABLE_CONTEXT_MENUS 0 |  | 
|   65 #endif |  | 
|   66  |  | 
|   67 #if !defined(ENABLE_CSS_IMAGE_SET) |  | 
|   68 #define ENABLE_CSS_IMAGE_SET 1 |  | 
|   69 #endif |  | 
|   70  |  | 
|   71 #if !defined(ENABLE_GEOLOCATION) |  | 
|   72 #define ENABLE_GEOLOCATION 1 |  | 
|   73 #endif |  | 
|   74  |  | 
|   75 #if !defined(ENABLE_ICONDATABASE) |  | 
|   76 #define ENABLE_ICONDATABASE 0 |  | 
|   77 #endif |  | 
|   78  |  | 
|   79 #if !defined(ENABLE_NETSCAPE_PLUGIN_API) |  | 
|   80 #define ENABLE_NETSCAPE_PLUGIN_API 0 |  | 
|   81 #endif |  | 
|   82  |  | 
|   83 #if !defined(ENABLE_ORIENTATION_EVENTS) |  | 
|   84 #define ENABLE_ORIENTATION_EVENTS 1  |  | 
|   85 #endif |  | 
|   86  |  | 
|   87 #if !defined(ENABLE_REPAINT_THROTTLING) |  | 
|   88 #define ENABLE_REPAINT_THROTTLING 1  |  | 
|   89 #endif |  | 
|   90  |  | 
|   91 #if !defined(ENABLE_TEXT_CARET) |  | 
|   92 #define ENABLE_TEXT_CARET 0 |  | 
|   93 #endif |  | 
|   94  |  | 
|   95 #if ENABLE(NOTIFICATIONS) |  | 
|   96 #if !defined(ENABLE_TEXT_NOTIFICATIONS_ONLY) |  | 
|   97 #define ENABLE_TEXT_NOTIFICATIONS_ONLY 1 |  | 
|   98 #endif |  | 
|   99 #endif |  | 
|  100  |  | 
|  101 #if !defined(ENABLE_VIEW_MODE_CSS_MEDIA) |  | 
|  102 #define ENABLE_VIEW_MODE_CSS_MEDIA 0 |  | 
|  103 #endif |  | 
|  104  |  | 
|  105 #if !defined(ENABLE_WEBGL) |  | 
|  106 #define ENABLE_WEBGL 1 |  | 
|  107 #endif |  | 
|  108  |  | 
|  109 #endif /* PLATFORM(IOS) */ |  | 
|  110  |  | 
|  111 /* --------- Apple MAC port (not IOS) --------- */ |  | 
|  112 #if PLATFORM(MAC) && !PLATFORM(IOS) |  | 
|  113  |  | 
|  114 #if !defined(ENABLE_8BIT_TEXTRUN) |  | 
|  115 #define ENABLE_8BIT_TEXTRUN 1 |  | 
|  116 #endif |  | 
|  117  |  | 
|  118 #if !defined(ENABLE_CSS_IMAGE_SET) |  | 
|  119 #define ENABLE_CSS_IMAGE_SET 1 |  | 
|  120 #endif |  | 
|  121  |  | 
|  122 #if !defined(ENABLE_DELETION_UI) |  | 
|  123 #define ENABLE_DELETION_UI 1 |  | 
|  124 #endif |  | 
|  125  |  | 
|  126 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 |  | 
|  127 #if !defined(ENABLE_ENCRYPTED_MEDIA) |  | 
|  128 #define ENABLE_ENCRYPTED_MEDIA 1 |  | 
|  129 #endif |  | 
|  130 #if !defined(ENABLE_ENCRYPTED_MEDIA_V2) |  | 
|  131 #define ENABLE_ENCRYPTED_MEDIA_V2 1 |  | 
|  132 #endif |  | 
|  133 #endif |  | 
|  134  |  | 
|  135 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 |  | 
|  136 #if !defined(ENABLE_GESTURE_EVENTS) |  | 
|  137 #define ENABLE_GESTURE_EVENTS 1 |  | 
|  138 #endif |  | 
|  139 #endif |  | 
|  140  |  | 
|  141 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 |  | 
|  142 #if !defined(ENABLE_RUBBER_BANDING) |  | 
|  143 #define ENABLE_RUBBER_BANDING 1 |  | 
|  144 #endif |  | 
|  145 #endif |  | 
|  146  |  | 
|  147 #if !defined(ENABLE_SMOOTH_SCROLLING) |  | 
|  148 #define ENABLE_SMOOTH_SCROLLING 1 |  | 
|  149 #endif |  | 
|  150  |  | 
|  151 #if ENABLE(NOTIFICATIONS) |  | 
|  152 #if !defined(ENABLE_TEXT_NOTIFICATIONS_ONLY) |  | 
|  153 #define ENABLE_TEXT_NOTIFICATIONS_ONLY 1 |  | 
|  154 #endif |  | 
|  155 #endif |  | 
|  156  |  | 
|  157 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 |  | 
|  158 #if !defined(ENABLE_THREADED_SCROLLING) |  | 
|  159 #define ENABLE_THREADED_SCROLLING 1 |  | 
|  160 #endif |  | 
|  161 #endif |  | 
|  162  |  | 
|  163 #if ENABLE(VIDEO) |  | 
|  164 #if !defined(ENABLE_VIDEO_TRACK) |  | 
|  165 #define ENABLE_VIDEO_TRACK 1 |  | 
|  166 #endif |  | 
|  167 #endif |  | 
|  168  |  | 
|  169 #if !defined(ENABLE_VIEW_MODE_CSS_MEDIA) |  | 
|  170 #define ENABLE_VIEW_MODE_CSS_MEDIA 0 |  | 
|  171 #endif |  | 
|  172  |  | 
|  173 #if !defined(ENABLE_WEB_AUDIO) |  | 
|  174 #define ENABLE_WEB_AUDIO 1 |  | 
|  175 #endif |  | 
|  176  |  | 
|  177 #if !defined(ENABLE_CURSOR_VISIBILITY) |  | 
|  178 #define ENABLE_CURSOR_VISIBILITY 1 |  | 
|  179 #endif |  | 
|  180  |  | 
|  181 #endif /* PLATFORM(MAC) && !PLATFORM(IOS) */ |  | 
|  182  |  | 
|  183 /* --------- Apple Windows port --------- */ |  | 
|  184 #if PLATFORM(WIN) && !OS(WINCE) |  | 
|  185  |  | 
|  186 #endif /* PLATFORM(WIN) && !OS(WINCE) */ |  | 
|  187  |  | 
|  188 /* --------- WinCE port --------- */ |  | 
|  189 /* WinCE port is a specialization of PLATFORM(WIN). */ |  | 
|  190 /* PLATFORM(WIN) is always enabled when building for the WinCE port. */ |  | 
|  191 #if PLATFORM(WIN) && OS(WINCE) |  | 
|  192  |  | 
|  193 #if !defined(ENABLE_FTPDIR) |  | 
|  194 #define ENABLE_FTPDIR 0 |  | 
|  195 #endif |  | 
|  196  |  | 
|  197 #if !defined(ENABLE_INSPECTOR) |  | 
|  198 #define ENABLE_INSPECTOR 0 |  | 
|  199 #endif |  | 
|  200  |  | 
|  201 #endif /* PLATFORM(WIN) && OS(WINCE) */ |  | 
|  202  |  | 
|  203 /* --------- WX port (Mac OS and Windows) --------- */ |  | 
|  204 #if PLATFORM(WX) |  | 
|  205  |  | 
|  206 #if OS(UNIX) |   54 #if OS(UNIX) | 
|  207 #if !defined(ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH) |   55 #if !defined(ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH) | 
|  208 #define ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH 1 |   56 #define ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH 1 | 
|  209 #endif |   57 #endif | 
|  210 #endif |   58 #endif | 
|  211  |   59  | 
|  212 #endif /* PLATFORM(WX) */ |  | 
|  213  |  | 
|  214 /* --------- Gtk port (Unix, Windows, Mac) --------- */ |  | 
|  215 #if PLATFORM(GTK) |  | 
|  216  |  | 
|  217 #if OS(UNIX) |  | 
|  218 #if !defined(ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH) |  | 
|  219 #define ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH 1 |  | 
|  220 #endif |  | 
|  221 #endif |  | 
|  222  |  | 
|  223 #endif /* PLATFORM(GTK) */ |  | 
|  224  |  | 
|  225 /* --------- Qt port (Unix, Windows, Mac, WinCE) --------- */ |  | 
|  226 #if PLATFORM(QT) |  | 
|  227  |  | 
|  228 #if OS(UNIX) |  | 
|  229 #if !defined(ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH) |  | 
|  230 #define ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH 1 |  | 
|  231 #endif |  | 
|  232 #endif |  | 
|  233  |  | 
|  234 #endif /* PLATFORM(QT) */ |  | 
|  235  |  | 
|  236 /* --------- Blackberry port (QNX) --------- */ |  | 
|  237 #if PLATFORM(BLACKBERRY) |  | 
|  238  |  | 
|  239 #if !defined(ENABLE_BLACKBERRY_CREDENTIAL_PERSIST) |  | 
|  240 #define ENABLE_BLACKBERRY_CREDENTIAL_PERSIST 1 |  | 
|  241 #endif |  | 
|  242  |  | 
|  243 #endif /* PLATFORM(BLACKBERRY) */ |  | 
|  244  |  | 
|  245 /* ENABLE macro defaults for WebCore */ |   60 /* ENABLE macro defaults for WebCore */ | 
|  246 /* Do not use PLATFORM() tests in this section ! */ |   61 /* Do not use PLATFORM() tests in this section ! */ | 
|  247  |   62  | 
|  248 #if !defined(ENABLE_3D_PLUGIN) |   63 #if !defined(ENABLE_3D_PLUGIN) | 
|  249 #define ENABLE_3D_PLUGIN 0 |   64 #define ENABLE_3D_PLUGIN 0 | 
|  250 #endif |   65 #endif | 
|  251  |   66  | 
|  252 #if !defined(ENABLE_3D_RENDERING) |   67 #if !defined(ENABLE_3D_RENDERING) | 
|  253 #define ENABLE_3D_RENDERING 0 |   68 #define ENABLE_3D_RENDERING 0 | 
|  254 #endif |   69 #endif | 
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  792  |  607  | 
|  793 #if ENABLE(SVG_FONTS) && !ENABLE(SVG) |  608 #if ENABLE(SVG_FONTS) && !ENABLE(SVG) | 
|  794 #error "ENABLE(SVG_FONTS) requires ENABLE(SVG)" |  609 #error "ENABLE(SVG_FONTS) requires ENABLE(SVG)" | 
|  795 #endif |  610 #endif | 
|  796  |  611  | 
|  797 #if ENABLE(VIDEO_TRACK) && !ENABLE(VIDEO) |  612 #if ENABLE(VIDEO_TRACK) && !ENABLE(VIDEO) | 
|  798 #error "ENABLE(VIDEO_TRACK) requires ENABLE(VIDEO)" |  613 #error "ENABLE(VIDEO_TRACK) requires ENABLE(VIDEO)" | 
|  799 #endif |  614 #endif | 
|  800  |  615  | 
|  801 #endif /* WTF_FeatureDefines_h */ |  616 #endif /* WTF_FeatureDefines_h */ | 
| OLD | NEW |