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