Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / chrome_renderer.gypi
blob998ad8240558fbe2be0d615d6bab559481c47fac
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   'variables': {
7     'chrome_renderer_sources': [
8       'renderer/banners/app_banner_client.cc',
9       'renderer/banners/app_banner_client.h',
10       'renderer/benchmarking_extension.cc',
11       'renderer/benchmarking_extension.h',
12       'renderer/chrome_content_renderer_client.cc',
13       'renderer/chrome_content_renderer_client.h',
14       'renderer/chrome_render_frame_observer.cc',
15       'renderer/chrome_render_frame_observer.h',
16       'renderer/chrome_render_process_observer.cc',
17       'renderer/chrome_render_process_observer.h',
18       'renderer/chrome_render_view_observer.cc',
19       'renderer/chrome_render_view_observer.h',
20       'renderer/content_settings_observer.cc',
21       'renderer/content_settings_observer.h',
22       'renderer/custom_menu_commands.h',
23       'renderer/external_extension.cc',
24       'renderer/external_extension.h',
25       'renderer/instant_restricted_id_cache.h',
26       'renderer/loadtimes_extension_bindings.cc',
27       'renderer/loadtimes_extension_bindings.h',
28       'renderer/media/chrome_key_systems.cc',
29       'renderer/media/chrome_key_systems.h',
30       'renderer/net/net_error_helper.cc',
31       'renderer/net/net_error_helper.h',
32       'renderer/net/net_error_page_controller.cc',
33       'renderer/net/net_error_page_controller.h',
34       'renderer/net_benchmarking_extension.cc',
35       'renderer/net_benchmarking_extension.h',
36       'renderer/page_load_histograms.cc',
37       'renderer/page_load_histograms.h',
38       'renderer/plugins/non_loadable_plugin_placeholder.cc',
39       'renderer/plugins/non_loadable_plugin_placeholder.h',
40       'renderer/plugins/plugin_uma.cc',
41       'renderer/plugins/plugin_uma.h',
42       'renderer/prerender/prerender_dispatcher.cc',
43       'renderer/prerender/prerender_dispatcher.h',
44       'renderer/prerender/prerender_extra_data.cc',
45       'renderer/prerender/prerender_extra_data.h',
46       'renderer/prerender/prerender_helper.cc',
47       'renderer/prerender/prerender_helper.h',
48       'renderer/prerender/prerenderer_client.cc',
49       'renderer/prerender/prerenderer_client.h',
50       'renderer/searchbox/search_bouncer.cc',
51       'renderer/searchbox/search_bouncer.h',
52       'renderer/searchbox/searchbox.cc',
53       'renderer/searchbox/searchbox.h',
54       'renderer/searchbox/searchbox_extension.cc',
55       'renderer/searchbox/searchbox_extension.h',
56       'renderer/security_filter_peer.cc',
57       'renderer/security_filter_peer.h',
58       'renderer/tts_dispatcher.cc',
59       'renderer/tts_dispatcher.h',
60       'renderer/web_apps.cc',
61       'renderer/web_apps.h',
62       'renderer/worker_content_settings_client_proxy.cc',
63       'renderer/worker_content_settings_client_proxy.h',
64     ],
65     'chrome_renderer_webrtc_sources': [
66       'renderer/media/chrome_webrtc_log_message_delegate.cc',
67       'renderer/media/chrome_webrtc_log_message_delegate.h',
68       'renderer/media/webrtc_logging_message_filter.cc',
69       'renderer/media/webrtc_logging_message_filter.h',
70     ],
71     'chrome_renderer_webrtc_extensions_sources': [
72       'renderer/extensions/cast_streaming_native_handler.cc',
73       'renderer/extensions/cast_streaming_native_handler.h',
74     ],
75     'chrome_renderer_extensions_sources': [
76       'renderer/extensions/app_bindings.cc',
77       'renderer/extensions/app_bindings.h',
78       'renderer/extensions/automation_internal_custom_bindings.cc',
79       'renderer/extensions/automation_internal_custom_bindings.h',
80       'renderer/extensions/chrome_extensions_dispatcher_delegate.cc',
81       'renderer/extensions/chrome_extensions_dispatcher_delegate.h',
82       'renderer/extensions/chrome_extensions_renderer_client.cc',
83       'renderer/extensions/chrome_extensions_renderer_client.h',
84       'renderer/extensions/chrome_v8_extension_handler.cc',
85       'renderer/extensions/chrome_v8_extension_handler.h',
86       'renderer/extensions/extension_localization_peer.cc',
87       'renderer/extensions/extension_localization_peer.h',
88       'renderer/extensions/file_browser_handler_custom_bindings.cc',
89       'renderer/extensions/file_browser_handler_custom_bindings.h',
90       'renderer/extensions/file_manager_private_custom_bindings.cc',
91       'renderer/extensions/file_manager_private_custom_bindings.h',
92       'renderer/extensions/media_galleries_custom_bindings.cc',
93       'renderer/extensions/media_galleries_custom_bindings.h',
94       'renderer/extensions/notifications_native_handler.cc',
95       'renderer/extensions/notifications_native_handler.h',
96       'renderer/extensions/page_capture_custom_bindings.cc',
97       'renderer/extensions/page_capture_custom_bindings.h',
98       'renderer/extensions/platform_keys_natives.cc',
99       'renderer/extensions/platform_keys_natives.h',
100       'renderer/extensions/renderer_permissions_policy_delegate.cc',
101       'renderer/extensions/renderer_permissions_policy_delegate.h',
102       'renderer/extensions/resource_request_policy.cc',
103       'renderer/extensions/resource_request_policy.h',
104       'renderer/extensions/sync_file_system_custom_bindings.cc',
105       'renderer/extensions/sync_file_system_custom_bindings.h',
106       'renderer/extensions/tabs_custom_bindings.cc',
107       'renderer/extensions/tabs_custom_bindings.h',
108       'renderer/extensions/webstore_bindings.cc',
109       'renderer/extensions/webstore_bindings.h',
110       'renderer/media/cast_ipc_dispatcher.cc',
111       'renderer/media/cast_ipc_dispatcher.h',
112       'renderer/media/cast_receiver_audio_valve.cc',
113       'renderer/media/cast_receiver_audio_valve.h',
114       'renderer/media/cast_receiver_session.cc',
115       'renderer/media/cast_receiver_session.h',
116       'renderer/media/cast_receiver_session_delegate.cc',
117       'renderer/media/cast_receiver_session_delegate.h',
118       'renderer/media/cast_rtp_stream.cc',
119       'renderer/media/cast_rtp_stream.h',
120       'renderer/media/cast_session.cc',
121       'renderer/media/cast_session.h',
122       'renderer/media/cast_session_delegate.cc',
123       'renderer/media/cast_session_delegate.h',
124       'renderer/media/cast_threads.cc',
125       'renderer/media/cast_threads.h',
126       'renderer/media/cast_transport_sender_ipc.cc',
127       'renderer/media/cast_transport_sender_ipc.h',
128       'renderer/media/cast_udp_transport.cc',
129       'renderer/media/cast_udp_transport.h',
130       'renderer/resources/extensions/app_custom_bindings.js',
131       'renderer/resources/extensions/automation_custom_bindings.js',
132       'renderer/resources/extensions/browser_action_custom_bindings.js',
133       'renderer/resources/extensions/certificate_provider_custom_bindings.js',
134       'renderer/resources/extensions/chrome_direct_setting.js',
135       'renderer/resources/extensions/chrome_setting.js',
136       'renderer/resources/extensions/content_setting.js',
137       'renderer/resources/extensions/declarative_content_custom_bindings.js',
138       'renderer/resources/extensions/enterprise_platform_keys_custom_bindings.js',
139       'renderer/resources/extensions/feedback_private_custom_bindings.js',
140       'renderer/resources/extensions/file_browser_handler_custom_bindings.js',
141       'renderer/resources/extensions/file_entry_binding_util.js',
142       'renderer/resources/extensions/file_manager_private_custom_bindings.js',
143       'renderer/resources/extensions/file_system_custom_bindings.js',
144       'renderer/resources/extensions/file_system_provider_custom_bindings.js',
145       'renderer/resources/extensions/gcm_custom_bindings.js',
146       'renderer/resources/extensions/identity_custom_bindings.js',
147       'renderer/resources/extensions/image_writer_private_custom_bindings.js',
148       'renderer/resources/extensions/input.ime_custom_bindings.js',
149       'renderer/resources/extensions/log_private_custom_bindings.js',
150       'renderer/resources/extensions/notifications_custom_bindings.js',
151       'renderer/resources/extensions/omnibox_custom_bindings.js',
152       'renderer/resources/extensions/page_action_custom_bindings.js',
153       'renderer/resources/extensions/page_capture_custom_bindings.js',
154       'renderer/resources/extensions/system_indicator_custom_bindings.js',
155       'renderer/resources/extensions/tts_custom_bindings.js',
156       'renderer/resources/extensions/tts_engine_custom_bindings.js',
157     ],
158     'chrome_renderer_plugin_sources': [
159       'renderer/pepper/chrome_renderer_pepper_host_factory.cc',
160       'renderer/pepper/chrome_renderer_pepper_host_factory.h',
161       'renderer/pepper/pepper_flash_drm_renderer_host.cc',
162       'renderer/pepper/pepper_flash_drm_renderer_host.h',
163       'renderer/pepper/pepper_flash_font_file_host.cc',
164       'renderer/pepper/pepper_flash_font_file_host.h',
165       'renderer/pepper/pepper_flash_fullscreen_host.cc',
166       'renderer/pepper/pepper_flash_fullscreen_host.h',
167       'renderer/pepper/pepper_flash_menu_host.cc',
168       'renderer/pepper/pepper_flash_menu_host.h',
169       'renderer/pepper/pepper_flash_renderer_host.cc',
170       'renderer/pepper/pepper_flash_renderer_host.h',
171       'renderer/pepper/pepper_helper.cc',
172       'renderer/pepper/pepper_helper.h',
173       'renderer/pepper/pepper_shared_memory_message_filter.cc',
174       'renderer/pepper/pepper_shared_memory_message_filter.h',
175       'renderer/pepper/pepper_uma_host.cc',
176       'renderer/pepper/pepper_uma_host.h',
177       'renderer/plugins/chrome_plugin_placeholder.cc',
178       'renderer/plugins/chrome_plugin_placeholder.h',
179       'renderer/plugins/plugin_preroller.cc',
180       'renderer/plugins/plugin_preroller.h',
181     ],
182     # For safe_browsing==1 or safe_browsing==2.
183     'chrome_renderer_basic_safe_browsing_sources': [
184       'renderer/safe_browsing/malware_dom_details.cc',
185       'renderer/safe_browsing/malware_dom_details.h',
186     ],
187     # For safe_browsing==1 only.
188     'chrome_renderer_safe_browsing_sources': [
189       'renderer/safe_browsing/feature_extractor_clock.cc',
190       'renderer/safe_browsing/feature_extractor_clock.h',
191       'renderer/safe_browsing/features.cc',
192       'renderer/safe_browsing/features.h',
193       'renderer/safe_browsing/murmurhash3_util.cc',
194       'renderer/safe_browsing/murmurhash3_util.h',
195       'renderer/safe_browsing/phishing_classifier.cc',
196       'renderer/safe_browsing/phishing_classifier.h',
197       'renderer/safe_browsing/phishing_classifier_delegate.cc',
198       'renderer/safe_browsing/phishing_classifier_delegate.h',
199       'renderer/safe_browsing/phishing_dom_feature_extractor.cc',
200       'renderer/safe_browsing/phishing_dom_feature_extractor.h',
201       'renderer/safe_browsing/phishing_term_feature_extractor.cc',
202       'renderer/safe_browsing/phishing_term_feature_extractor.h',
203       'renderer/safe_browsing/phishing_url_feature_extractor.cc',
204       'renderer/safe_browsing/phishing_url_feature_extractor.h',
205       'renderer/safe_browsing/scorer.cc',
206       'renderer/safe_browsing/scorer.h',
207     ],
208     'chrome_renderer_spellchecker_sources': [
209       'renderer/spellchecker/custom_dictionary_engine.cc',
210       'renderer/spellchecker/custom_dictionary_engine.h',
211       'renderer/spellchecker/hunspell_engine.cc',
212       'renderer/spellchecker/hunspell_engine.h',
213       'renderer/spellchecker/platform_spelling_engine.cc',
214       'renderer/spellchecker/platform_spelling_engine.h',
215       'renderer/spellchecker/spellcheck.cc',
216       'renderer/spellchecker/spellcheck.h',
217       'renderer/spellchecker/spellcheck_language.cc',
218       'renderer/spellchecker/spellcheck_language.h',
219       'renderer/spellchecker/spellcheck_provider.cc',
220       'renderer/spellchecker/spellcheck_provider.h',
221       'renderer/spellchecker/spellcheck_worditerator.cc',
222       'renderer/spellchecker/spellcheck_worditerator.h',
223       'renderer/spellchecker/spelling_engine.h',
224     ],
225     'chrome_renderer_printing_sources': [
226       'renderer/printing/chrome_print_web_view_helper_delegate.cc',
227       'renderer/printing/chrome_print_web_view_helper_delegate.h',
228     ],
229     'chrome_renderer_full_printing_sources': [
230       'renderer/pepper/chrome_pdf_print_client.cc',
231       'renderer/pepper/chrome_pdf_print_client.h',
232     ],
233   },
234   'targets': [
235     {
236       'target_name': 'renderer',
237       'type': 'static_library',
238       'variables': { 'enable_wexit_time_destructors': 1, },
239       'dependencies': [
240         'common',
241         'common_mojo_bindings',
242         'chrome_resources.gyp:chrome_resources',
243         'chrome_resources.gyp:chrome_strings',
244         '../third_party/re2/re2.gyp:re2',
245         '../components/components.gyp:autofill_content_renderer',
246         '../components/components.gyp:content_settings_content_common',
247         '../components/components.gyp:cdm_renderer',
248         '../components/components.gyp:data_reduction_proxy_content_common',
249         '../components/components.gyp:data_reduction_proxy_core_common',
250         '../components/components.gyp:guest_view_renderer',
251         '../components/components.gyp:network_hints_renderer',
252         '../components/components.gyp:omnibox_common',
253         '../components/components.gyp:error_page_renderer',
254         '../components/components.gyp:startup_metric_utils',
255         '../components/components.gyp:password_manager_content_renderer',
256         '../components/components.gyp:plugins_renderer',
257         '../components/components.gyp:translate_content_renderer',
258         '../components/components.gyp:visitedlink_renderer',
259         '../components/components.gyp:web_cache_renderer',
260         '../content/app/resources/content_resources.gyp:content_resources',
261         '../content/app/strings/content_strings.gyp:content_strings',
262         '../content/content.gyp:content_renderer',
263         '../net/net.gyp:net',
264         '../skia/skia.gyp:skia',
265         '../third_party/WebKit/public/blink.gyp:blink',
266         '../third_party/icu/icu.gyp:icui18n',
267         '../third_party/icu/icu.gyp:icuuc',
268         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
269       ],
270       'include_dirs': [
271         '..',
272         # Needed by chrome_content_renderer_client.cc.
273         '<(SHARED_INTERMEDIATE_DIR)',
274       ],
275       'sources': [
276         '<@(chrome_renderer_sources)',
277       ],
278       'conditions': [
279         ['OS != "ios"', {
280           'dependencies': [
281             'common_net',
282           ],
283         }],
284         ['disable_nacl!=1', {
285           'dependencies': [
286             '../components/nacl.gyp:nacl',
287             '../components/nacl.gyp:nacl_renderer',
288           ],
289         }],
290         ['enable_plugins==1', {
291           'sources': [
292             '<@(chrome_renderer_plugin_sources)',
293           ],
294           'dependencies': [
295             '../components/components.gyp:pdf_renderer',
296             '../ppapi/ppapi_internal.gyp:ppapi_host',
297             '../ppapi/ppapi_internal.gyp:ppapi_proxy',
298             '../ppapi/ppapi_internal.gyp:ppapi_ipc',
299             '../ppapi/ppapi_internal.gyp:ppapi_shared',
300           ],
301         }],
302         ['safe_browsing==1 or safe_browsing==2', {
303           'sources': [
304             '<@(chrome_renderer_basic_safe_browsing_sources)',
305           ],
306         }],
307         ['safe_browsing==1', {
308           'sources': [
309             '<@(chrome_renderer_safe_browsing_sources)',
310           ],
311           'dependencies': [
312             'safe_browsing_proto',
313             '../third_party/smhasher/smhasher.gyp:murmurhash3',
314           ],
315         }],
316         ['enable_extensions==1', {
317           'dependencies': [
318             '../extensions/extensions.gyp:extensions_renderer',
319             '../extensions/extensions_resources.gyp:extensions_resources',
320             '../media/cast/cast.gyp:cast_logging_proto',
321             '../media/cast/cast.gyp:cast_net',
322             '../media/cast/cast.gyp:cast_receiver',
323             '../media/cast/cast.gyp:cast_sender',
324             # TODO(hclam): See crbug.com/298380 for details.
325             # We should isolate the APIs needed by the renderer.
326             '<(DEPTH)/chrome/common/extensions/api/api.gyp:chrome_api',
327           ],
328           'sources': [
329             '<@(chrome_renderer_extensions_sources)',
330           ],
331         }],
332         ['enable_webrtc==1', {
333           'sources': [
334             '<@(chrome_renderer_webrtc_sources)',
335           ],
336         }],
337         ['enable_extensions==1 and enable_webrtc==1', {
338           'sources': [
339             '<@(chrome_renderer_webrtc_extensions_sources)',
340           ],
341         }],
342         ['enable_spellcheck==1', {
343           'sources': [
344             '<@(chrome_renderer_spellchecker_sources)',
345           ],
346           'conditions': [
347             ['OS!="android"', {
348               'dependencies': [
349                 '../third_party/hunspell/hunspell.gyp:hunspell',
350               ],
351             }],
352           ],
353         }],
354         ['use_browser_spellchecker==0', {
355           'sources!': [
356             'renderer/spellchecker/platform_spelling_engine.cc',
357             'renderer/spellchecker/platform_spelling_engine.h',
358           ]
359         }],
360         ['OS=="android"', {
361           'sources!': [
362             'renderer/spellchecker/hunspell_engine.cc',
363             'renderer/spellchecker/hunspell_engine.h',
364           ]
365         }],
366         ['OS=="mac"', {
367           'dependencies': [
368             '../third_party/mach_override/mach_override.gyp:mach_override',
369           ],
370         }],
371         ['enable_basic_printing==1 or enable_print_preview==1', {
372           'dependencies': [
373             '../components/components.gyp:printing_renderer',
374             '../printing/printing.gyp:printing',
375           ],
376           'sources': [
377             '<@(chrome_renderer_printing_sources)',
378           ],
379         }],
380         ['enable_print_preview==1', {
381           'sources': [
382             '<@(chrome_renderer_full_printing_sources)',
383           ],
384         }],
385         ['OS=="win"', {
386           'dependencies': [
387             '../components/components.gyp:dom_distiller_core',  # Needed by chrome_content_renderer_client.cc.
388           ],
389           'include_dirs': [
390             '<(DEPTH)/third_party/wtl/include',
391           ],
392           'conditions': [
393             ['win_use_allocator_shim==1', {
394               'dependencies': [
395                 '<(allocator_target)',
396               ],
397               'export_dependent_settings': [
398                 '<(allocator_target)',
399               ],
400             }],
401           ],
402         }],
403       ],
404     },
405   ],