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:cdm_renderer',
19 '../components/components.gyp:startup_metric_utils',
20 '../components/components.gyp:plugins_renderer',
21 '../components/components.gyp:translate_core_common',
22 '../components/components.gyp:translate_core_language_detection',
23 '../components/components.gyp:visitedlink_renderer',
24 '../content/content.gyp:content_renderer',
25 '../extensions/extensions.gyp:extensions_renderer',
26 '../extensions/extensions_resources.gyp:extensions_resources',
27 '../media/cast/cast.gyp:cast_logging_proto',
28 '../media/cast/cast.gyp:cast_sender',
29 '../media/cast/cast.gyp:cast_transport',
31 '../skia/skia.gyp:skia',
32 '../third_party/WebKit/public/blink.gyp:blink',
33 '../third_party/hunspell/hunspell.gyp:hunspell',
34 '../third_party/icu/icu.gyp:icui18n',
35 '../third_party/icu/icu.gyp:icuuc',
36 '../third_party/npapi/npapi.gyp:npapi',
37 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
38 '../ui/surface/surface.gyp:surface',
39 '../webkit/child/webkit_child.gyp:webkit_child',
40 '../webkit/common/webkit_common.gyp:webkit_common',
41 '../webkit/webkit_resources.gyp:webkit_resources',
45 # Needed by chrome_content_renderer_client.cc.
46 '<(SHARED_INTERMEDIATE_DIR)',
49 'renderer/benchmarking_extension.cc',
50 'renderer/benchmarking_extension.h',
51 'renderer/extensions/app_bindings.cc',
52 'renderer/extensions/app_bindings.h',
53 'renderer/extensions/app_window_custom_bindings.cc',
54 'renderer/extensions/app_window_custom_bindings.h',
55 'renderer/extensions/automation_internal_custom_bindings.cc',
56 'renderer/extensions/automation_internal_custom_bindings.h',
57 'renderer/extensions/cast_streaming_native_handler.cc',
58 'renderer/extensions/cast_streaming_native_handler.h',
59 'renderer/extensions/chrome_extension_helper.cc',
60 'renderer/extensions/chrome_extension_helper.h',
61 'renderer/extensions/chrome_extensions_dispatcher_delegate.cc',
62 'renderer/extensions/chrome_extensions_dispatcher_delegate.h',
63 'renderer/extensions/chrome_extensions_render_frame_observer.cc',
64 'renderer/extensions/chrome_extensions_render_frame_observer.h',
65 'renderer/extensions/chrome_extensions_renderer_client.cc',
66 'renderer/extensions/chrome_extensions_renderer_client.h',
67 'renderer/extensions/chrome_v8_context.cc',
68 'renderer/extensions/chrome_v8_context.h',
69 'renderer/extensions/chrome_v8_extension_handler.cc',
70 'renderer/extensions/chrome_v8_extension_handler.h',
71 'renderer/extensions/extension_frame_helper.cc',
72 'renderer/extensions/extension_frame_helper.h',
73 'renderer/extensions/extension_localization_peer.cc',
74 'renderer/extensions/extension_localization_peer.h',
75 'renderer/extensions/file_browser_handler_custom_bindings.cc',
76 'renderer/extensions/file_browser_handler_custom_bindings.h',
77 'renderer/extensions/file_browser_private_custom_bindings.cc',
78 'renderer/extensions/file_browser_private_custom_bindings.h',
79 'renderer/extensions/media_galleries_custom_bindings.cc',
80 'renderer/extensions/media_galleries_custom_bindings.h',
81 'renderer/extensions/notifications_native_handler.cc',
82 'renderer/extensions/notifications_native_handler.h',
83 'renderer/extensions/page_actions_custom_bindings.cc',
84 'renderer/extensions/page_actions_custom_bindings.h',
85 'renderer/extensions/page_capture_custom_bindings.cc',
86 'renderer/extensions/page_capture_custom_bindings.h',
87 'renderer/extensions/pepper_request_natives.cc',
88 'renderer/extensions/pepper_request_natives.h',
89 'renderer/extensions/pepper_request_proxy.cc',
90 'renderer/extensions/pepper_request_proxy.h',
91 'renderer/extensions/renderer_permissions_policy_delegate.cc',
92 'renderer/extensions/renderer_permissions_policy_delegate.h',
93 'renderer/extensions/resource_request_policy.cc',
94 'renderer/extensions/resource_request_policy.h',
95 'renderer/extensions/sync_file_system_custom_bindings.cc',
96 'renderer/extensions/sync_file_system_custom_bindings.h',
97 'renderer/extensions/tab_finder.cc',
98 'renderer/extensions/tab_finder.h',
99 'renderer/extensions/tabs_custom_bindings.cc',
100 'renderer/extensions/tabs_custom_bindings.h',
101 'renderer/extensions/webstore_bindings.cc',
102 'renderer/extensions/webstore_bindings.h',
103 'renderer/isolated_world_ids.h',
104 'renderer/loadtimes_extension_bindings.cc',
105 'renderer/loadtimes_extension_bindings.h',
106 'renderer/media/cast_rtp_stream.cc',
107 'renderer/media/cast_rtp_stream.h',
108 'renderer/media/cast_ipc_dispatcher.cc',
109 'renderer/media/cast_ipc_dispatcher.h',
110 'renderer/media/cast_session.cc',
111 'renderer/media/cast_session.h',
112 'renderer/media/cast_session_delegate.cc',
113 'renderer/media/cast_session_delegate.h',
114 'renderer/media/cast_threads.cc',
115 'renderer/media/cast_threads.h',
116 'renderer/media/cast_transport_sender_ipc.cc',
117 'renderer/media/cast_transport_sender_ipc.h',
118 'renderer/media/cast_udp_transport.cc',
119 'renderer/media/cast_udp_transport.h',
120 'renderer/media/chrome_key_systems.cc',
121 'renderer/media/chrome_key_systems.h',
122 'renderer/media/chrome_webrtc_log_message_delegate.cc',
123 'renderer/media/chrome_webrtc_log_message_delegate.h',
124 'renderer/media/webrtc_logging_message_filter.cc',
125 'renderer/media/webrtc_logging_message_filter.h',
126 'renderer/net/net_error_helper.cc',
127 'renderer/net/net_error_helper.h',
128 'renderer/net/net_error_helper_core.cc',
129 'renderer/net/net_error_helper_core.h',
130 'renderer/net/net_error_page_controller.cc',
131 'renderer/net/net_error_page_controller.h',
132 'renderer/net/predictor_queue.cc',
133 'renderer/net/predictor_queue.h',
134 'renderer/net/prescient_networking_dispatcher.cc',
135 'renderer/net/prescient_networking_dispatcher.h',
136 'renderer/net/renderer_net_predictor.cc',
137 'renderer/net/renderer_net_predictor.h',
138 'renderer/net_benchmarking_extension.cc',
139 'renderer/net_benchmarking_extension.h',
140 'renderer/playback_extension.cc',
141 'renderer/playback_extension.h',
142 'renderer/principals_extension_bindings.cc',
143 'renderer/principals_extension_bindings.h',
144 'renderer/resources/extensions/app_custom_bindings.js',
145 'renderer/resources/extensions/app_window_custom_bindings.js',
146 'renderer/resources/extensions/automation_custom_bindings.js',
147 'renderer/resources/extensions/browser_action_custom_bindings.js',
148 'renderer/resources/extensions/chrome_direct_setting.js',
149 'renderer/resources/extensions/chrome_setting.js',
150 'renderer/resources/extensions/content_setting.js',
151 'renderer/resources/extensions/declarative_content_custom_bindings.js',
152 'renderer/resources/extensions/declarative_webrequest_custom_bindings.js',
153 'renderer/resources/extensions/enterprise_platform_keys_custom_bindings.js',
154 'renderer/resources/extensions/feedback_private_custom_bindings.js',
155 'renderer/resources/extensions/file_browser_handler_custom_bindings.js',
156 'renderer/resources/extensions/file_browser_private_custom_bindings.js',
157 'renderer/resources/extensions/file_system_custom_bindings.js',
158 'renderer/resources/extensions/file_system_provider_custom_bindings.js',
159 'renderer/resources/extensions/gcm_custom_bindings.js',
160 'renderer/resources/extensions/identity_custom_bindings.js',
161 'renderer/resources/extensions/image_writer_private_custom_bindings.js',
162 'renderer/resources/extensions/input.ime_custom_bindings.js',
163 'renderer/resources/extensions/notifications_custom_bindings.js',
164 'renderer/resources/extensions/omnibox_custom_bindings.js',
165 'renderer/resources/extensions/page_action_custom_bindings.js',
166 'renderer/resources/extensions/page_actions_custom_bindings.js',
167 'renderer/resources/extensions/page_capture_custom_bindings.js',
168 'renderer/resources/extensions/pepper_request.js',
169 'renderer/resources/extensions/system_indicator_custom_bindings.js',
170 'renderer/resources/extensions/tts_custom_bindings.js',
171 'renderer/resources/extensions/tts_engine_custom_bindings.js',
172 'renderer/resources/extensions/web_request_custom_bindings.js',
173 'renderer/resources/extensions/web_view.js',
174 'renderer/resources/extensions/web_view_experimental.js',
175 'renderer/resources/extensions/webview_custom_bindings.js',
176 'renderer/chrome_content_renderer_client.cc',
177 'renderer/chrome_content_renderer_client.h',
178 'renderer/chrome_render_frame_observer.cc',
179 'renderer/chrome_render_frame_observer.h',
180 'renderer/chrome_render_process_observer.cc',
181 'renderer/chrome_render_process_observer.h',
182 'renderer/chrome_render_view_observer.cc',
183 'renderer/chrome_render_view_observer.h',
184 'renderer/content_settings_observer.cc',
185 'renderer/content_settings_observer.h',
186 'renderer/custom_menu_commands.h',
187 'renderer/external_extension.cc',
188 'renderer/external_extension.h',
189 'renderer/page_load_histograms.cc',
190 'renderer/page_load_histograms.h',
191 'renderer/pepper/chrome_renderer_pepper_host_factory.cc',
192 'renderer/pepper/chrome_renderer_pepper_host_factory.h',
193 'renderer/pepper/pepper_extensions_common_host.cc',
194 'renderer/pepper/pepper_extensions_common_host.h',
195 'renderer/pepper/pepper_flash_drm_renderer_host.cc',
196 'renderer/pepper/pepper_flash_drm_renderer_host.h',
197 'renderer/pepper/pepper_flash_font_file_host.cc',
198 'renderer/pepper/pepper_flash_font_file_host.h',
199 'renderer/pepper/pepper_flash_fullscreen_host.cc',
200 'renderer/pepper/pepper_flash_fullscreen_host.h',
201 'renderer/pepper/pepper_flash_menu_host.cc',
202 'renderer/pepper/pepper_flash_menu_host.h',
203 'renderer/pepper/pepper_flash_renderer_host.cc',
204 'renderer/pepper/pepper_flash_renderer_host.h',
205 'renderer/pepper/pepper_helper.cc',
206 'renderer/pepper/pepper_helper.h',
207 'renderer/pepper/pepper_pdf_host.cc',
208 'renderer/pepper/pepper_pdf_host.h',
209 'renderer/pepper/pepper_shared_memory_message_filter.cc',
210 'renderer/pepper/pepper_shared_memory_message_filter.h',
211 'renderer/pepper/pepper_uma_host.cc',
212 'renderer/pepper/pepper_uma_host.h',
213 'renderer/pepper/ppb_pdf_impl.cc',
214 'renderer/pepper/ppb_pdf_impl.h',
215 'renderer/plugins/chrome_plugin_placeholder.cc',
216 'renderer/plugins/chrome_plugin_placeholder.h',
217 'renderer/plugins/plugin_uma.cc',
218 'renderer/plugins/plugin_uma.h',
219 'renderer/prerender/prerender_dispatcher.cc',
220 'renderer/prerender/prerender_dispatcher.h',
221 'renderer/prerender/prerender_extra_data.cc',
222 'renderer/prerender/prerender_extra_data.h',
223 'renderer/prerender/prerender_helper.cc',
224 'renderer/prerender/prerender_helper.h',
225 'renderer/prerender/prerender_media_load_deferrer.cc',
226 'renderer/prerender/prerender_media_load_deferrer.h',
227 'renderer/prerender/prerenderer_client.cc',
228 'renderer/prerender/prerenderer_client.h',
229 'renderer/printing/print_web_view_helper.cc',
230 'renderer/printing/print_web_view_helper.h',
231 'renderer/printing/print_web_view_helper_android.cc',
232 'renderer/printing/print_web_view_helper_linux.cc',
233 'renderer/printing/print_web_view_helper_mac.mm',
234 'renderer/safe_browsing/feature_extractor_clock.cc',
235 'renderer/safe_browsing/feature_extractor_clock.h',
236 'renderer/safe_browsing/features.cc',
237 'renderer/safe_browsing/features.h',
238 'renderer/safe_browsing/malware_dom_details.cc',
239 'renderer/safe_browsing/malware_dom_details.h',
240 'renderer/safe_browsing/murmurhash3_util.cc',
241 'renderer/safe_browsing/murmurhash3_util.h',
242 'renderer/safe_browsing/phishing_classifier.cc',
243 'renderer/safe_browsing/phishing_classifier.h',
244 'renderer/safe_browsing/phishing_classifier_delegate.cc',
245 'renderer/safe_browsing/phishing_classifier_delegate.h',
246 'renderer/safe_browsing/phishing_dom_feature_extractor.cc',
247 'renderer/safe_browsing/phishing_dom_feature_extractor.h',
248 'renderer/safe_browsing/phishing_term_feature_extractor.cc',
249 'renderer/safe_browsing/phishing_term_feature_extractor.h',
250 'renderer/safe_browsing/phishing_url_feature_extractor.cc',
251 'renderer/safe_browsing/phishing_url_feature_extractor.h',
252 'renderer/safe_browsing/scorer.cc',
253 'renderer/safe_browsing/scorer.h',
254 'renderer/searchbox/search_bouncer.cc',
255 'renderer/searchbox/search_bouncer.h',
256 'renderer/searchbox/searchbox.cc',
257 'renderer/searchbox/searchbox.h',
258 'renderer/searchbox/searchbox_extension.cc',
259 'renderer/searchbox/searchbox_extension.h',
260 'renderer/security_filter_peer.cc',
261 'renderer/security_filter_peer.h',
262 'renderer/spellchecker/cocoa_spelling_engine_mac.cc',
263 'renderer/spellchecker/cocoa_spelling_engine_mac.h',
264 'renderer/spellchecker/custom_dictionary_engine.cc',
265 'renderer/spellchecker/custom_dictionary_engine.h',
266 'renderer/spellchecker/hunspell_engine.cc',
267 'renderer/spellchecker/hunspell_engine.h',
268 'renderer/spellchecker/spellcheck_provider.cc',
269 'renderer/spellchecker/spellcheck_provider.h',
270 'renderer/spellchecker/spellcheck.cc',
271 'renderer/spellchecker/spellcheck.h',
272 'renderer/spellchecker/spellcheck_language.cc',
273 'renderer/spellchecker/spellcheck_language.h',
274 'renderer/spellchecker/spellcheck_worditerator.cc',
275 'renderer/spellchecker/spellcheck_worditerator.h',
276 'renderer/spellchecker/spelling_engine.h',
277 'renderer/tts_dispatcher.cc',
278 'renderer/tts_dispatcher.h',
279 'renderer/translate/translate_helper.cc',
280 'renderer/translate/translate_helper.h',
281 'renderer/web_apps.cc',
282 'renderer/web_apps.h',
283 'renderer/webview_color_overlay.cc',
284 'renderer/webview_color_overlay.h',
285 'renderer/worker_permission_client_proxy.cc',
286 'renderer/worker_permission_client_proxy.h',
289 ['disable_nacl!=1', {
291 '../components/nacl.gyp:nacl',
292 '../components/nacl.gyp:nacl_renderer',
295 ['enable_plugins==1', {
297 '../ppapi/ppapi_internal.gyp:ppapi_host',
298 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
299 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
300 '../ppapi/ppapi_internal.gyp:ppapi_shared',
302 }, { # enable_plugins==0
304 ['exclude', '^renderer/pepper/'],
307 ['safe_browsing==1', {
309 'FULL_SAFE_BROWSING',
312 'safe_browsing_proto',
313 '../third_party/smhasher/smhasher.gyp:murmurhash3',
315 }, { # safe_browsing==0 || safe_browsing==2
317 ['exclude', '^renderer/safe_browsing/'],
320 ['enable_extensions==0', {
322 'renderer/extensions/chrome_extensions_render_frame_observer.cc',
323 'renderer/extensions/chrome_extensions_render_frame_observer.h',
326 ['enable_webrtc==0', {
328 'renderer/extensions/cast_streaming_native_handler.cc',
329 'renderer/extensions/cast_streaming_native_handler.h',
330 'renderer/media/chrome_webrtc_log_message_delegate.cc',
331 'renderer/media/chrome_webrtc_log_message_delegate.h',
332 'renderer/media/webrtc_logging_message_filter.cc',
333 'renderer/media/webrtc_logging_message_filter.h',
336 ['enable_spellcheck==0', {
338 ['exclude', '^renderer/spellchecker/']
341 '../third_party/hunspell/hunspell.gyp:hunspell',
346 '../third_party/mach_override/mach_override.gyp:mach_override',
349 ['enable_printing==0', {
351 ['exclude', '^renderer/printing/']
354 ['win_pdf_metafile_for_printing', {
356 'renderer/printing/print_web_view_helper_pdf_win.cc',
360 'renderer/printing/print_web_view_helper_win.cc',
365 'renderer/extensions/app_window_custom_bindings.cc',
366 'renderer/extensions/chrome_v8_extension_handler.cc',
367 'renderer/extensions/file_browser_handler_custom_bindings.cc',
368 'renderer/extensions/page_actions_custom_bindings.cc',
369 'renderer/extensions/tabs_custom_bindings.cc',
370 'renderer/extensions/tts_custom_bindings.cc',
371 'renderer/prerender/prerender_media_load_deferrer.cc',
372 'renderer/prerender/prerender_media_load_deferrer.h',
377 '../chrome_elf/chrome_elf.gyp:chrome_elf',
380 '<(DEPTH)/third_party/wtl/include',
383 ['win_use_allocator_shim==1', {
385 '<(allocator_target)',
387 'export_dependent_settings': [
388 '<(allocator_target)',
395 # TODO(hclam): See crbug.com/298380 for details.
396 # We should isolate the APIs needed by the renderer.
397 '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
400 ['enable_printing!=0', {
402 '../printing/printing.gyp:printing',