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