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