1 # Copyright (c) 2012 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.
8 'target_name': 'renderer',
9 'type': 'static_library',
10 'variables': { 'enable_wexit_time_destructors': 1, },
14 'chrome_resources.gyp:chrome_resources',
15 'chrome_resources.gyp:chrome_strings',
16 '../components/components.gyp:autofill_content_renderer',
17 '../components/components.gyp:visitedlink_renderer',
18 '../content/content.gyp:content_renderer',
20 '../printing/printing.gyp:printing',
21 '../skia/skia.gyp:skia',
22 '../third_party/hunspell/hunspell.gyp:hunspell',
23 '../third_party/icu/icu.gyp:icui18n',
24 '../third_party/icu/icu.gyp:icuuc',
25 '../third_party/npapi/npapi.gyp:npapi',
26 '../third_party/re2/re2.gyp:re2',
27 '../third_party/WebKit/public/blink.gyp:blink',
28 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
29 '../ui/surface/surface.gyp:surface',
30 '../webkit/support/webkit_support.gyp:glue',
31 '../webkit/support/webkit_support.gyp:glue_common',
32 '../webkit/support/webkit_support.gyp:glue_renderer',
33 '../webkit/support/webkit_support.gyp:plugins',
34 '../webkit/support/webkit_support.gyp:webkit_media',
35 '../webkit/support/webkit_support.gyp:webkit_resources',
39 # Needed by chrome_content_renderer_client.cc.
40 '<(SHARED_INTERMEDIATE_DIR)',
45 'direct_dependent_settings': {
51 'renderer/benchmarking_extension.cc',
52 'renderer/benchmarking_extension.h',
53 'renderer/extensions/api_activity_logger.cc',
54 'renderer/extensions/api_activity_logger.h',
55 'renderer/extensions/api_definitions_natives.cc',
56 'renderer/extensions/api_definitions_natives.h',
57 'renderer/extensions/app_bindings.cc',
58 'renderer/extensions/app_bindings.h',
59 'renderer/extensions/app_runtime_custom_bindings.cc',
60 'renderer/extensions/app_runtime_custom_bindings.h',
61 'renderer/extensions/app_window_custom_bindings.cc',
62 'renderer/extensions/app_window_custom_bindings.h',
63 'renderer/extensions/binding_generating_native_handler.cc',
64 'renderer/extensions/binding_generating_native_handler.h',
65 'renderer/extensions/chrome_v8_context.cc',
66 'renderer/extensions/chrome_v8_context.h',
67 'renderer/extensions/chrome_v8_context_set.cc',
68 'renderer/extensions/chrome_v8_context_set.h',
69 'renderer/extensions/chrome_v8_extension.cc',
70 'renderer/extensions/chrome_v8_extension.h',
71 'renderer/extensions/chrome_v8_extension_handler.cc',
72 'renderer/extensions/chrome_v8_extension_handler.h',
73 'renderer/extensions/console.cc',
74 'renderer/extensions/console.h',
75 'renderer/extensions/content_watcher.cc',
76 'renderer/extensions/content_watcher.h',
77 'renderer/extensions/context_menus_custom_bindings.cc',
78 'renderer/extensions/context_menus_custom_bindings.h',
79 'renderer/extensions/dispatcher.cc',
80 'renderer/extensions/dispatcher.h',
81 'renderer/extensions/dom_activity_logger.cc',
82 'renderer/extensions/dom_activity_logger.h',
83 'renderer/extensions/event_bindings.cc',
84 'renderer/extensions/event_bindings.h',
85 'renderer/extensions/extension_custom_bindings.cc',
86 'renderer/extensions/extension_custom_bindings.h',
87 'renderer/extensions/extension_groups.h',
88 'renderer/extensions/extension_helper.cc',
89 'renderer/extensions/extension_helper.h',
90 'renderer/extensions/feedback_private_custom_bindings.cc',
91 'renderer/extensions/feedback_private_custom_bindings.h',
92 'renderer/extensions/file_browser_handler_custom_bindings.cc',
93 'renderer/extensions/file_browser_handler_custom_bindings.h',
94 'renderer/extensions/file_browser_private_custom_bindings.cc',
95 'renderer/extensions/file_browser_private_custom_bindings.h',
96 'renderer/extensions/file_system_natives.cc',
97 'renderer/extensions/file_system_natives.h',
98 'renderer/extensions/i18n_custom_bindings.cc',
99 'renderer/extensions/i18n_custom_bindings.h',
100 'renderer/extensions/logging_native_handler.cc',
101 'renderer/extensions/logging_native_handler.h',
102 'renderer/extensions/media_galleries_custom_bindings.cc',
103 'renderer/extensions/media_galleries_custom_bindings.h',
104 'renderer/extensions/miscellaneous_bindings.cc',
105 'renderer/extensions/miscellaneous_bindings.h',
106 'renderer/extensions/module_system.cc',
107 'renderer/extensions/module_system.h',
108 'renderer/extensions/native_handler.cc',
109 'renderer/extensions/native_handler.h',
110 'renderer/extensions/object_backed_native_handler.cc',
111 'renderer/extensions/object_backed_native_handler.h',
112 'renderer/extensions/page_actions_custom_bindings.cc',
113 'renderer/extensions/page_actions_custom_bindings.h',
114 'renderer/extensions/page_capture_custom_bindings.cc',
115 'renderer/extensions/page_capture_custom_bindings.h',
116 'renderer/extensions/renderer_permissions_policy_delegate.cc',
117 'renderer/extensions/renderer_permissions_policy_delegate.h',
118 'renderer/extensions/request_sender.cc',
119 'renderer/extensions/request_sender.h',
120 'renderer/extensions/resource_request_policy.cc',
121 'renderer/extensions/resource_request_policy.h',
122 'renderer/extensions/runtime_custom_bindings.cc',
123 'renderer/extensions/runtime_custom_bindings.h',
124 'renderer/extensions/safe_builtins.cc',
125 'renderer/extensions/safe_builtins.h',
126 'renderer/extensions/scoped_persistent.h',
127 'renderer/extensions/send_request_natives.cc',
128 'renderer/extensions/send_request_natives.h',
129 'renderer/extensions/set_icon_natives.cc',
130 'renderer/extensions/set_icon_natives.h',
131 'renderer/extensions/sync_file_system_custom_bindings.cc',
132 'renderer/extensions/sync_file_system_custom_bindings.h',
133 'renderer/extensions/tab_finder.cc',
134 'renderer/extensions/tab_finder.h',
135 'renderer/extensions/tabs_custom_bindings.cc',
136 'renderer/extensions/tabs_custom_bindings.h',
137 'renderer/extensions/tts_custom_bindings.cc',
138 'renderer/extensions/tts_custom_bindings.h',
139 'renderer/extensions/unsafe_persistent.h',
140 'renderer/extensions/user_script_scheduler.cc',
141 'renderer/extensions/user_script_scheduler.h',
142 'renderer/extensions/user_script_slave.cc',
143 'renderer/extensions/user_script_slave.h',
144 'renderer/extensions/v8_schema_registry.cc',
145 'renderer/extensions/v8_schema_registry.h',
146 'renderer/extensions/web_request_custom_bindings.cc',
147 'renderer/extensions/web_request_custom_bindings.h',
148 'renderer/extensions/webstore_bindings.cc',
149 'renderer/extensions/webstore_bindings.h',
150 'renderer/frame_sniffer.cc',
151 'renderer/frame_sniffer.h',
152 'renderer/isolated_world_ids.h',
153 'renderer/loadtimes_extension_bindings.cc',
154 'renderer/loadtimes_extension_bindings.h',
155 'renderer/media/webrtc_logging_handler_impl.cc',
156 'renderer/media/webrtc_logging_handler_impl.h',
157 'renderer/media/webrtc_logging_message_filter.cc',
158 'renderer/media/webrtc_logging_message_filter.h',
159 'renderer/net/net_error_helper.cc',
160 'renderer/net/net_error_helper.h',
161 'renderer/net/predictor_queue.cc',
162 'renderer/net/predictor_queue.h',
163 'renderer/net/prescient_networking_dispatcher.cc',
164 'renderer/net/prescient_networking_dispatcher.h',
165 'renderer/net/renderer_net_predictor.cc',
166 'renderer/net/renderer_net_predictor.h',
167 'renderer/net_benchmarking_extension.cc',
168 'renderer/net_benchmarking_extension.h',
169 'renderer/one_click_signin_agent.cc',
170 'renderer/one_click_signin_agent.h',
171 'renderer/playback_extension.cc',
172 'renderer/playback_extension.h',
173 'renderer/resource_bundle_source_map.cc',
174 'renderer/resource_bundle_source_map.h',
175 'renderer/resources/extensions/app_custom_bindings.js',
176 'renderer/resources/extensions/app_window_custom_bindings.js',
177 'renderer/resources/extensions/binding.js',
178 'renderer/resources/extensions/browser_action_custom_bindings.js',
179 'renderer/resources/extensions/chrome_setting.js',
180 'renderer/resources/extensions/content_setting.js',
181 'renderer/resources/extensions/content_watcher.js',
182 'renderer/resources/extensions/context_menus_custom_bindings.js',
183 'renderer/resources/extensions/declarative_content_custom_bindings.js',
184 'renderer/resources/extensions/declarative_webrequest_custom_bindings.js',
185 'renderer/resources/extensions/event.js',
186 'renderer/resources/extensions/experimental.offscreenTabs_custom_bindings.js',
187 'renderer/resources/extensions/extension_custom_bindings.js',
188 'renderer/resources/extensions/feedback_private_custom_bindings.js',
189 'renderer/resources/extensions/file_browser_handler_custom_bindings.js',
190 'renderer/resources/extensions/file_browser_private_custom_bindings.js',
191 'renderer/resources/extensions/file_system_custom_bindings.js',
192 'renderer/resources/extensions/greasemonkey_api.js',
193 'renderer/resources/extensions/input.ime_custom_bindings.js',
194 'renderer/resources/extensions/json_schema.js',
195 'renderer/resources/extensions/last_error.js',
196 'renderer/resources/extensions/miscellaneous_bindings.js',
197 'renderer/resources/extensions/notifications_custom_bindings.js',
198 'renderer/resources/extensions/omnibox_custom_bindings.js',
199 'renderer/resources/extensions/page_action_custom_bindings.js',
200 'renderer/resources/extensions/page_actions_custom_bindings.js',
201 'renderer/resources/extensions/page_capture_custom_bindings.js',
202 'renderer/resources/extensions/platform_app.js',
203 'renderer/resources/extensions/runtime_custom_bindings.js',
204 'renderer/resources/extensions/send_request.js',
205 'renderer/resources/extensions/set_icon.js',
206 'renderer/resources/extensions/storage_area.js',
207 'renderer/resources/extensions/system_indicator_custom_bindings.js',
208 'renderer/resources/extensions/test_custom_bindings.js',
209 'renderer/resources/extensions/tts_custom_bindings.js',
210 'renderer/resources/extensions/tts_engine_custom_bindings.js',
211 'renderer/resources/extensions/unload_event.js',
212 'renderer/resources/extensions/utils.js',
213 'renderer/resources/extensions/web_request_custom_bindings.js',
214 'renderer/resources/extensions/web_view.js',
215 'renderer/resources/extensions/web_view_experimental.js',
216 'renderer/chrome_content_renderer_client.cc',
217 'renderer/chrome_content_renderer_client.h',
218 'renderer/chrome_render_process_observer.cc',
219 'renderer/chrome_render_process_observer.h',
220 'renderer/chrome_render_view_observer.cc',
221 'renderer/chrome_render_view_observer.h',
222 'renderer/content_settings_observer.cc',
223 'renderer/content_settings_observer.h',
224 'renderer/custom_menu_commands.h',
225 'renderer/external_host_bindings.cc',
226 'renderer/external_host_bindings.h',
227 'renderer/external_extension.cc',
228 'renderer/external_extension.h',
229 'renderer/page_load_histograms.cc',
230 'renderer/page_load_histograms.h',
231 'renderer/pepper/chrome_ppapi_interfaces.cc',
232 'renderer/pepper/chrome_ppapi_interfaces.h',
233 'renderer/pepper/chrome_renderer_pepper_host_factory.cc',
234 'renderer/pepper/chrome_renderer_pepper_host_factory.h',
235 'renderer/pepper/pepper_extensions_common_host.cc',
236 'renderer/pepper/pepper_extensions_common_host.h',
237 'renderer/pepper/pepper_flash_drm_renderer_host.cc',
238 'renderer/pepper/pepper_flash_drm_renderer_host.h',
239 'renderer/pepper/pepper_flash_font_file_host.cc',
240 'renderer/pepper/pepper_flash_font_file_host.h',
241 'renderer/pepper/pepper_flash_fullscreen_host.cc',
242 'renderer/pepper/pepper_flash_fullscreen_host.h',
243 'renderer/pepper/pepper_flash_menu_host.cc',
244 'renderer/pepper/pepper_flash_menu_host.h',
245 'renderer/pepper/pepper_flash_renderer_host.cc',
246 'renderer/pepper/pepper_flash_renderer_host.h',
247 'renderer/pepper/pepper_helper.cc',
248 'renderer/pepper/pepper_helper.h',
249 'renderer/pepper/pepper_pdf_host.cc',
250 'renderer/pepper/pepper_pdf_host.h',
251 'renderer/pepper/pepper_shared_memory_message_filter.cc',
252 'renderer/pepper/pepper_shared_memory_message_filter.h',
253 'renderer/pepper/ppb_nacl_private_impl.cc',
254 'renderer/pepper/ppb_nacl_private_impl.h',
255 'renderer/pepper/ppb_pdf_impl.cc',
256 'renderer/pepper/ppb_pdf_impl.h',
257 'renderer/plugins/plugin_placeholder.cc',
258 'renderer/plugins/plugin_placeholder.h',
259 'renderer/plugins/plugin_uma.cc',
260 'renderer/plugins/plugin_uma.h',
261 'renderer/plugins/webview_plugin.cc',
262 'renderer/plugins/webview_plugin.h',
263 'renderer/prerender/prerender_dispatcher.cc',
264 'renderer/prerender/prerender_dispatcher.h',
265 'renderer/prerender/prerender_extra_data.cc',
266 'renderer/prerender/prerender_extra_data.h',
267 'renderer/prerender/prerender_helper.cc',
268 'renderer/prerender/prerender_helper.h',
269 'renderer/prerender/prerender_webmediaplayer.cc',
270 'renderer/prerender/prerender_webmediaplayer.h',
271 'renderer/prerender/prerenderer_client.cc',
272 'renderer/prerender/prerenderer_client.h',
273 'renderer/printing/print_web_view_helper.cc',
274 'renderer/printing/print_web_view_helper.h',
275 'renderer/printing/print_web_view_helper_linux.cc',
276 'renderer/printing/print_web_view_helper_mac.mm',
277 'renderer/printing/print_web_view_helper_win.cc',
278 'renderer/safe_browsing/feature_extractor_clock.cc',
279 'renderer/safe_browsing/feature_extractor_clock.h',
280 'renderer/safe_browsing/features.cc',
281 'renderer/safe_browsing/features.h',
282 'renderer/safe_browsing/malware_dom_details.cc',
283 'renderer/safe_browsing/malware_dom_details.h',
284 'renderer/safe_browsing/murmurhash3_util.cc',
285 'renderer/safe_browsing/murmurhash3_util.h',
286 'renderer/safe_browsing/phishing_classifier.cc',
287 'renderer/safe_browsing/phishing_classifier.h',
288 'renderer/safe_browsing/phishing_classifier_delegate.cc',
289 'renderer/safe_browsing/phishing_classifier_delegate.h',
290 'renderer/safe_browsing/phishing_dom_feature_extractor.cc',
291 'renderer/safe_browsing/phishing_dom_feature_extractor.h',
292 'renderer/safe_browsing/phishing_term_feature_extractor.cc',
293 'renderer/safe_browsing/phishing_term_feature_extractor.h',
294 'renderer/safe_browsing/phishing_url_feature_extractor.cc',
295 'renderer/safe_browsing/phishing_url_feature_extractor.h',
296 'renderer/safe_browsing/scorer.cc',
297 'renderer/safe_browsing/scorer.h',
298 'renderer/searchbox/searchbox.cc',
299 'renderer/searchbox/searchbox.h',
300 'renderer/searchbox/searchbox_extension.cc',
301 'renderer/searchbox/searchbox_extension.h',
302 'renderer/security_filter_peer.cc',
303 'renderer/security_filter_peer.h',
304 'renderer/spellchecker/cocoa_spelling_engine_mac.cc',
305 'renderer/spellchecker/cocoa_spelling_engine_mac.h',
306 'renderer/spellchecker/custom_dictionary_engine.cc',
307 'renderer/spellchecker/custom_dictionary_engine.h',
308 'renderer/spellchecker/hunspell_engine.cc',
309 'renderer/spellchecker/hunspell_engine.h',
310 'renderer/spellchecker/spellcheck_provider.cc',
311 'renderer/spellchecker/spellcheck_provider.h',
312 'renderer/spellchecker/spellcheck.cc',
313 'renderer/spellchecker/spellcheck.h',
314 'renderer/spellchecker/spellcheck_language.cc',
315 'renderer/spellchecker/spellcheck_language.h',
316 'renderer/spellchecker/spellcheck_worditerator.cc',
317 'renderer/spellchecker/spellcheck_worditerator.h',
318 'renderer/spellchecker/spelling_engine.h',
319 'renderer/static_v8_external_string_resource.cc',
320 'renderer/static_v8_external_string_resource.h',
321 'renderer/tts_dispatcher.cc',
322 'renderer/tts_dispatcher.h',
323 'renderer/translate/translate_helper.cc',
324 'renderer/translate/translate_helper.h',
325 'renderer/translate/translate_helper_metrics.cc',
326 'renderer/translate/translate_helper_metrics.h',
327 'renderer/validation_message_agent.cc',
328 'renderer/validation_message_agent.h',
329 'renderer/web_apps.cc',
330 'renderer/web_apps.h',
331 'renderer/webview_color_overlay.cc',
332 'renderer/webview_color_overlay.h',
335 ['disable_nacl!=1', {
340 ['enable_plugins==1', {
342 '../ppapi/ppapi_internal.gyp:ppapi_host',
343 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
344 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
345 '../ppapi/ppapi_internal.gyp:ppapi_shared',
347 }, { # enable_plugins==0
349 ['exclude', '^renderer/pepper/'],
352 ['safe_browsing==1', {
354 'FULL_SAFE_BROWSING',
357 'safe_browsing_proto',
358 '../third_party/smhasher/smhasher.gyp:murmurhash3',
360 }, { # safe_browsing==0 || safe_browsing==2
362 ['exclude', '^renderer/safe_browsing/'],
365 ['enable_webrtc==0', {
367 'renderer/media/webrtc_logging_handler_impl.cc',
368 'renderer/media/webrtc_logging_handler_impl.h',
369 'renderer/media/webrtc_logging_message_filter.cc',
370 'renderer/media/webrtc_logging_message_filter.h',
375 '../third_party/mach_override/mach_override.gyp:mach_override',
378 ['enable_language_detection==1', {
380 '../third_party/cld/cld.gyp:cld',
383 '../third_party/cld',
386 ['toolkit_uses_gtk == 1', {
388 '../build/linux/system.gyp:gtk',
389 '../sandbox/sandbox.gyp:sandbox',
392 ['enable_automation==0', {
394 ['exclude', '^renderer/automation/']
399 'renderer/prerender/prerender_webmediaplayer.cc',
400 'renderer/prerender/prerender_webmediaplayer.h',
401 'renderer/printing/print_web_view_helper.cc',
404 'ENABLE_MOBILE_YOUTUBE_PLUGIN',
409 '<(DEPTH)/third_party/wtl/include',
412 ['win_use_allocator_shim==1', {
414 '<(allocator_target)',
416 'export_dependent_settings': [
417 '<(allocator_target)',