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 '../third_party/re2/re2.gyp:re2',
17 '../components/components.gyp:autofill_content_renderer',
18 '../components/components.gyp:startup_metric_utils',
19 '../components/components.gyp:plugins_renderer',
20 '../components/components.gyp:translate_core_common',
21 '../components/components.gyp:translate_language_detection',
22 '../components/components.gyp:visitedlink_renderer',
23 '../content/content.gyp:content_renderer',
24 '../media/cast/cast.gyp:cast_config',
25 '../media/cast/cast.gyp:sender_logging',
26 '../media/cast/cast_sender.gyp:cast_sender',
27 '../media/cast/transport/cast_transport.gyp:cast_transport',
29 '../skia/skia.gyp:skia',
30 '../third_party/WebKit/public/blink.gyp:blink',
31 '../third_party/hunspell/hunspell.gyp:hunspell',
32 '../third_party/icu/icu.gyp:icui18n',
33 '../third_party/icu/icu.gyp:icuuc',
34 '../third_party/npapi/npapi.gyp:npapi',
35 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
36 '../ui/surface/surface.gyp:surface',
37 '../webkit/child/webkit_child.gyp:webkit_child',
38 '../webkit/common/webkit_common.gyp:webkit_common',
39 '../webkit/webkit_resources.gyp:webkit_resources',
43 # Needed by chrome_content_renderer_client.cc.
44 '<(SHARED_INTERMEDIATE_DIR)',
47 'renderer/benchmarking_extension.cc',
48 'renderer/benchmarking_extension.h',
49 'renderer/extensions/activity_log_converter_strategy.cc',
50 'renderer/extensions/activity_log_converter_strategy.h',
51 'renderer/extensions/api_activity_logger.cc',
52 'renderer/extensions/api_activity_logger.h',
53 'renderer/extensions/api_definitions_natives.cc',
54 'renderer/extensions/api_definitions_natives.h',
55 'renderer/extensions/app_bindings.cc',
56 'renderer/extensions/app_bindings.h',
57 'renderer/extensions/app_runtime_custom_bindings.cc',
58 'renderer/extensions/app_runtime_custom_bindings.h',
59 'renderer/extensions/app_window_custom_bindings.cc',
60 'renderer/extensions/app_window_custom_bindings.h',
61 'renderer/extensions/binding_generating_native_handler.cc',
62 'renderer/extensions/binding_generating_native_handler.h',
63 'renderer/extensions/blob_native_handler.cc',
64 'renderer/extensions/blob_native_handler.h',
65 'renderer/extensions/cast_streaming_native_handler.cc',
66 'renderer/extensions/cast_streaming_native_handler.h',
67 'renderer/extensions/chrome_v8_context.cc',
68 'renderer/extensions/chrome_v8_context.h',
69 'renderer/extensions/chrome_v8_context_set.cc',
70 'renderer/extensions/chrome_v8_context_set.h',
71 'renderer/extensions/chrome_v8_extension.cc',
72 'renderer/extensions/chrome_v8_extension.h',
73 'renderer/extensions/chrome_v8_extension_handler.cc',
74 'renderer/extensions/chrome_v8_extension_handler.h',
75 'renderer/extensions/console.cc',
76 'renderer/extensions/console.h',
77 'renderer/extensions/content_watcher.cc',
78 'renderer/extensions/content_watcher.h',
79 'renderer/extensions/context_menus_custom_bindings.cc',
80 'renderer/extensions/context_menus_custom_bindings.h',
81 'renderer/extensions/css_native_handler.cc',
82 'renderer/extensions/css_native_handler.h',
83 'renderer/extensions/dispatcher.cc',
84 'renderer/extensions/dispatcher.h',
85 'renderer/extensions/document_custom_bindings.cc',
86 'renderer/extensions/document_custom_bindings.h',
87 'renderer/extensions/dom_activity_logger.cc',
88 'renderer/extensions/dom_activity_logger.h',
89 'renderer/extensions/event_bindings.cc',
90 'renderer/extensions/event_bindings.h',
91 'renderer/extensions/extension_frame_helper.cc',
92 'renderer/extensions/extension_frame_helper.h',
93 'renderer/extensions/extension_groups.h',
94 'renderer/extensions/extension_helper.cc',
95 'renderer/extensions/extension_helper.h',
96 'renderer/extensions/extension_localization_peer.cc',
97 'renderer/extensions/extension_localization_peer.h',
98 'renderer/extensions/file_browser_handler_custom_bindings.cc',
99 'renderer/extensions/file_browser_handler_custom_bindings.h',
100 'renderer/extensions/file_browser_private_custom_bindings.cc',
101 'renderer/extensions/file_browser_private_custom_bindings.h',
102 'renderer/extensions/file_system_natives.cc',
103 'renderer/extensions/file_system_natives.h',
104 'renderer/extensions/i18n_custom_bindings.cc',
105 'renderer/extensions/i18n_custom_bindings.h',
106 'renderer/extensions/id_generator_custom_bindings.cc',
107 'renderer/extensions/id_generator_custom_bindings.h',
108 'renderer/extensions/logging_native_handler.cc',
109 'renderer/extensions/logging_native_handler.h',
110 'renderer/extensions/media_galleries_custom_bindings.cc',
111 'renderer/extensions/media_galleries_custom_bindings.h',
112 'renderer/extensions/messaging_bindings.cc',
113 'renderer/extensions/messaging_bindings.h',
114 'renderer/extensions/module_system.cc',
115 'renderer/extensions/module_system.h',
116 'renderer/extensions/native_handler.cc',
117 'renderer/extensions/native_handler.h',
118 'renderer/extensions/object_backed_native_handler.cc',
119 'renderer/extensions/object_backed_native_handler.h',
120 'renderer/extensions/page_actions_custom_bindings.cc',
121 'renderer/extensions/page_actions_custom_bindings.h',
122 'renderer/extensions/page_capture_custom_bindings.cc',
123 'renderer/extensions/page_capture_custom_bindings.h',
124 'renderer/extensions/pepper_request_natives.cc',
125 'renderer/extensions/pepper_request_natives.h',
126 'renderer/extensions/pepper_request_proxy.cc',
127 'renderer/extensions/pepper_request_proxy.h',
128 'renderer/extensions/renderer_permissions_policy_delegate.cc',
129 'renderer/extensions/renderer_permissions_policy_delegate.h',
130 'renderer/extensions/render_view_observer_natives.cc',
131 'renderer/extensions/render_view_observer_natives.h',
132 'renderer/extensions/request_sender.cc',
133 'renderer/extensions/request_sender.h',
134 'renderer/extensions/resource_request_policy.cc',
135 'renderer/extensions/resource_request_policy.h',
136 'renderer/extensions/runtime_custom_bindings.cc',
137 'renderer/extensions/runtime_custom_bindings.h',
138 'renderer/extensions/safe_builtins.cc',
139 'renderer/extensions/safe_builtins.h',
140 'renderer/extensions/scoped_persistent.h',
141 'renderer/extensions/send_request_natives.cc',
142 'renderer/extensions/send_request_natives.h',
143 'renderer/extensions/set_icon_natives.cc',
144 'renderer/extensions/set_icon_natives.h',
145 'renderer/extensions/sync_file_system_custom_bindings.cc',
146 'renderer/extensions/sync_file_system_custom_bindings.h',
147 'renderer/extensions/tab_finder.cc',
148 'renderer/extensions/tab_finder.h',
149 'renderer/extensions/tabs_custom_bindings.cc',
150 'renderer/extensions/tabs_custom_bindings.h',
151 'renderer/extensions/unsafe_persistent.h',
152 'renderer/extensions/user_script_scheduler.cc',
153 'renderer/extensions/user_script_scheduler.h',
154 'renderer/extensions/user_script_slave.cc',
155 'renderer/extensions/user_script_slave.h',
156 'renderer/extensions/utils_native_handler.cc',
157 'renderer/extensions/utils_native_handler.h',
158 'renderer/extensions/v8_schema_registry.cc',
159 'renderer/extensions/v8_schema_registry.h',
160 'renderer/extensions/webstore_bindings.cc',
161 'renderer/extensions/webstore_bindings.h',
162 'renderer/isolated_world_ids.h',
163 'renderer/loadtimes_extension_bindings.cc',
164 'renderer/loadtimes_extension_bindings.h',
165 'renderer/media/cast_rtp_stream.cc',
166 'renderer/media/cast_rtp_stream.h',
167 'renderer/media/cast_ipc_dispatcher.cc',
168 'renderer/media/cast_ipc_dispatcher.h',
169 'renderer/media/cast_session.cc',
170 'renderer/media/cast_session.h',
171 'renderer/media/cast_session_delegate.cc',
172 'renderer/media/cast_session_delegate.h',
173 'renderer/media/cast_threads.cc',
174 'renderer/media/cast_threads.h',
175 'renderer/media/cast_transport_sender_ipc.cc',
176 'renderer/media/cast_transport_sender_ipc.h',
177 'renderer/media/cast_udp_transport.cc',
178 'renderer/media/cast_udp_transport.h',
179 'renderer/media/chrome_key_systems.cc',
180 'renderer/media/chrome_key_systems.h',
181 'renderer/media/chrome_webrtc_log_message_delegate.cc',
182 'renderer/media/chrome_webrtc_log_message_delegate.h',
183 'renderer/media/webrtc_logging_message_filter.cc',
184 'renderer/media/webrtc_logging_message_filter.h',
185 'renderer/net/net_error_helper.cc',
186 'renderer/net/net_error_helper.h',
187 'renderer/net/net_error_helper_core.cc',
188 'renderer/net/net_error_helper_core.h',
189 'renderer/net/predictor_queue.cc',
190 'renderer/net/predictor_queue.h',
191 'renderer/net/prescient_networking_dispatcher.cc',
192 'renderer/net/prescient_networking_dispatcher.h',
193 'renderer/net/renderer_net_predictor.cc',
194 'renderer/net/renderer_net_predictor.h',
195 'renderer/net_benchmarking_extension.cc',
196 'renderer/net_benchmarking_extension.h',
197 'renderer/playback_extension.cc',
198 'renderer/playback_extension.h',
199 'renderer/principals_extension_bindings.cc',
200 'renderer/principals_extension_bindings.h',
201 'renderer/resource_bundle_source_map.cc',
202 'renderer/resource_bundle_source_map.h',
203 'renderer/resources/extensions/app_custom_bindings.js',
204 'renderer/resources/extensions/app_window_custom_bindings.js',
205 'renderer/resources/extensions/binding.js',
206 'renderer/resources/extensions/browser_action_custom_bindings.js',
207 'renderer/resources/extensions/chrome_direct_setting.js',
208 'renderer/resources/extensions/chrome_setting.js',
209 'renderer/resources/extensions/content_setting.js',
210 'renderer/resources/extensions/context_menus_custom_bindings.js',
211 'renderer/resources/extensions/declarative_content_custom_bindings.js',
212 'renderer/resources/extensions/declarative_webrequest_custom_bindings.js',
213 'renderer/resources/extensions/event.js',
214 'renderer/resources/extensions/experimental.offscreenTabs_custom_bindings.js',
215 'renderer/resources/extensions/extension_custom_bindings.js',
216 'renderer/resources/extensions/feedback_private_custom_bindings.js',
217 'renderer/resources/extensions/file_browser_handler_custom_bindings.js',
218 'renderer/resources/extensions/file_browser_private_custom_bindings.js',
219 'renderer/resources/extensions/file_system_custom_bindings.js',
220 'renderer/resources/extensions/file_system_provider_custom_bindings.js',
221 'renderer/resources/extensions/gcm_custom_bindings.js',
222 'renderer/resources/extensions/greasemonkey_api.js',
223 'renderer/resources/extensions/identity_custom_bindings.js',
224 'renderer/resources/extensions/image_writer_private_custom_bindings.js',
225 'renderer/resources/extensions/input.ime_custom_bindings.js',
226 'renderer/resources/extensions/json_schema.js',
227 'renderer/resources/extensions/last_error.js',
228 'renderer/resources/extensions/messaging.js',
229 'renderer/resources/extensions/messaging_utils.js',
230 'renderer/resources/extensions/notifications_custom_bindings.js',
231 'renderer/resources/extensions/omnibox_custom_bindings.js',
232 'renderer/resources/extensions/page_action_custom_bindings.js',
233 'renderer/resources/extensions/page_actions_custom_bindings.js',
234 'renderer/resources/extensions/page_capture_custom_bindings.js',
235 'renderer/resources/extensions/platform_app.js',
236 'renderer/resources/extensions/pepper_request.js',
237 'renderer/resources/extensions/runtime_custom_bindings.js',
238 'renderer/resources/extensions/send_request.js',
239 'renderer/resources/extensions/set_icon.js',
240 'renderer/resources/extensions/storage_area.js',
241 'renderer/resources/extensions/system_indicator_custom_bindings.js',
242 'renderer/resources/extensions/test_custom_bindings.js',
243 'renderer/resources/extensions/tts_custom_bindings.js',
244 'renderer/resources/extensions/tts_engine_custom_bindings.js',
245 'renderer/resources/extensions/unload_event.js',
246 'renderer/resources/extensions/utils.js',
247 'renderer/resources/extensions/web_request_custom_bindings.js',
248 'renderer/resources/extensions/web_view.js',
249 'renderer/resources/extensions/web_view_experimental.js',
250 'renderer/resources/extensions/webview_custom_bindings.js',
251 'renderer/chrome_content_renderer_client.cc',
252 'renderer/chrome_content_renderer_client.h',
253 'renderer/chrome_render_frame_observer.cc',
254 'renderer/chrome_render_frame_observer.h',
255 'renderer/chrome_render_process_observer.cc',
256 'renderer/chrome_render_process_observer.h',
257 'renderer/chrome_render_view_observer.cc',
258 'renderer/chrome_render_view_observer.h',
259 'renderer/content_settings_observer.cc',
260 'renderer/content_settings_observer.h',
261 'renderer/custom_menu_commands.h',
262 'renderer/external_extension.cc',
263 'renderer/external_extension.h',
264 'renderer/page_load_histograms.cc',
265 'renderer/page_load_histograms.h',
266 'renderer/pepper/chrome_renderer_pepper_host_factory.cc',
267 'renderer/pepper/chrome_renderer_pepper_host_factory.h',
268 'renderer/pepper/pepper_extensions_common_host.cc',
269 'renderer/pepper/pepper_extensions_common_host.h',
270 'renderer/pepper/pepper_flash_drm_renderer_host.cc',
271 'renderer/pepper/pepper_flash_drm_renderer_host.h',
272 'renderer/pepper/pepper_flash_font_file_host.cc',
273 'renderer/pepper/pepper_flash_font_file_host.h',
274 'renderer/pepper/pepper_flash_fullscreen_host.cc',
275 'renderer/pepper/pepper_flash_fullscreen_host.h',
276 'renderer/pepper/pepper_flash_menu_host.cc',
277 'renderer/pepper/pepper_flash_menu_host.h',
278 'renderer/pepper/pepper_flash_renderer_host.cc',
279 'renderer/pepper/pepper_flash_renderer_host.h',
280 'renderer/pepper/pepper_helper.cc',
281 'renderer/pepper/pepper_helper.h',
282 'renderer/pepper/pepper_pdf_host.cc',
283 'renderer/pepper/pepper_pdf_host.h',
284 'renderer/pepper/pepper_shared_memory_message_filter.cc',
285 'renderer/pepper/pepper_shared_memory_message_filter.h',
286 'renderer/pepper/pepper_uma_host.cc',
287 'renderer/pepper/pepper_uma_host.h',
288 'renderer/pepper/ppb_pdf_impl.cc',
289 'renderer/pepper/ppb_pdf_impl.h',
290 'renderer/plugins/chrome_plugin_placeholder.cc',
291 'renderer/plugins/chrome_plugin_placeholder.h',
292 'renderer/plugins/plugin_uma.cc',
293 'renderer/plugins/plugin_uma.h',
294 'renderer/prerender/prerender_dispatcher.cc',
295 'renderer/prerender/prerender_dispatcher.h',
296 'renderer/prerender/prerender_extra_data.cc',
297 'renderer/prerender/prerender_extra_data.h',
298 'renderer/prerender/prerender_helper.cc',
299 'renderer/prerender/prerender_helper.h',
300 'renderer/prerender/prerender_media_load_deferrer.cc',
301 'renderer/prerender/prerender_media_load_deferrer.h',
302 'renderer/prerender/prerenderer_client.cc',
303 'renderer/prerender/prerenderer_client.h',
304 'renderer/printing/print_web_view_helper.cc',
305 'renderer/printing/print_web_view_helper.h',
306 'renderer/printing/print_web_view_helper_android.cc',
307 'renderer/printing/print_web_view_helper_linux.cc',
308 'renderer/printing/print_web_view_helper_mac.mm',
309 'renderer/printing/print_web_view_helper_win.cc',
310 'renderer/safe_browsing/feature_extractor_clock.cc',
311 'renderer/safe_browsing/feature_extractor_clock.h',
312 'renderer/safe_browsing/features.cc',
313 'renderer/safe_browsing/features.h',
314 'renderer/safe_browsing/malware_dom_details.cc',
315 'renderer/safe_browsing/malware_dom_details.h',
316 'renderer/safe_browsing/murmurhash3_util.cc',
317 'renderer/safe_browsing/murmurhash3_util.h',
318 'renderer/safe_browsing/phishing_classifier.cc',
319 'renderer/safe_browsing/phishing_classifier.h',
320 'renderer/safe_browsing/phishing_classifier_delegate.cc',
321 'renderer/safe_browsing/phishing_classifier_delegate.h',
322 'renderer/safe_browsing/phishing_dom_feature_extractor.cc',
323 'renderer/safe_browsing/phishing_dom_feature_extractor.h',
324 'renderer/safe_browsing/phishing_term_feature_extractor.cc',
325 'renderer/safe_browsing/phishing_term_feature_extractor.h',
326 'renderer/safe_browsing/phishing_url_feature_extractor.cc',
327 'renderer/safe_browsing/phishing_url_feature_extractor.h',
328 'renderer/safe_browsing/scorer.cc',
329 'renderer/safe_browsing/scorer.h',
330 'renderer/searchbox/search_bouncer.cc',
331 'renderer/searchbox/search_bouncer.h',
332 'renderer/searchbox/searchbox.cc',
333 'renderer/searchbox/searchbox.h',
334 'renderer/searchbox/searchbox_extension.cc',
335 'renderer/searchbox/searchbox_extension.h',
336 'renderer/security_filter_peer.cc',
337 'renderer/security_filter_peer.h',
338 'renderer/spellchecker/cocoa_spelling_engine_mac.cc',
339 'renderer/spellchecker/cocoa_spelling_engine_mac.h',
340 'renderer/spellchecker/custom_dictionary_engine.cc',
341 'renderer/spellchecker/custom_dictionary_engine.h',
342 'renderer/spellchecker/hunspell_engine.cc',
343 'renderer/spellchecker/hunspell_engine.h',
344 'renderer/spellchecker/spellcheck_provider.cc',
345 'renderer/spellchecker/spellcheck_provider.h',
346 'renderer/spellchecker/spellcheck.cc',
347 'renderer/spellchecker/spellcheck.h',
348 'renderer/spellchecker/spellcheck_language.cc',
349 'renderer/spellchecker/spellcheck_language.h',
350 'renderer/spellchecker/spellcheck_worditerator.cc',
351 'renderer/spellchecker/spellcheck_worditerator.h',
352 'renderer/spellchecker/spelling_engine.h',
353 'renderer/static_v8_external_string_resource.cc',
354 'renderer/static_v8_external_string_resource.h',
355 'renderer/tts_dispatcher.cc',
356 'renderer/tts_dispatcher.h',
357 'renderer/translate/translate_helper.cc',
358 'renderer/translate/translate_helper.h',
359 'renderer/web_apps.cc',
360 'renderer/web_apps.h',
361 'renderer/webview_color_overlay.cc',
362 'renderer/webview_color_overlay.h',
363 'renderer/worker_permission_client_proxy.cc',
364 'renderer/worker_permission_client_proxy.h',
367 ['disable_nacl!=1', {
369 '../components/nacl.gyp:nacl',
370 '../components/nacl.gyp:nacl_renderer',
373 ['enable_plugins==1', {
375 '../ppapi/ppapi_internal.gyp:ppapi_host',
376 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
377 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
378 '../ppapi/ppapi_internal.gyp:ppapi_shared',
380 }, { # enable_plugins==0
382 ['exclude', '^renderer/pepper/'],
385 ['safe_browsing==1', {
387 'FULL_SAFE_BROWSING',
390 'safe_browsing_proto',
391 '../third_party/smhasher/smhasher.gyp:murmurhash3',
393 }, { # safe_browsing==0 || safe_browsing==2
395 ['exclude', '^renderer/safe_browsing/'],
398 ['enable_webrtc==0', {
400 'renderer/extensions/cast_streaming_native_handler.cc',
401 'renderer/extensions/cast_streaming_native_handler.h',
402 'renderer/media/chrome_webrtc_log_message_delegate.cc',
403 'renderer/media/chrome_webrtc_log_message_delegate.h',
404 'renderer/media/webrtc_logging_message_filter.cc',
405 'renderer/media/webrtc_logging_message_filter.h',
408 ['enable_spellcheck==0', {
410 ['exclude', '^renderer/spellchecker/']
413 '../third_party/hunspell/hunspell.gyp:hunspell',
418 '../third_party/mach_override/mach_override.gyp:mach_override',
421 ['toolkit_uses_gtk == 1', {
423 '../build/linux/system.gyp:gtk',
424 '../sandbox/sandbox.gyp:sandbox',
427 ['enable_automation==0', {
429 ['exclude', '^renderer/automation/']
432 ['enable_printing==0', {
434 ['exclude', '^renderer/printing/']
439 'renderer/prerender/prerender_media_load_deferrer.cc',
440 'renderer/prerender/prerender_media_load_deferrer.h',
441 'renderer/extensions/api_definitions_natives.cc',
442 'renderer/extensions/app_window_custom_bindings.cc',
443 'renderer/extensions/chrome_v8_extension.cc',
444 'renderer/extensions/chrome_v8_extension_handler.cc',
445 'renderer/extensions/context_menus_custom_bindings.cc',
446 'renderer/extensions/file_browser_handler_custom_bindings.cc',
447 'renderer/extensions/page_actions_custom_bindings.cc',
448 'renderer/extensions/render_view_observer_natives.cc',
449 'renderer/extensions/send_request_natives.cc',
450 'renderer/extensions/tabs_custom_bindings.cc',
451 'renderer/extensions/tts_custom_bindings.cc',
456 '../chrome_elf/chrome_elf.gyp:chrome_elf',
459 '<(DEPTH)/third_party/wtl/include',
462 ['win_use_allocator_shim==1', {
464 '<(allocator_target)',
466 'export_dependent_settings': [
467 '<(allocator_target)',
474 # TODO(hclam): See crbug.com/298380 for details.
475 # We should isolate the APIs needed by the renderer.
476 '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
479 ['enable_printing!=0', {
481 '../printing/printing.gyp:printing',