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