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