Add test for the TermsOfServiceURL policy
[chromium-blink-merge.git] / chrome / chrome_renderer.gypi
blob590ea66ddc031db8d9b35ab004b6448689f21cd0
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.
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:visitedlink_renderer',
18         '../content/content.gyp:content_renderer',
19         '../net/net.gyp:net',
20         '../printing/printing.gyp:printing',
21         '../skia/skia.gyp:skia',
22         '../third_party/hunspell/hunspell.gyp:hunspell',
23         '../third_party/icu/icu.gyp:icui18n',
24         '../third_party/icu/icu.gyp:icuuc',
25         '../third_party/npapi/npapi.gyp:npapi',
26         '../third_party/re2/re2.gyp:re2',
27         '../third_party/WebKit/public/blink.gyp:blink',
28         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
29         '../ui/surface/surface.gyp:surface',
30         '../webkit/support/webkit_support.gyp:glue',
31         '../webkit/support/webkit_support.gyp:glue_common',
32         '../webkit/support/webkit_support.gyp:glue_renderer',
33         '../webkit/support/webkit_support.gyp:plugins',
34         '../webkit/support/webkit_support.gyp:webkit_media',
35         '../webkit/support/webkit_support.gyp:webkit_resources',
36       ],
37       'include_dirs': [
38         '..',
39         # Needed by chrome_content_renderer_client.cc.
40         '<(SHARED_INTERMEDIATE_DIR)',
41       ],
42       'defines': [
43         '<@(nacl_defines)',
44       ],
45       'direct_dependent_settings': {
46         'defines': [
47           '<@(nacl_defines)',
48         ],
49       },
50       'sources': [
51         'renderer/benchmarking_extension.cc',
52         'renderer/benchmarking_extension.h',
53         'renderer/extensions/api_activity_logger.cc',
54         'renderer/extensions/api_activity_logger.h',
55         'renderer/extensions/api_definitions_natives.cc',
56         'renderer/extensions/api_definitions_natives.h',
57         'renderer/extensions/app_bindings.cc',
58         'renderer/extensions/app_bindings.h',
59         'renderer/extensions/app_runtime_custom_bindings.cc',
60         'renderer/extensions/app_runtime_custom_bindings.h',
61         'renderer/extensions/app_window_custom_bindings.cc',
62         'renderer/extensions/app_window_custom_bindings.h',
63         'renderer/extensions/binding_generating_native_handler.cc',
64         'renderer/extensions/binding_generating_native_handler.h',
65         'renderer/extensions/chrome_v8_context.cc',
66         'renderer/extensions/chrome_v8_context.h',
67         'renderer/extensions/chrome_v8_context_set.cc',
68         'renderer/extensions/chrome_v8_context_set.h',
69         'renderer/extensions/chrome_v8_extension.cc',
70         'renderer/extensions/chrome_v8_extension.h',
71         'renderer/extensions/chrome_v8_extension_handler.cc',
72         'renderer/extensions/chrome_v8_extension_handler.h',
73         'renderer/extensions/console.cc',
74         'renderer/extensions/console.h',
75         'renderer/extensions/content_watcher.cc',
76         'renderer/extensions/content_watcher.h',
77         'renderer/extensions/context_menus_custom_bindings.cc',
78         'renderer/extensions/context_menus_custom_bindings.h',
79         'renderer/extensions/dispatcher.cc',
80         'renderer/extensions/dispatcher.h',
81         'renderer/extensions/dom_activity_logger.cc',
82         'renderer/extensions/dom_activity_logger.h',
83         'renderer/extensions/event_bindings.cc',
84         'renderer/extensions/event_bindings.h',
85         'renderer/extensions/extension_custom_bindings.cc',
86         'renderer/extensions/extension_custom_bindings.h',
87         'renderer/extensions/extension_groups.h',
88         'renderer/extensions/extension_helper.cc',
89         'renderer/extensions/extension_helper.h',
90         'renderer/extensions/feedback_private_custom_bindings.cc',
91         'renderer/extensions/feedback_private_custom_bindings.h',
92         'renderer/extensions/file_browser_handler_custom_bindings.cc',
93         'renderer/extensions/file_browser_handler_custom_bindings.h',
94         'renderer/extensions/file_browser_private_custom_bindings.cc',
95         'renderer/extensions/file_browser_private_custom_bindings.h',
96         'renderer/extensions/file_system_natives.cc',
97         'renderer/extensions/file_system_natives.h',
98         'renderer/extensions/i18n_custom_bindings.cc',
99         'renderer/extensions/i18n_custom_bindings.h',
100         'renderer/extensions/logging_native_handler.cc',
101         'renderer/extensions/logging_native_handler.h',
102         'renderer/extensions/media_galleries_custom_bindings.cc',
103         'renderer/extensions/media_galleries_custom_bindings.h',
104         'renderer/extensions/miscellaneous_bindings.cc',
105         'renderer/extensions/miscellaneous_bindings.h',
106         'renderer/extensions/module_system.cc',
107         'renderer/extensions/module_system.h',
108         'renderer/extensions/native_handler.cc',
109         'renderer/extensions/native_handler.h',
110         'renderer/extensions/object_backed_native_handler.cc',
111         'renderer/extensions/object_backed_native_handler.h',
112         'renderer/extensions/page_actions_custom_bindings.cc',
113         'renderer/extensions/page_actions_custom_bindings.h',
114         'renderer/extensions/page_capture_custom_bindings.cc',
115         'renderer/extensions/page_capture_custom_bindings.h',
116         'renderer/extensions/renderer_permissions_policy_delegate.cc',
117         'renderer/extensions/renderer_permissions_policy_delegate.h',
118         'renderer/extensions/render_view_observer_natives.cc',
119         'renderer/extensions/render_view_observer_natives.h',
120         'renderer/extensions/request_sender.cc',
121         'renderer/extensions/request_sender.h',
122         'renderer/extensions/resource_request_policy.cc',
123         'renderer/extensions/resource_request_policy.h',
124         'renderer/extensions/runtime_custom_bindings.cc',
125         'renderer/extensions/runtime_custom_bindings.h',
126         'renderer/extensions/safe_builtins.cc',
127         'renderer/extensions/safe_builtins.h',
128         'renderer/extensions/scoped_persistent.h',
129         'renderer/extensions/send_request_natives.cc',
130         'renderer/extensions/send_request_natives.h',
131         'renderer/extensions/set_icon_natives.cc',
132         'renderer/extensions/set_icon_natives.h',
133         'renderer/extensions/sync_file_system_custom_bindings.cc',
134         'renderer/extensions/sync_file_system_custom_bindings.h',
135         'renderer/extensions/tab_finder.cc',
136         'renderer/extensions/tab_finder.h',
137         'renderer/extensions/tabs_custom_bindings.cc',
138         'renderer/extensions/tabs_custom_bindings.h',
139         'renderer/extensions/tts_custom_bindings.cc',
140         'renderer/extensions/tts_custom_bindings.h',
141         'renderer/extensions/unsafe_persistent.h',
142         'renderer/extensions/user_script_scheduler.cc',
143         'renderer/extensions/user_script_scheduler.h',
144         'renderer/extensions/user_script_slave.cc',
145         'renderer/extensions/user_script_slave.h',
146         'renderer/extensions/v8_schema_registry.cc',
147         'renderer/extensions/v8_schema_registry.h',
148         'renderer/extensions/web_request_custom_bindings.cc',
149         'renderer/extensions/web_request_custom_bindings.h',
150         'renderer/extensions/webstore_bindings.cc',
151         'renderer/extensions/webstore_bindings.h',
152         'renderer/frame_sniffer.cc',
153         'renderer/frame_sniffer.h',
154         'renderer/isolated_world_ids.h',
155         'renderer/loadtimes_extension_bindings.cc',
156         'renderer/loadtimes_extension_bindings.h',
157         'renderer/media/webrtc_logging_handler_impl.cc',
158         'renderer/media/webrtc_logging_handler_impl.h',
159         'renderer/media/webrtc_logging_message_filter.cc',
160         'renderer/media/webrtc_logging_message_filter.h',
161         'renderer/net/net_error_helper.cc',
162         'renderer/net/net_error_helper.h',
163         'renderer/net/predictor_queue.cc',
164         'renderer/net/predictor_queue.h',
165         'renderer/net/prescient_networking_dispatcher.cc',
166         'renderer/net/prescient_networking_dispatcher.h',
167         'renderer/net/renderer_net_predictor.cc',
168         'renderer/net/renderer_net_predictor.h',
169         'renderer/net_benchmarking_extension.cc',
170         'renderer/net_benchmarking_extension.h',
171         'renderer/one_click_signin_agent.cc',
172         'renderer/one_click_signin_agent.h',
173         'renderer/playback_extension.cc',
174         'renderer/playback_extension.h',
175         'renderer/resource_bundle_source_map.cc',
176         'renderer/resource_bundle_source_map.h',
177         'renderer/resources/extensions/app_custom_bindings.js',
178         'renderer/resources/extensions/app_window_custom_bindings.js',
179         'renderer/resources/extensions/binding.js',
180         'renderer/resources/extensions/browser_action_custom_bindings.js',
181         'renderer/resources/extensions/chrome_setting.js',
182         'renderer/resources/extensions/content_setting.js',
183         'renderer/resources/extensions/content_watcher.js',
184         'renderer/resources/extensions/context_menus_custom_bindings.js',
185         'renderer/resources/extensions/declarative_content_custom_bindings.js',
186         'renderer/resources/extensions/declarative_webrequest_custom_bindings.js',
187         'renderer/resources/extensions/event.js',
188         'renderer/resources/extensions/experimental.offscreenTabs_custom_bindings.js',
189         'renderer/resources/extensions/extension_custom_bindings.js',
190         'renderer/resources/extensions/feedback_private_custom_bindings.js',
191         'renderer/resources/extensions/file_browser_handler_custom_bindings.js',
192         'renderer/resources/extensions/file_browser_private_custom_bindings.js',
193         'renderer/resources/extensions/file_system_custom_bindings.js',
194         'renderer/resources/extensions/greasemonkey_api.js',
195         'renderer/resources/extensions/input.ime_custom_bindings.js',
196         'renderer/resources/extensions/json_schema.js',
197         'renderer/resources/extensions/last_error.js',
198         'renderer/resources/extensions/miscellaneous_bindings.js',
199         'renderer/resources/extensions/notifications_custom_bindings.js',
200         'renderer/resources/extensions/omnibox_custom_bindings.js',
201         'renderer/resources/extensions/page_action_custom_bindings.js',
202         'renderer/resources/extensions/page_actions_custom_bindings.js',
203         'renderer/resources/extensions/page_capture_custom_bindings.js',
204         'renderer/resources/extensions/platform_app.js',
205         'renderer/resources/extensions/runtime_custom_bindings.js',
206         'renderer/resources/extensions/send_request.js',
207         'renderer/resources/extensions/set_icon.js',
208         'renderer/resources/extensions/storage_area.js',
209         'renderer/resources/extensions/system_indicator_custom_bindings.js',
210         'renderer/resources/extensions/test_custom_bindings.js',
211         'renderer/resources/extensions/tts_custom_bindings.js',
212         'renderer/resources/extensions/tts_engine_custom_bindings.js',
213         'renderer/resources/extensions/unload_event.js',
214         'renderer/resources/extensions/utils.js',
215         'renderer/resources/extensions/web_request_custom_bindings.js',
216         'renderer/resources/extensions/web_view.js',
217         'renderer/resources/extensions/web_view_experimental.js',
218         'renderer/chrome_content_renderer_client.cc',
219         'renderer/chrome_content_renderer_client.h',
220         'renderer/chrome_render_process_observer.cc',
221         'renderer/chrome_render_process_observer.h',
222         'renderer/chrome_render_view_observer.cc',
223         'renderer/chrome_render_view_observer.h',
224         'renderer/content_settings_observer.cc',
225         'renderer/content_settings_observer.h',
226         'renderer/custom_menu_commands.h',
227         'renderer/external_host_bindings.cc',
228         'renderer/external_host_bindings.h',
229         'renderer/external_extension.cc',
230         'renderer/external_extension.h',
231         'renderer/page_load_histograms.cc',
232         'renderer/page_load_histograms.h',
233         'renderer/pepper/chrome_ppapi_interfaces.cc',
234         'renderer/pepper/chrome_ppapi_interfaces.h',
235         'renderer/pepper/chrome_renderer_pepper_host_factory.cc',
236         'renderer/pepper/chrome_renderer_pepper_host_factory.h',
237         'renderer/pepper/pepper_extensions_common_host.cc',
238         'renderer/pepper/pepper_extensions_common_host.h',
239         'renderer/pepper/pepper_flash_drm_renderer_host.cc',
240         'renderer/pepper/pepper_flash_drm_renderer_host.h',
241         'renderer/pepper/pepper_flash_font_file_host.cc',
242         'renderer/pepper/pepper_flash_font_file_host.h',
243         'renderer/pepper/pepper_flash_fullscreen_host.cc',
244         'renderer/pepper/pepper_flash_fullscreen_host.h',
245         'renderer/pepper/pepper_flash_menu_host.cc',
246         'renderer/pepper/pepper_flash_menu_host.h',
247         'renderer/pepper/pepper_flash_renderer_host.cc',
248         'renderer/pepper/pepper_flash_renderer_host.h',
249         'renderer/pepper/pepper_helper.cc',
250         'renderer/pepper/pepper_helper.h',
251         'renderer/pepper/pepper_pdf_host.cc',
252         'renderer/pepper/pepper_pdf_host.h',
253         'renderer/pepper/pepper_shared_memory_message_filter.cc',
254         'renderer/pepper/pepper_shared_memory_message_filter.h',
255         'renderer/pepper/ppb_nacl_private_impl.cc',
256         'renderer/pepper/ppb_nacl_private_impl.h',
257         'renderer/pepper/ppb_pdf_impl.cc',
258         'renderer/pepper/ppb_pdf_impl.h',
259         'renderer/plugins/plugin_placeholder.cc',
260         'renderer/plugins/plugin_placeholder.h',
261         'renderer/plugins/plugin_uma.cc',
262         'renderer/plugins/plugin_uma.h',
263         'renderer/plugins/webview_plugin.cc',
264         'renderer/plugins/webview_plugin.h',
265         'renderer/prerender/prerender_dispatcher.cc',
266         'renderer/prerender/prerender_dispatcher.h',
267         'renderer/prerender/prerender_extra_data.cc',
268         'renderer/prerender/prerender_extra_data.h',
269         'renderer/prerender/prerender_helper.cc',
270         'renderer/prerender/prerender_helper.h',
271         'renderer/prerender/prerender_webmediaplayer.cc',
272         'renderer/prerender/prerender_webmediaplayer.h',
273         'renderer/prerender/prerenderer_client.cc',
274         'renderer/prerender/prerenderer_client.h',
275         'renderer/printing/print_web_view_helper.cc',
276         'renderer/printing/print_web_view_helper.h',
277         'renderer/printing/print_web_view_helper_linux.cc',
278         'renderer/printing/print_web_view_helper_mac.mm',
279         'renderer/printing/print_web_view_helper_win.cc',
280         'renderer/safe_browsing/feature_extractor_clock.cc',
281         'renderer/safe_browsing/feature_extractor_clock.h',
282         'renderer/safe_browsing/features.cc',
283         'renderer/safe_browsing/features.h',
284         'renderer/safe_browsing/malware_dom_details.cc',
285         'renderer/safe_browsing/malware_dom_details.h',
286         'renderer/safe_browsing/murmurhash3_util.cc',
287         'renderer/safe_browsing/murmurhash3_util.h',
288         'renderer/safe_browsing/phishing_classifier.cc',
289         'renderer/safe_browsing/phishing_classifier.h',
290         'renderer/safe_browsing/phishing_classifier_delegate.cc',
291         'renderer/safe_browsing/phishing_classifier_delegate.h',
292         'renderer/safe_browsing/phishing_dom_feature_extractor.cc',
293         'renderer/safe_browsing/phishing_dom_feature_extractor.h',
294         'renderer/safe_browsing/phishing_term_feature_extractor.cc',
295         'renderer/safe_browsing/phishing_term_feature_extractor.h',
296         'renderer/safe_browsing/phishing_url_feature_extractor.cc',
297         'renderer/safe_browsing/phishing_url_feature_extractor.h',
298         'renderer/safe_browsing/scorer.cc',
299         'renderer/safe_browsing/scorer.h',
300         'renderer/searchbox/searchbox.cc',
301         'renderer/searchbox/searchbox.h',
302         'renderer/searchbox/searchbox_extension.cc',
303         'renderer/searchbox/searchbox_extension.h',
304         'renderer/security_filter_peer.cc',
305         'renderer/security_filter_peer.h',
306         'renderer/spellchecker/cocoa_spelling_engine_mac.cc',
307         'renderer/spellchecker/cocoa_spelling_engine_mac.h',
308         'renderer/spellchecker/custom_dictionary_engine.cc',
309         'renderer/spellchecker/custom_dictionary_engine.h',
310         'renderer/spellchecker/hunspell_engine.cc',
311         'renderer/spellchecker/hunspell_engine.h',
312         'renderer/spellchecker/spellcheck_provider.cc',
313         'renderer/spellchecker/spellcheck_provider.h',
314         'renderer/spellchecker/spellcheck.cc',
315         'renderer/spellchecker/spellcheck.h',
316         'renderer/spellchecker/spellcheck_language.cc',
317         'renderer/spellchecker/spellcheck_language.h',
318         'renderer/spellchecker/spellcheck_worditerator.cc',
319         'renderer/spellchecker/spellcheck_worditerator.h',
320         'renderer/spellchecker/spelling_engine.h',
321         'renderer/static_v8_external_string_resource.cc',
322         'renderer/static_v8_external_string_resource.h',
323         'renderer/tts_dispatcher.cc',
324         'renderer/tts_dispatcher.h',
325         'renderer/translate/translate_helper.cc',
326         'renderer/translate/translate_helper.h',
327         'renderer/translate/translate_helper_metrics.cc',
328         'renderer/translate/translate_helper_metrics.h',
329         'renderer/validation_message_agent.cc',
330         'renderer/validation_message_agent.h',
331         'renderer/web_apps.cc',
332         'renderer/web_apps.h',
333         'renderer/webview_color_overlay.cc',
334         'renderer/webview_color_overlay.h',
335       ],
336       'conditions': [
337         ['disable_nacl!=1', {
338           'dependencies': [
339             'nacl',
340           ],
341         }],
342         ['enable_plugins==1', {
343           'dependencies': [
344             '../ppapi/ppapi_internal.gyp:ppapi_host',
345             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
346             '../ppapi/ppapi_internal.gyp:ppapi_ipc',
347             '../ppapi/ppapi_internal.gyp:ppapi_shared',
348           ],
349         }, {  # enable_plugins==0
350           'sources/': [
351             ['exclude', '^renderer/pepper/'],
352           ],
353         }],
354         ['safe_browsing==1', {
355           'defines': [
356             'FULL_SAFE_BROWSING',
357           ],
358           'dependencies': [
359             'safe_browsing_proto',
360             '../third_party/smhasher/smhasher.gyp:murmurhash3',
361           ],
362         }, {  # safe_browsing==0 || safe_browsing==2
363           'sources/': [
364             ['exclude', '^renderer/safe_browsing/'],
365           ],
366         }],
367         ['enable_webrtc==0', {
368           'sources!': [
369             'renderer/media/webrtc_logging_handler_impl.cc',
370             'renderer/media/webrtc_logging_handler_impl.h',
371             'renderer/media/webrtc_logging_message_filter.cc',
372             'renderer/media/webrtc_logging_message_filter.h',
373           ],
374         }],
375         ['OS=="mac"', {
376           'dependencies': [
377             '../third_party/mach_override/mach_override.gyp:mach_override',
378           ],
379         }],
380         ['enable_language_detection==1', {
381           'dependencies': [
382             '../third_party/cld/cld.gyp:cld',
383           ],
384           'include_dirs': [
385             '../third_party/cld',
386           ],
387         }],
388         ['toolkit_uses_gtk == 1', {
389           'dependencies': [
390             '../build/linux/system.gyp:gtk',
391             '../sandbox/sandbox.gyp:sandbox',
392           ],
393         }],
394         ['enable_automation==0', {
395           'sources/': [
396             ['exclude', '^renderer/automation/']
397           ]
398         }],
399         ['OS=="android"', {
400           'sources!': [
401             'renderer/prerender/prerender_webmediaplayer.cc',
402             'renderer/prerender/prerender_webmediaplayer.h',
403             'renderer/printing/print_web_view_helper.cc',
404           ],
405           'defines': [
406             'ENABLE_MOBILE_YOUTUBE_PLUGIN',
407           ],
408         }],
409         ['OS=="win"', {
410           'include_dirs': [
411             '<(DEPTH)/third_party/wtl/include',
412           ],
413           'conditions': [
414             ['win_use_allocator_shim==1', {
415               'dependencies': [
416                 '<(allocator_target)',
417               ],
418               'export_dependent_settings': [
419                 '<(allocator_target)',
420               ],
421             }],
422           ],
423         }],
424       ],
425     },
426   ],