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