• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5{
6  'targets': [
7    {
8      'target_name': 'renderer',
9      'type': 'static_library',
10      'variables': { 'enable_wexit_time_destructors': 1, },
11      'dependencies': [
12        'common',
13        'common_net',
14        'chrome_resources.gyp:chrome_resources',
15        'chrome_resources.gyp:chrome_strings',
16        '../components/components.gyp:autofill_content_renderer',
17        '../components/components.gyp:startup_metric_utils',
18        '../components/components.gyp:plugins_renderer',
19        '../components/components.gyp:translate_common',
20        '../components/components.gyp:translate_language_detection',
21        '../components/components.gyp:visitedlink_renderer',
22        '../content/content.gyp:content_renderer',
23        '../media/cast/cast.gyp:cast_config',
24        '../media/cast/cast_sender.gyp:cast_sender',
25        '../net/net.gyp:net',
26        '../skia/skia.gyp:skia',
27        '../third_party/WebKit/public/blink.gyp:blink',
28        '../third_party/hunspell/hunspell.gyp:hunspell',
29        '../third_party/icu/icu.gyp:icui18n',
30        '../third_party/icu/icu.gyp:icuuc',
31        '../third_party/npapi/npapi.gyp:npapi',
32        '../third_party/re2/re2.gyp:re2',
33        '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
34        '../ui/surface/surface.gyp:surface',
35        '../webkit/child/webkit_child.gyp:webkit_child',
36        '../webkit/common/webkit_common.gyp:webkit_common',
37        '../webkit/glue/webkit_glue.gyp:glue',
38        '../webkit/renderer/webkit_renderer.gyp:webkit_renderer',
39        '../webkit/webkit_resources.gyp:webkit_resources',
40      ],
41      'include_dirs': [
42        '..',
43        # Needed by chrome_content_renderer_client.cc.
44        '<(SHARED_INTERMEDIATE_DIR)',
45      ],
46      'sources': [
47        'renderer/benchmarking_extension.cc',
48        'renderer/benchmarking_extension.h',
49        'renderer/extensions/activity_log_converter_strategy.cc',
50        'renderer/extensions/activity_log_converter_strategy.h',
51        'renderer/extensions/api_activity_logger.cc',
52        'renderer/extensions/api_activity_logger.h',
53        'renderer/extensions/api_definitions_natives.cc',
54        'renderer/extensions/api_definitions_natives.h',
55        'renderer/extensions/app_bindings.cc',
56        'renderer/extensions/app_bindings.h',
57        'renderer/extensions/app_runtime_custom_bindings.cc',
58        'renderer/extensions/app_runtime_custom_bindings.h',
59        'renderer/extensions/app_window_custom_bindings.cc',
60        'renderer/extensions/app_window_custom_bindings.h',
61        'renderer/extensions/binding_generating_native_handler.cc',
62        'renderer/extensions/binding_generating_native_handler.h',
63        'renderer/extensions/blob_native_handler.cc',
64        'renderer/extensions/blob_native_handler.h',
65        'renderer/extensions/cast_streaming_native_handler.cc',
66        'renderer/extensions/cast_streaming_native_handler.h',
67        'renderer/extensions/chrome_v8_context.cc',
68        'renderer/extensions/chrome_v8_context.h',
69        'renderer/extensions/chrome_v8_context_set.cc',
70        'renderer/extensions/chrome_v8_context_set.h',
71        'renderer/extensions/chrome_v8_extension.cc',
72        'renderer/extensions/chrome_v8_extension.h',
73        'renderer/extensions/chrome_v8_extension_handler.cc',
74        'renderer/extensions/chrome_v8_extension_handler.h',
75        'renderer/extensions/console.cc',
76        'renderer/extensions/console.h',
77        'renderer/extensions/content_watcher.cc',
78        'renderer/extensions/content_watcher.h',
79        'renderer/extensions/context_menus_custom_bindings.cc',
80        'renderer/extensions/context_menus_custom_bindings.h',
81        'renderer/extensions/css_native_handler.cc',
82        'renderer/extensions/css_native_handler.h',
83        'renderer/extensions/dispatcher.cc',
84        'renderer/extensions/dispatcher.h',
85        'renderer/extensions/document_custom_bindings.cc',
86        'renderer/extensions/document_custom_bindings.h',
87        'renderer/extensions/dom_activity_logger.cc',
88        'renderer/extensions/dom_activity_logger.h',
89        'renderer/extensions/event_bindings.cc',
90        'renderer/extensions/event_bindings.h',
91        'renderer/extensions/extension_groups.h',
92        'renderer/extensions/extension_helper.cc',
93        'renderer/extensions/extension_helper.h',
94        'renderer/extensions/extension_localization_peer.cc',
95        'renderer/extensions/extension_localization_peer.h',
96        'renderer/extensions/file_browser_handler_custom_bindings.cc',
97        'renderer/extensions/file_browser_handler_custom_bindings.h',
98        'renderer/extensions/file_browser_private_custom_bindings.cc',
99        'renderer/extensions/file_browser_private_custom_bindings.h',
100        'renderer/extensions/file_system_natives.cc',
101        'renderer/extensions/file_system_natives.h',
102        'renderer/extensions/i18n_custom_bindings.cc',
103        'renderer/extensions/i18n_custom_bindings.h',
104        'renderer/extensions/id_generator_custom_bindings.cc',
105        'renderer/extensions/id_generator_custom_bindings.h',
106        'renderer/extensions/logging_native_handler.cc',
107        'renderer/extensions/logging_native_handler.h',
108        'renderer/extensions/media_galleries_custom_bindings.cc',
109        'renderer/extensions/media_galleries_custom_bindings.h',
110        'renderer/extensions/messaging_bindings.cc',
111        'renderer/extensions/messaging_bindings.h',
112        'renderer/extensions/module_system.cc',
113        'renderer/extensions/module_system.h',
114        'renderer/extensions/native_handler.cc',
115        'renderer/extensions/native_handler.h',
116        'renderer/extensions/object_backed_native_handler.cc',
117        'renderer/extensions/object_backed_native_handler.h',
118        'renderer/extensions/page_actions_custom_bindings.cc',
119        'renderer/extensions/page_actions_custom_bindings.h',
120        'renderer/extensions/page_capture_custom_bindings.cc',
121        'renderer/extensions/page_capture_custom_bindings.h',
122        'renderer/extensions/pepper_request_natives.cc',
123        'renderer/extensions/pepper_request_natives.h',
124        'renderer/extensions/pepper_request_proxy.cc',
125        'renderer/extensions/pepper_request_proxy.h',
126        'renderer/extensions/renderer_permissions_policy_delegate.cc',
127        'renderer/extensions/renderer_permissions_policy_delegate.h',
128        'renderer/extensions/render_view_observer_natives.cc',
129        'renderer/extensions/render_view_observer_natives.h',
130        'renderer/extensions/request_sender.cc',
131        'renderer/extensions/request_sender.h',
132        'renderer/extensions/resource_request_policy.cc',
133        'renderer/extensions/resource_request_policy.h',
134        'renderer/extensions/runtime_custom_bindings.cc',
135        'renderer/extensions/runtime_custom_bindings.h',
136        'renderer/extensions/safe_builtins.cc',
137        'renderer/extensions/safe_builtins.h',
138        'renderer/extensions/scoped_persistent.h',
139        'renderer/extensions/send_request_natives.cc',
140        'renderer/extensions/send_request_natives.h',
141        'renderer/extensions/set_icon_natives.cc',
142        'renderer/extensions/set_icon_natives.h',
143        'renderer/extensions/sync_file_system_custom_bindings.cc',
144        'renderer/extensions/sync_file_system_custom_bindings.h',
145        'renderer/extensions/tab_finder.cc',
146        'renderer/extensions/tab_finder.h',
147        'renderer/extensions/tabs_custom_bindings.cc',
148        'renderer/extensions/tabs_custom_bindings.h',
149        'renderer/extensions/unsafe_persistent.h',
150        'renderer/extensions/user_script_scheduler.cc',
151        'renderer/extensions/user_script_scheduler.h',
152        'renderer/extensions/user_script_slave.cc',
153        'renderer/extensions/user_script_slave.h',
154        'renderer/extensions/v8_schema_registry.cc',
155        'renderer/extensions/v8_schema_registry.h',
156        'renderer/extensions/webstore_bindings.cc',
157        'renderer/extensions/webstore_bindings.h',
158        'renderer/isolated_world_ids.h',
159        'renderer/loadtimes_extension_bindings.cc',
160        'renderer/loadtimes_extension_bindings.h',
161        'renderer/media/cast_rtp_stream.cc',
162        'renderer/media/cast_rtp_stream.h',
163        'renderer/media/cast_session.cc',
164        'renderer/media/cast_session.h',
165        'renderer/media/cast_session_delegate.cc',
166        'renderer/media/cast_session_delegate.h',
167        'renderer/media/cast_udp_transport.cc',
168        'renderer/media/cast_udp_transport.h',
169        'renderer/media/chrome_key_systems.cc',
170        'renderer/media/chrome_key_systems.h',
171        'renderer/media/chrome_webrtc_log_message_delegate.cc',
172        'renderer/media/chrome_webrtc_log_message_delegate.h',
173        'renderer/media/webrtc_logging_message_filter.cc',
174        'renderer/media/webrtc_logging_message_filter.h',
175        'renderer/net/net_error_helper.cc',
176        'renderer/net/net_error_helper.h',
177        'renderer/net/predictor_queue.cc',
178        'renderer/net/predictor_queue.h',
179        'renderer/net/prescient_networking_dispatcher.cc',
180        'renderer/net/prescient_networking_dispatcher.h',
181        'renderer/net/renderer_net_predictor.cc',
182        'renderer/net/renderer_net_predictor.h',
183        'renderer/net_benchmarking_extension.cc',
184        'renderer/net_benchmarking_extension.h',
185        'renderer/playback_extension.cc',
186        'renderer/playback_extension.h',
187        'renderer/principals_extension_bindings.cc',
188        'renderer/principals_extension_bindings.h',
189        'renderer/resource_bundle_source_map.cc',
190        'renderer/resource_bundle_source_map.h',
191        'renderer/resources/extensions/app_custom_bindings.js',
192        'renderer/resources/extensions/app_window_custom_bindings.js',
193        'renderer/resources/extensions/binding.js',
194        'renderer/resources/extensions/browser_action_custom_bindings.js',
195        'renderer/resources/extensions/chrome_direct_setting.js',
196        'renderer/resources/extensions/chrome_setting.js',
197        'renderer/resources/extensions/content_setting.js',
198        'renderer/resources/extensions/context_menus_custom_bindings.js',
199        'renderer/resources/extensions/declarative_content_custom_bindings.js',
200        'renderer/resources/extensions/declarative_webrequest_custom_bindings.js',
201        'renderer/resources/extensions/event.js',
202        'renderer/resources/extensions/experimental.offscreenTabs_custom_bindings.js',
203        'renderer/resources/extensions/extension_custom_bindings.js',
204        'renderer/resources/extensions/feedback_private_custom_bindings.js',
205        'renderer/resources/extensions/file_browser_handler_custom_bindings.js',
206        'renderer/resources/extensions/file_browser_private_custom_bindings.js',
207        'renderer/resources/extensions/file_system_custom_bindings.js',
208        'renderer/resources/extensions/file_system_provider_custom_bindings.js',
209        'renderer/resources/extensions/gcm_custom_bindings.js',
210        'renderer/resources/extensions/greasemonkey_api.js',
211        'renderer/resources/extensions/identity_custom_bindings.js',
212        'renderer/resources/extensions/image_writer_private_custom_bindings.js',
213        'renderer/resources/extensions/input.ime_custom_bindings.js',
214        'renderer/resources/extensions/json_schema.js',
215        'renderer/resources/extensions/last_error.js',
216        'renderer/resources/extensions/messaging.js',
217        'renderer/resources/extensions/messaging_utils.js',
218        'renderer/resources/extensions/notifications_custom_bindings.js',
219        'renderer/resources/extensions/omnibox_custom_bindings.js',
220        'renderer/resources/extensions/page_action_custom_bindings.js',
221        'renderer/resources/extensions/page_actions_custom_bindings.js',
222        'renderer/resources/extensions/page_capture_custom_bindings.js',
223        'renderer/resources/extensions/platform_app.js',
224        'renderer/resources/extensions/pepper_request.js',
225        'renderer/resources/extensions/runtime_custom_bindings.js',
226        'renderer/resources/extensions/send_request.js',
227        'renderer/resources/extensions/set_icon.js',
228        'renderer/resources/extensions/storage_area.js',
229        'renderer/resources/extensions/system_indicator_custom_bindings.js',
230        'renderer/resources/extensions/test_custom_bindings.js',
231        'renderer/resources/extensions/tts_custom_bindings.js',
232        'renderer/resources/extensions/tts_engine_custom_bindings.js',
233        'renderer/resources/extensions/unload_event.js',
234        'renderer/resources/extensions/utils.js',
235        'renderer/resources/extensions/web_request_custom_bindings.js',
236        'renderer/resources/extensions/web_view.js',
237        'renderer/resources/extensions/web_view_experimental.js',
238        'renderer/chrome_content_renderer_client.cc',
239        'renderer/chrome_content_renderer_client.h',
240        'renderer/chrome_render_frame_observer.cc',
241        'renderer/chrome_render_frame_observer.h',
242        'renderer/chrome_render_process_observer.cc',
243        'renderer/chrome_render_process_observer.h',
244        'renderer/chrome_render_view_observer.cc',
245        'renderer/chrome_render_view_observer.h',
246        'renderer/content_settings_observer.cc',
247        'renderer/content_settings_observer.h',
248        'renderer/custom_menu_commands.h',
249        'renderer/external_host_bindings.cc',
250        'renderer/external_host_bindings.h',
251        'renderer/external_extension.cc',
252        'renderer/external_extension.h',
253        'renderer/page_load_histograms.cc',
254        'renderer/page_load_histograms.h',
255        'renderer/pepper/chrome_renderer_pepper_host_factory.cc',
256        'renderer/pepper/chrome_renderer_pepper_host_factory.h',
257        'renderer/pepper/pepper_extensions_common_host.cc',
258        'renderer/pepper/pepper_extensions_common_host.h',
259        'renderer/pepper/pepper_flash_drm_renderer_host.cc',
260        'renderer/pepper/pepper_flash_drm_renderer_host.h',
261        'renderer/pepper/pepper_flash_font_file_host.cc',
262        'renderer/pepper/pepper_flash_font_file_host.h',
263        'renderer/pepper/pepper_flash_fullscreen_host.cc',
264        'renderer/pepper/pepper_flash_fullscreen_host.h',
265        'renderer/pepper/pepper_flash_menu_host.cc',
266        'renderer/pepper/pepper_flash_menu_host.h',
267        'renderer/pepper/pepper_flash_renderer_host.cc',
268        'renderer/pepper/pepper_flash_renderer_host.h',
269        'renderer/pepper/pepper_helper.cc',
270        'renderer/pepper/pepper_helper.h',
271        'renderer/pepper/pepper_pdf_host.cc',
272        'renderer/pepper/pepper_pdf_host.h',
273        'renderer/pepper/pepper_shared_memory_message_filter.cc',
274        'renderer/pepper/pepper_shared_memory_message_filter.h',
275        'renderer/pepper/ppb_pdf_impl.cc',
276        'renderer/pepper/ppb_pdf_impl.h',
277        'renderer/plugins/chrome_plugin_placeholder.cc',
278        'renderer/plugins/chrome_plugin_placeholder.h',
279        'renderer/plugins/plugin_uma.cc',
280        'renderer/plugins/plugin_uma.h',
281        'renderer/prerender/prerender_dispatcher.cc',
282        'renderer/prerender/prerender_dispatcher.h',
283        'renderer/prerender/prerender_extra_data.cc',
284        'renderer/prerender/prerender_extra_data.h',
285        'renderer/prerender/prerender_helper.cc',
286        'renderer/prerender/prerender_helper.h',
287        'renderer/prerender/prerender_media_load_deferrer.cc',
288        'renderer/prerender/prerender_media_load_deferrer.h',
289        'renderer/prerender/prerenderer_client.cc',
290        'renderer/prerender/prerenderer_client.h',
291        'renderer/printing/print_web_view_helper.cc',
292        'renderer/printing/print_web_view_helper.h',
293        'renderer/printing/print_web_view_helper_android.cc',
294        'renderer/printing/print_web_view_helper_linux.cc',
295        'renderer/printing/print_web_view_helper_mac.mm',
296        'renderer/printing/print_web_view_helper_win.cc',
297        'renderer/safe_browsing/feature_extractor_clock.cc',
298        'renderer/safe_browsing/feature_extractor_clock.h',
299        'renderer/safe_browsing/features.cc',
300        'renderer/safe_browsing/features.h',
301        'renderer/safe_browsing/malware_dom_details.cc',
302        'renderer/safe_browsing/malware_dom_details.h',
303        'renderer/safe_browsing/murmurhash3_util.cc',
304        'renderer/safe_browsing/murmurhash3_util.h',
305        'renderer/safe_browsing/phishing_classifier.cc',
306        'renderer/safe_browsing/phishing_classifier.h',
307        'renderer/safe_browsing/phishing_classifier_delegate.cc',
308        'renderer/safe_browsing/phishing_classifier_delegate.h',
309        'renderer/safe_browsing/phishing_dom_feature_extractor.cc',
310        'renderer/safe_browsing/phishing_dom_feature_extractor.h',
311        'renderer/safe_browsing/phishing_term_feature_extractor.cc',
312        'renderer/safe_browsing/phishing_term_feature_extractor.h',
313        'renderer/safe_browsing/phishing_url_feature_extractor.cc',
314        'renderer/safe_browsing/phishing_url_feature_extractor.h',
315        'renderer/safe_browsing/scorer.cc',
316        'renderer/safe_browsing/scorer.h',
317        'renderer/searchbox/search_bouncer.cc',
318        'renderer/searchbox/search_bouncer.h',
319        'renderer/searchbox/searchbox.cc',
320        'renderer/searchbox/searchbox.h',
321        'renderer/searchbox/searchbox_extension.cc',
322        'renderer/searchbox/searchbox_extension.h',
323        'renderer/security_filter_peer.cc',
324        'renderer/security_filter_peer.h',
325        'renderer/spellchecker/cocoa_spelling_engine_mac.cc',
326        'renderer/spellchecker/cocoa_spelling_engine_mac.h',
327        'renderer/spellchecker/custom_dictionary_engine.cc',
328        'renderer/spellchecker/custom_dictionary_engine.h',
329        'renderer/spellchecker/hunspell_engine.cc',
330        'renderer/spellchecker/hunspell_engine.h',
331        'renderer/spellchecker/spellcheck_provider.cc',
332        'renderer/spellchecker/spellcheck_provider.h',
333        'renderer/spellchecker/spellcheck.cc',
334        'renderer/spellchecker/spellcheck.h',
335        'renderer/spellchecker/spellcheck_language.cc',
336        'renderer/spellchecker/spellcheck_language.h',
337        'renderer/spellchecker/spellcheck_worditerator.cc',
338        'renderer/spellchecker/spellcheck_worditerator.h',
339        'renderer/spellchecker/spelling_engine.h',
340        'renderer/static_v8_external_string_resource.cc',
341        'renderer/static_v8_external_string_resource.h',
342        'renderer/tts_dispatcher.cc',
343        'renderer/tts_dispatcher.h',
344        'renderer/translate/translate_helper.cc',
345        'renderer/translate/translate_helper.h',
346        'renderer/web_apps.cc',
347        'renderer/web_apps.h',
348        'renderer/webview_color_overlay.cc',
349        'renderer/webview_color_overlay.h',
350        'renderer/worker_permission_client_proxy.cc',
351        'renderer/worker_permission_client_proxy.h',
352      ],
353      'conditions': [
354        ['disable_nacl!=1', {
355          'dependencies': [
356            '../components/nacl.gyp:nacl',
357            '../components/nacl.gyp:nacl_renderer',
358          ],
359        }],
360        ['enable_plugins==1', {
361          'dependencies': [
362            '../ppapi/ppapi_internal.gyp:ppapi_host',
363            '../ppapi/ppapi_internal.gyp:ppapi_proxy',
364            '../ppapi/ppapi_internal.gyp:ppapi_ipc',
365            '../ppapi/ppapi_internal.gyp:ppapi_shared',
366          ],
367        }, {  # enable_plugins==0
368          'sources/': [
369            ['exclude', '^renderer/pepper/'],
370          ],
371        }],
372        ['safe_browsing==1', {
373          'defines': [
374            'FULL_SAFE_BROWSING',
375          ],
376          'dependencies': [
377            'safe_browsing_proto',
378            '../third_party/smhasher/smhasher.gyp:murmurhash3',
379          ],
380        }, {  # safe_browsing==0 || safe_browsing==2
381          'sources/': [
382            ['exclude', '^renderer/safe_browsing/'],
383          ],
384        }],
385        ['enable_webrtc==0', {
386          'sources!': [
387            'renderer/extensions/cast_streaming_native_handler.cc',
388            'renderer/extensions/cast_streaming_native_handler.h',
389            'renderer/media/chrome_webrtc_log_message_delegate.cc',
390            'renderer/media/chrome_webrtc_log_message_delegate.h',
391            'renderer/media/webrtc_logging_message_filter.cc',
392            'renderer/media/webrtc_logging_message_filter.h',
393          ],
394        }],
395        ['enable_spellcheck==0', {
396          'sources/': [
397            ['exclude', '^renderer/spellchecker/']
398          ],
399          'dependencies!': [
400            '../third_party/hunspell/hunspell.gyp:hunspell',
401          ],
402        }],
403        ['OS=="mac"', {
404          'dependencies': [
405            '../third_party/mach_override/mach_override.gyp:mach_override',
406          ],
407        }],
408        ['toolkit_uses_gtk == 1', {
409          'dependencies': [
410            '../build/linux/system.gyp:gtk',
411            '../sandbox/sandbox.gyp:sandbox',
412          ],
413        }],
414        ['enable_automation==0', {
415          'sources/': [
416            ['exclude', '^renderer/automation/']
417          ]
418        }],
419        ['enable_printing==0', {
420          'sources/': [
421            ['exclude', '^renderer/printing/']
422          ]
423        }],
424        ['OS=="android"', {
425          'sources!': [
426            'renderer/prerender/prerender_media_load_deferrer.cc',
427            'renderer/prerender/prerender_media_load_deferrer.h',
428            'renderer/extensions/api_definitions_natives.cc',
429            'renderer/extensions/app_window_custom_bindings.cc',
430            'renderer/extensions/chrome_v8_extension.cc',
431            'renderer/extensions/chrome_v8_extension_handler.cc',
432            'renderer/extensions/context_menus_custom_bindings.cc',
433            'renderer/extensions/file_browser_handler_custom_bindings.cc',
434            'renderer/extensions/page_actions_custom_bindings.cc',
435            'renderer/extensions/render_view_observer_natives.cc',
436            'renderer/extensions/send_request_natives.cc',
437            'renderer/extensions/tabs_custom_bindings.cc',
438            'renderer/extensions/tts_custom_bindings.cc',
439          ],
440          'conditions' : [
441            ['google_tv==1', {
442              'sources!' : [
443                'renderer/media/chrome_key_systems.cc',
444              ]
445            }],
446          ],
447        }],
448        ['OS=="win"', {
449          'include_dirs': [
450            '<(DEPTH)/third_party/wtl/include',
451          ],
452          'conditions': [
453            ['win_use_allocator_shim==1', {
454              'dependencies': [
455                '<(allocator_target)',
456              ],
457              'export_dependent_settings': [
458                '<(allocator_target)',
459              ],
460            }],
461          ],
462        }],
463        ['OS != "ios"', {
464          'dependencies': [
465            # TODO(hclam): See crbug.com/298380 for details.
466            # We should isolate the APIs needed by the renderer.
467            '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
468          ],
469        }],
470        ['enable_printing!=0', {
471          'dependencies': [
472            '../printing/printing.gyp:printing',
473          ],
474        }],
475      ],
476    },
477  ],
478}
479