OLD | NEW |
| (Empty) |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 # This file is only included in full-chromium builds, and overrides the | |
6 # feature_defines variable in | |
7 # third_party/WebKit/Source/WebKit/chromium/features.gypi. | |
8 { | |
9 'variables': { | |
10 # WARNING: This list of strings completely replaces the list in | |
11 # features.gypi. Therefore, if an enable is listed in features.gypi | |
12 # but not listed below, it will revert to its hardcoded webkit value. | |
13 'feature_defines': [ | |
14 'ENABLE_3D_PLUGIN=1', | |
15 'ENABLE_BLOB=1', | |
16 'ENABLE_BLOB_SLICE=1', | |
17 'ENABLE_CHANNEL_MESSAGING=1', | |
18 'ENABLE_CLIENT_BASED_GEOLOCATION=1', | |
19 'ENABLE_DASHBOARD_SUPPORT=0', | |
20 'ENABLE_DATABASE=1', | |
21 'ENABLE_DATAGRID=0', | |
22 'ENABLE_DATA_TRANSFER_ITEMS=1', | |
23 'ENABLE_DETAILS=1', | |
24 'ENABLE_DEVICE_ORIENTATION=1', | |
25 'ENABLE_DIRECTORY_UPLOAD=1', | |
26 'ENABLE_DOM_STORAGE=1', | |
27 'ENABLE_EVENTSOURCE=1', | |
28 'ENABLE_JAVASCRIPT_I18N_API=1', | |
29 'ENABLE_FILE_SYSTEM=1', | |
30 'ENABLE_FILTERS=1', | |
31 'ENABLE_FULLSCREEN_API=1', | |
32 'ENABLE_GEOLOCATION=1', | |
33 'ENABLE_GESTURE_RECOGNIZER=1', | |
34 'ENABLE_ICONDATABASE=0', | |
35 'ENABLE_INDEXED_DATABASE=1', | |
36 'ENABLE_INPUT_SPEECH=1', | |
37 'ENABLE_JAVASCRIPT_DEBUGGER=1', | |
38 'ENABLE_JSC_MULTIPLE_THREADS=0', | |
39 'ENABLE_LEVELDB=1', | |
40 'ENABLE_LINK_PREFETCH=1', | |
41 'ENABLE_METER_TAG=1', | |
42 'ENABLE_MEDIA_STATISTICS=1', | |
43 'ENABLE_MEDIA_STREAM=1', | |
44 'ENABLE_MHTML=1', | |
45 'ENABLE_NOTIFICATIONS=1', | |
46 'ENABLE_OFFLINE_WEB_APPLICATIONS=1', | |
47 'ENABLE_OPENTYPE_SANITIZER=1', | |
48 'ENABLE_ORIENTATION_EVENTS=0', | |
49 'ENABLE_PAGE_VISIBILITY_API=1', | |
50 'ENABLE_PROGRESS_TAG=1', | |
51 'ENABLE_QUOTA=1', | |
52 'ENABLE_REQUEST_ANIMATION_FRAME=1', | |
53 'ENABLE_RUBY=1', | |
54 'ENABLE_SANDBOX=1', | |
55 'ENABLE_SHARED_WORKERS=1', | |
56 'ENABLE_SKIA_GPU=<(use_skia_gpu)', | |
57 'ENABLE_SPELLCHECK_API=1', | |
58 'ENABLE_SVG=<(enable_svg)', | |
59 'ENABLE_SVG_ANIMATION=<(enable_svg)', | |
60 'ENABLE_SVG_AS_IMAGE=<(enable_svg)', | |
61 'ENABLE_SVG_FONTS=<(enable_svg)', | |
62 'ENABLE_SVG_FOREIGN_OBJECT=<(enable_svg)', | |
63 'ENABLE_SVG_USE=<(enable_svg)', | |
64 'ENABLE_TOUCH_EVENTS=<(enable_touch_events)', | |
65 'ENABLE_TOUCH_ICON_LOADING=<(enable_touch_icon_loading)', | |
66 'ENABLE_V8_SCRIPT_DEBUG_SERVER=1', | |
67 'ENABLE_VIDEO=1', | |
68 'ENABLE_WEB_SOCKETS=1', | |
69 'ENABLE_WEB_TIMING=1', | |
70 'ENABLE_WEBGL=1', | |
71 'ENABLE_WORKERS=1', | |
72 'ENABLE_XHR_RESPONSE_BLOB=1', | |
73 'ENABLE_XPATH=1', | |
74 'ENABLE_XSLT=1', | |
75 'WTF_USE_BUILTIN_UTF8_CODEC=1', | |
76 # WTF_USE_DYNAMIC_ANNOTATIONS=1 may be defined in build/common.gypi | |
77 # We can't define it here because it should be present only | |
78 # in Debug or release_valgrind_build=1 builds. | |
79 'WTF_USE_WEBP=1', | |
80 'WTF_USE_WEBKIT_IMAGE_DECODERS=1', | |
81 ], | |
82 # We have to nest variables inside variables so that they can be overridden | |
83 # through GYP_DEFINES. | |
84 'variables': { | |
85 'use_accelerated_compositing%': 1, | |
86 'use_threaded_compositing%': 0, | |
87 'enable_svg%': 1, | |
88 'enable_touch_events%': 1, | |
89 'use_skia_gpu%': 0, | |
90 'enable_touch_icon_loading%' : 0, | |
91 }, | |
92 'use_accelerated_compositing%': '<(use_accelerated_compositing)', | |
93 'use_threaded_compositing%': '<(use_threaded_compositing)', | |
94 'enable_svg%': '<(enable_svg)', | |
95 'enable_touch_events%': '<(enable_touch_events)', | |
96 'conditions': [ | |
97 ['use_accelerated_compositing==1', { | |
98 'feature_defines': [ | |
99 'WTF_USE_ACCELERATED_COMPOSITING=1', | |
100 'ENABLE_3D_RENDERING=1', | |
101 ], | |
102 }], | |
103 ['use_accelerated_compositing==1 and OS!="mac"', { | |
104 'feature_defines': [ | |
105 'ENABLE_ACCELERATED_2D_CANVAS=1', | |
106 ], | |
107 }], | |
108 ['use_accelerated_compositing==1 and use_threaded_compositing==1', { | |
109 'feature_defines': [ | |
110 'WTF_USE_THREADED_COMPOSITING=1', | |
111 ], | |
112 }], | |
113 ['touchui==1', { | |
114 'enable_touch_icon_loading': 1, | |
115 }], | |
116 # TODO(crogers): For the moment Windows is only enabled for | |
117 # Google-branded build, since the FFmpeg DLLs need to be re-built | |
118 # for chromium. | |
119 ['OS=="mac" or OS=="linux" or (OS=="win" and branding=="Chrome")', { | |
120 'feature_defines': [ | |
121 'ENABLE_WEB_AUDIO=1', | |
122 ], | |
123 }], | |
124 # Mac OS X uses Accelerate.framework FFT by default instead of FFmpeg. | |
125 ['OS!="mac"', { | |
126 'feature_defines': [ | |
127 'WTF_USE_WEBAUDIO_FFMPEG=1', | |
128 ], | |
129 }], | |
130 ['enable_register_protocol_handler==1', { | |
131 'feature_defines': [ | |
132 'ENABLE_REGISTER_PROTOCOL_HANDLER=1', | |
133 ], | |
134 }], | |
135 ], | |
136 # TODO: If the need arises, create a mechanism that will intelligently | |
137 # merge the lists rather than replace one with the other. This may | |
138 # require changes in gyp. | |
139 }, | |
140 | |
141 } | |
142 | |
143 # Local Variables: | |
144 # tab-width:2 | |
145 # indent-tabs-mode:nil | |
146 # End: | |
147 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |