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