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 '../components/components.gyp:visitedlink_renderer',
17 '../content/content.gyp:content_renderer',
19 '../printing/printing.gyp:printing',
20 '../skia/skia.gyp:skia',
21 '../third_party/hunspell/hunspell.gyp:hunspell',
22 '../third_party/icu/icu.gyp:icui18n',
23 '../third_party/icu/icu.gyp:icuuc',
24 '../third_party/npapi/npapi.gyp:npapi',
25 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
26 '../ui/surface/surface.gyp:surface',
27 '../webkit/gpu/webkit_gpu.gyp:webkit_gpu',
28 '../webkit/support/webkit_support.gyp:glue',
29 '../webkit/support/webkit_support.gyp:webkit_media',
30 '../webkit/support/webkit_support.gyp:webkit_resources',
38 'direct_dependent_settings': {
44 'renderer/automation/automation_renderer_helper.cc',
45 'renderer/automation/automation_renderer_helper.h',
46 'renderer/benchmarking_extension.cc',
47 'renderer/benchmarking_extension.h',
48 'renderer/extensions/api_definitions_natives.cc',
49 'renderer/extensions/api_definitions_natives.h',
50 'renderer/extensions/app_bindings.cc',
51 'renderer/extensions/app_bindings.h',
52 'renderer/extensions/app_runtime_custom_bindings.cc',
53 'renderer/extensions/app_runtime_custom_bindings.h',
54 'renderer/extensions/app_window_custom_bindings.cc',
55 'renderer/extensions/app_window_custom_bindings.h',
56 'renderer/extensions/binding_generating_native_handler.cc',
57 'renderer/extensions/binding_generating_native_handler.h',
58 'renderer/extensions/chrome_v8_context.cc',
59 'renderer/extensions/chrome_v8_context.h',
60 'renderer/extensions/chrome_v8_context_set.cc',
61 'renderer/extensions/chrome_v8_context_set.h',
62 'renderer/extensions/chrome_v8_extension.cc',
63 'renderer/extensions/chrome_v8_extension.h',
64 'renderer/extensions/chrome_v8_extension_handler.cc',
65 'renderer/extensions/chrome_v8_extension_handler.h',
66 'renderer/extensions/console.cc',
67 'renderer/extensions/console.h',
68 'renderer/extensions/content_watcher.cc',
69 'renderer/extensions/content_watcher.h',
70 'renderer/extensions/context_menus_custom_bindings.cc',
71 'renderer/extensions/context_menus_custom_bindings.h',
72 'renderer/extensions/dispatcher.cc',
73 'renderer/extensions/dispatcher.h',
74 'renderer/extensions/dom_activity_logger.cc',
75 'renderer/extensions/dom_activity_logger.h',
76 'renderer/extensions/event_bindings.cc',
77 'renderer/extensions/event_bindings.h',
78 'renderer/extensions/extension_custom_bindings.cc',
79 'renderer/extensions/extension_custom_bindings.h',
80 'renderer/extensions/extension_groups.h',
81 'renderer/extensions/extension_helper.cc',
82 'renderer/extensions/extension_helper.h',
83 'renderer/extensions/file_browser_handler_custom_bindings.cc',
84 'renderer/extensions/file_browser_handler_custom_bindings.h',
85 'renderer/extensions/file_browser_private_custom_bindings.cc',
86 'renderer/extensions/file_browser_private_custom_bindings.h',
87 'renderer/extensions/file_system_natives.cc',
88 'renderer/extensions/file_system_natives.h',
89 'renderer/extensions/i18n_custom_bindings.cc',
90 'renderer/extensions/i18n_custom_bindings.h',
91 'renderer/extensions/media_galleries_custom_bindings.cc',
92 'renderer/extensions/media_galleries_custom_bindings.h',
93 'renderer/extensions/miscellaneous_bindings.cc',
94 'renderer/extensions/miscellaneous_bindings.h',
95 'renderer/extensions/module_system.cc',
96 'renderer/extensions/module_system.h',
97 'renderer/extensions/native_handler.cc',
98 'renderer/extensions/native_handler.h',
99 'renderer/extensions/object_backed_native_handler.cc',
100 'renderer/extensions/object_backed_native_handler.h',
101 'renderer/extensions/page_actions_custom_bindings.cc',
102 'renderer/extensions/page_actions_custom_bindings.h',
103 'renderer/extensions/page_capture_custom_bindings.cc',
104 'renderer/extensions/page_capture_custom_bindings.h',
105 'renderer/extensions/request_sender.cc',
106 'renderer/extensions/request_sender.h',
107 'renderer/extensions/resource_request_policy.cc',
108 'renderer/extensions/resource_request_policy.h',
109 'renderer/extensions/runtime_custom_bindings.cc',
110 'renderer/extensions/runtime_custom_bindings.h',
111 'renderer/extensions/scoped_persistent.h',
112 'renderer/extensions/send_request_natives.cc',
113 'renderer/extensions/send_request_natives.h',
114 'renderer/extensions/set_icon_natives.cc',
115 'renderer/extensions/set_icon_natives.h',
116 'renderer/extensions/sync_file_system_custom_bindings.cc',
117 'renderer/extensions/sync_file_system_custom_bindings.h',
118 'renderer/extensions/tab_finder.cc',
119 'renderer/extensions/tab_finder.h',
120 'renderer/extensions/tabs_custom_bindings.cc',
121 'renderer/extensions/tabs_custom_bindings.h',
122 'renderer/extensions/tts_custom_bindings.cc',
123 'renderer/extensions/tts_custom_bindings.h',
124 'renderer/extensions/user_script_scheduler.cc',
125 'renderer/extensions/user_script_scheduler.h',
126 'renderer/extensions/user_script_slave.cc',
127 'renderer/extensions/user_script_slave.h',
128 'renderer/extensions/v8_schema_registry.cc',
129 'renderer/extensions/v8_schema_registry.h',
130 'renderer/extensions/web_request_custom_bindings.cc',
131 'renderer/extensions/web_request_custom_bindings.h',
132 'renderer/extensions/webstore_bindings.cc',
133 'renderer/extensions/webstore_bindings.h',
134 'renderer/frame_sniffer.cc',
135 'renderer/frame_sniffer.h',
136 'renderer/loadtimes_extension_bindings.cc',
137 'renderer/loadtimes_extension_bindings.h',
138 'renderer/net/net_error_helper.cc',
139 'renderer/net/net_error_helper.h',
140 'renderer/net/predictor_queue.cc',
141 'renderer/net/predictor_queue.h',
142 'renderer/net/renderer_net_predictor.cc',
143 'renderer/net/renderer_net_predictor.h',
144 'renderer/net_benchmarking_extension.cc',
145 'renderer/net_benchmarking_extension.h',
146 'renderer/one_click_signin_agent.cc',
147 'renderer/one_click_signin_agent.h',
148 'renderer/playback_extension.cc',
149 'renderer/playback_extension.h',
150 'renderer/resource_bundle_source_map.cc',
151 'renderer/resource_bundle_source_map.h',
152 'renderer/resources/extensions/app_custom_bindings.js',
153 'renderer/resources/extensions/app_window_custom_bindings.js',
154 'renderer/resources/extensions/binding.js',
155 'renderer/resources/extensions/browser_action_custom_bindings.js',
156 'renderer/resources/extensions/content_watcher.js',
157 'renderer/resources/extensions/context_menus_custom_bindings.js',
158 'renderer/resources/extensions/declarative_content_custom_bindings.js',
159 'renderer/resources/extensions/declarative_webrequest_custom_bindings.js',
160 'renderer/resources/extensions/event.js',
161 'renderer/resources/extensions/experimental.offscreenTabs_custom_bindings.js',
162 'renderer/resources/extensions/extension_custom_bindings.js',
163 'renderer/resources/extensions/file_browser_handler_custom_bindings.js',
164 'renderer/resources/extensions/file_browser_private_custom_bindings.js',
165 'renderer/resources/extensions/file_system_custom_bindings.js',
166 'renderer/resources/extensions/greasemonkey_api.js',
167 'renderer/resources/extensions/input.ime_custom_bindings.js',
168 'renderer/resources/extensions/json.js',
169 'renderer/resources/extensions/json_schema.js',
170 'renderer/resources/extensions/last_error.js',
171 'renderer/resources/extensions/miscellaneous_bindings.js',
172 'renderer/resources/extensions/notifications_custom_bindings.js',
173 'renderer/resources/extensions/omnibox_custom_bindings.js',
174 'renderer/resources/extensions/page_action_custom_bindings.js',
175 'renderer/resources/extensions/page_actions_custom_bindings.js',
176 'renderer/resources/extensions/page_capture_custom_bindings.js',
177 'renderer/resources/extensions/platform_app.js',
178 'renderer/resources/extensions/runtime_custom_bindings.js',
179 'renderer/resources/extensions/send_request.js',
180 'renderer/resources/extensions/set_icon.js',
181 'renderer/resources/extensions/system_indicator_custom_bindings.js',
182 'renderer/resources/extensions/test_custom_bindings.js',
183 'renderer/resources/extensions/tts_custom_bindings.js',
184 'renderer/resources/extensions/tts_engine_custom_bindings.js',
185 'renderer/resources/extensions/types_custom_bindings.js',
186 'renderer/resources/extensions/utils.js',
187 'renderer/resources/extensions/web_request_custom_bindings.js',
188 'renderer/resources/extensions/web_view.js',
189 'renderer/resources/extensions/web_view_experimental.js',
190 'renderer/chrome_content_renderer_client.cc',
191 'renderer/chrome_content_renderer_client.h',
192 'renderer/chrome_render_process_observer.cc',
193 'renderer/chrome_render_process_observer.h',
194 'renderer/chrome_render_view_observer.cc',
195 'renderer/chrome_render_view_observer.h',
196 'renderer/content_settings_observer.cc',
197 'renderer/content_settings_observer.h',
198 'renderer/custom_menu_commands.h',
199 'renderer/external_host_bindings.cc',
200 'renderer/external_host_bindings.h',
201 'renderer/external_extension.cc',
202 'renderer/external_extension.h',
203 'renderer/page_load_histograms.cc',
204 'renderer/page_load_histograms.h',
205 'renderer/pepper/chrome_ppapi_interfaces.cc',
206 'renderer/pepper/chrome_ppapi_interfaces.h',
207 'renderer/pepper/chrome_renderer_pepper_host_factory.cc',
208 'renderer/pepper/chrome_renderer_pepper_host_factory.h',
209 'renderer/pepper/pepper_flash_font_file_host.cc',
210 'renderer/pepper/pepper_flash_font_file_host.h',
211 'renderer/pepper/pepper_flash_fullscreen_host.cc',
212 'renderer/pepper/pepper_flash_fullscreen_host.h',
213 'renderer/pepper/pepper_flash_menu_host.cc',
214 'renderer/pepper/pepper_flash_menu_host.h',
215 'renderer/pepper/pepper_flash_renderer_host.cc',
216 'renderer/pepper/pepper_flash_renderer_host.h',
217 'renderer/pepper/pepper_helper.cc',
218 'renderer/pepper/pepper_helper.h',
219 'renderer/pepper/ppb_nacl_private_impl.cc',
220 'renderer/pepper/ppb_nacl_private_impl.h',
221 'renderer/pepper/ppb_pdf_impl.cc',
222 'renderer/pepper/ppb_pdf_impl.h',
223 'renderer/plugins/plugin_placeholder.cc',
224 'renderer/plugins/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_webmediaplayer.cc',
234 'renderer/prerender/prerender_webmediaplayer.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_linux.cc',
240 'renderer/printing/print_web_view_helper_mac.mm',
241 'renderer/printing/print_web_view_helper_win.cc',
242 'renderer/safe_browsing/feature_extractor_clock.cc',
243 'renderer/safe_browsing/feature_extractor_clock.h',
244 'renderer/safe_browsing/features.cc',
245 'renderer/safe_browsing/features.h',
246 'renderer/safe_browsing/malware_dom_details.cc',
247 'renderer/safe_browsing/malware_dom_details.h',
248 'renderer/safe_browsing/murmurhash3_util.cc',
249 'renderer/safe_browsing/murmurhash3_util.h',
250 'renderer/safe_browsing/phishing_classifier.cc',
251 'renderer/safe_browsing/phishing_classifier.h',
252 'renderer/safe_browsing/phishing_classifier_delegate.cc',
253 'renderer/safe_browsing/phishing_classifier_delegate.h',
254 'renderer/safe_browsing/phishing_dom_feature_extractor.cc',
255 'renderer/safe_browsing/phishing_dom_feature_extractor.h',
256 'renderer/safe_browsing/phishing_term_feature_extractor.cc',
257 'renderer/safe_browsing/phishing_term_feature_extractor.h',
258 'renderer/safe_browsing/phishing_thumbnailer.cc',
259 'renderer/safe_browsing/phishing_thumbnailer.h',
260 'renderer/safe_browsing/phishing_url_feature_extractor.cc',
261 'renderer/safe_browsing/phishing_url_feature_extractor.h',
262 'renderer/safe_browsing/scorer.cc',
263 'renderer/safe_browsing/scorer.h',
264 'renderer/searchbox/searchbox.cc',
265 'renderer/searchbox/searchbox.h',
266 'renderer/searchbox/searchbox_extension.cc',
267 'renderer/searchbox/searchbox_extension.h',
268 'renderer/security_filter_peer.cc',
269 'renderer/security_filter_peer.h',
270 'renderer/spellchecker/cocoa_spelling_engine_mac.cc',
271 'renderer/spellchecker/cocoa_spelling_engine_mac.h',
272 'renderer/spellchecker/custom_dictionary_engine.cc',
273 'renderer/spellchecker/custom_dictionary_engine.h',
274 'renderer/spellchecker/hunspell_engine.cc',
275 'renderer/spellchecker/hunspell_engine.h',
276 'renderer/spellchecker/spellcheck_provider.cc',
277 'renderer/spellchecker/spellcheck_provider.h',
278 'renderer/spellchecker/spellcheck.cc',
279 'renderer/spellchecker/spellcheck.h',
280 'renderer/spellchecker/spellcheck_language.cc',
281 'renderer/spellchecker/spellcheck_language.h',
282 'renderer/spellchecker/spellcheck_worditerator.cc',
283 'renderer/spellchecker/spellcheck_worditerator.h',
284 'renderer/spellchecker/spelling_engine.h',
285 'renderer/static_v8_external_string_resource.cc',
286 'renderer/static_v8_external_string_resource.h',
287 'renderer/translate_helper.cc',
288 'renderer/translate_helper.h',
289 'renderer/webview_color_overlay.cc',
290 'renderer/webview_color_overlay.h',
292 # TODO(joi): Move to components/autofill.gypi once last
293 # remaining dependencies are broken.
294 '../components/autofill/renderer/autofill_agent.cc',
295 '../components/autofill/renderer/autofill_agent.h',
296 '../components/autofill/renderer/form_autofill_util.cc',
297 '../components/autofill/renderer/form_autofill_util.h',
298 '../components/autofill/renderer/form_cache.cc',
299 '../components/autofill/renderer/form_cache.h',
300 '../components/autofill/renderer/page_click_listener.h',
301 '../components/autofill/renderer/page_click_tracker.cc',
302 '../components/autofill/renderer/page_click_tracker.h',
303 '../components/autofill/renderer/password_autofill_manager.cc',
304 '../components/autofill/renderer/password_autofill_manager.h',
305 '../components/autofill/renderer/password_generation_manager.cc',
306 '../components/autofill/renderer/password_generation_manager.h',
309 ['disable_nacl!=1', {
314 ['enable_plugins==1', {
316 '../ppapi/ppapi_internal.gyp:ppapi_host',
317 '../ppapi/ppapi_internal.gyp:ppapi_proxy',
318 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
319 '../ppapi/ppapi_internal.gyp:ppapi_shared',
321 }, { # enable_plugins==0
323 ['exclude', '^renderer/pepper/'],
326 ['safe_browsing==1', {
328 'FULL_SAFE_BROWSING',
331 'safe_browsing_proto',
332 '../third_party/smhasher/smhasher.gyp:murmurhash3',
334 }, { # safe_browsing==0 || safe_browsing==2
336 ['exclude', '^renderer/safe_browsing/'],
341 '../third_party/mach_override/mach_override.gyp:mach_override',
344 ['enable_language_detection==1', {
346 '../third_party/cld/cld.gyp:cld',
349 '../third_party/cld',
352 ['toolkit_uses_gtk == 1', {
354 '../build/linux/system.gyp:gtk',
355 '../sandbox/sandbox.gyp:sandbox',
358 ['enable_automation==0', {
360 ['exclude', '^renderer/automation/']
365 'renderer/prerender/prerender_webmediaplayer.cc',
366 'renderer/prerender/prerender_webmediaplayer.h',
367 'renderer/printing/print_web_view_helper.cc',
370 'ENABLE_MOBILE_YOUTUBE_PLUGIN',
375 '<(DEPTH)/third_party/wtl/include',
378 ['win_use_allocator_shim==1', {
380 '<(allocator_target)',
382 'export_dependent_settings': [
383 '<(allocator_target)',