• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
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 are
6# met:
7#
8#     * Redistributions of source code must retain the above copyright
9# notice, this list of conditions and the following disclaimer.
10#     * Redistributions in binary form must reproduce the above
11# copyright notice, this list of conditions and the following disclaimer
12# in the documentation and/or other materials provided with the
13# distribution.
14#     * Neither the name of Google Inc. nor the names of its
15# contributors may be used to endorse or promote products derived from
16# this software without specific prior written permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29#
30
31{
32  # The following defines turn webkit features on and off.
33  'variables': {
34    'variables': {
35      # We have to nest variables inside variables as a hack for variables
36      # override.
37
38      # WARNING: build/features_override.gypi which is included in a full
39      # chromium build, overrides this list with its own values. See
40      # features_override.gypi inline documentation for more details.
41      'feature_defines': [
42        'ENABLE_WEBGL=1',
43        'ENABLE_3D_RENDERING=1',
44        'ENABLE_ACCELERATED_2D_CANVAS=1',
45        'ENABLE_BLOB=1',
46        'ENABLE_BLOB_SLICE=1',
47        'ENABLE_CHANNEL_MESSAGING=1',
48        'ENABLE_CLIENT_BASED_GEOLOCATION=1',
49        'ENABLE_DASHBOARD_SUPPORT=0',
50        'ENABLE_DATABASE=1',
51        'ENABLE_DATAGRID=0',
52        'ENABLE_DATA_TRANSFER_ITEMS=1',
53        'ENABLE_DEVICE_ORIENTATION=1',
54        'ENABLE_DIRECTORY_UPLOAD=1',
55        'ENABLE_DOM_STORAGE=1',
56        'ENABLE_EVENTSOURCE=1',
57        'ENABLE_JAVASCRIPT_I18N_API=1',
58        'ENABLE_FILE_SYSTEM=1',
59        'ENABLE_FILTERS=1',
60        'ENABLE_FULLSCREEN_API=1',
61        'ENABLE_GEOLOCATION=1',
62        'ENABLE_GESTURE_RECOGNIZER=1',
63        'ENABLE_ICONDATABASE=0',
64        'ENABLE_INDEXED_DATABASE=1',
65        'ENABLE_INPUT_SPEECH=1',
66        'ENABLE_JAVASCRIPT_DEBUGGER=1',
67        'ENABLE_JSC_MULTIPLE_THREADS=0',
68        'ENABLE_LEVELDB=1',
69        'ENABLE_LINK_PREFETCH=1',
70        'ENABLE_MATHML=0',
71        'ENABLE_MEDIA_STATISTICS=1',
72        'ENABLE_MEDIA_STREAM=1',
73        'ENABLE_METER_TAG=1',
74        'ENABLE_NOTIFICATIONS=1',
75        'ENABLE_OFFLINE_WEB_APPLICATIONS=1',
76        'ENABLE_OPENTYPE_SANITIZER=1',
77        'ENABLE_ORIENTATION_EVENTS=0',
78        'ENABLE_PAGE_VISIBILITY_API=0',
79        'ENABLE_PROGRESS_TAG=1',
80        'ENABLE_QUOTA=1',
81        'ENABLE_REGISTER_PROTOCOL_HANDLER=0',
82        'ENABLE_REQUEST_ANIMATION_FRAME=1',
83        'ENABLE_SHARED_WORKERS=1',
84        'ENABLE_SVG=1',
85        'ENABLE_SVG_ANIMATION=1',
86        'ENABLE_SVG_AS_IMAGE=1',
87        'ENABLE_SVG_FONTS=1',
88        'ENABLE_SVG_FOREIGN_OBJECT=1',
89        'ENABLE_SVG_USE=1',
90        'ENABLE_TOUCH_EVENTS=1',
91        'ENABLE_V8_SCRIPT_DEBUG_SERVER=1',
92        'ENABLE_VIDEO=1',
93        'ENABLE_WEB_AUDIO=0',
94        'ENABLE_WEB_SOCKETS=1',
95        'ENABLE_WEB_TIMING=1',
96        'ENABLE_WORKERS=1',
97        'ENABLE_XHR_RESPONSE_BLOB=1',
98        'ENABLE_XPATH=1',
99        'ENABLE_XSLT=1',
100        'WTF_USE_ACCELERATED_COMPOSITING=1',
101        'WTF_USE_WEBP=1',
102        'WTF_USE_WEBKIT_IMAGE_DECODERS=1',
103      ],
104
105      'use_accelerated_compositing%': 1,
106      'enable_svg%': 1,
107    },
108
109    'feature_defines%': '<(feature_defines)',
110    'use_accelerated_compositing%': '<(use_accelerated_compositing)',
111    'enable_svg%': '<(enable_svg)',
112  },
113}
114