sandbox: Fix DeathMessage so CHECK messages are caught in all builds
[chromium-blink-merge.git] / content / content_child.gypi
blobd32986a75ee3906a7444dded251b8cb0de77c37a
1 # Copyright 2013 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   'dependencies': [
7     '../base/base.gyp:base',
8     '../components/tracing.gyp:tracing',
9     '../mojo/mojo_base.gyp:mojo_environment_chromium',
10     '../mojo/mojo_base.gyp:mojo_common_lib',
11     '../skia/skia.gyp:skia',
12     '../ui/base/ui_base.gyp:ui_base',
13     '../ui/gfx/gfx.gyp:gfx',
14     '../ui/gfx/gfx.gyp:gfx_geometry',
15     '../url/url.gyp:url_lib',
16   ],
17   'include_dirs': [
18     '..',
19   ],
20   'export_dependent_settings': [
21     '../base/base.gyp:base',
22   ],
23   'variables': {
24     'public_child_sources': [
25       'public/child/image_decoder_utils.h',
26       'public/child/request_peer.h',
27       'public/child/resource_dispatcher_delegate.h',
28     ],
29     'private_child_sources': [
30       'child/appcache/appcache_backend_proxy.cc',
31       'child/appcache/appcache_backend_proxy.h',
32       'child/appcache/appcache_dispatcher.cc',
33       'child/appcache/appcache_dispatcher.h',
34       'child/appcache/appcache_frontend_impl.cc',
35       'child/appcache/appcache_frontend_impl.h',
36       'child/appcache/web_application_cache_host_impl.cc',
37       'child/appcache/web_application_cache_host_impl.h',
38       'child/assert_matching_enums.cc',
39       'child/blink_platform_impl.cc',
40       'child/blink_platform_impl.h',
41       'child/bluetooth/bluetooth_dispatcher.cc',
42       'child/bluetooth/bluetooth_dispatcher.h',
43       'child/bluetooth/bluetooth_message_filter.cc',
44       'child/bluetooth/bluetooth_message_filter.h',
45       'child/bluetooth/web_bluetooth_impl.cc',
46       'child/bluetooth/web_bluetooth_impl.h',
47       'child/browser_font_resource_trusted.cc',
48       'child/browser_font_resource_trusted.h',
49       'child/child_discardable_shared_memory_manager.cc',
50       'child/child_discardable_shared_memory_manager.h',
51       'child/child_gpu_memory_buffer_manager.cc',
52       'child/child_gpu_memory_buffer_manager.h',
53       'child/child_histogram_message_filter.cc',
54       'child/child_histogram_message_filter.h',
55       'child/child_message_filter.cc',
56       'child/child_message_filter.h',
57       'child/child_process.cc',
58       'child/child_process.h',
59       'child/child_resource_message_filter.cc',
60       'child/child_resource_message_filter.h',
61       'child/child_shared_bitmap_manager.cc',
62       'child/child_shared_bitmap_manager.h',
63       'child/child_thread.cc',
64       'child/child_thread.h',
65       'child/content_child_helpers.cc',
66       'child/content_child_helpers.h',
67       'child/database_util.cc',
68       'child/database_util.h',
69       'child/db_message_filter.cc',
70       'child/db_message_filter.h',
71       'child/file_info_util.cc',
72       'child/file_info_util.h',
73       'child/fileapi/file_system_dispatcher.cc',
74       'child/fileapi/file_system_dispatcher.h',
75       'child/fileapi/webfilesystem_impl.cc',
76       'child/fileapi/webfilesystem_impl.h',
77       'child/fileapi/webfilewriter_base.cc',
78       'child/fileapi/webfilewriter_base.h',
79       'child/fileapi/webfilewriter_impl.cc',
80       'child/fileapi/webfilewriter_impl.h',
81       'child/ftp_directory_listing_response_delegate.cc',
82       'child/ftp_directory_listing_response_delegate.h',
83       'child/geofencing/geofencing_dispatcher.cc',
84       'child/geofencing/geofencing_dispatcher.h',
85       'child/geofencing/geofencing_message_filter.cc',
86       'child/geofencing/geofencing_message_filter.h',
87       'child/geofencing/web_geofencing_provider_impl.cc',
88       'child/geofencing/web_geofencing_provider_impl.h',
89       'child/image_decoder.cc',
90       'child/image_decoder.h',
91       'child/indexed_db/indexed_db_dispatcher.cc',
92       'child/indexed_db/indexed_db_dispatcher.h',
93       'child/indexed_db/indexed_db_key_builders.cc',
94       'child/indexed_db/indexed_db_key_builders.h',
95       'child/indexed_db/indexed_db_message_filter.cc',
96       'child/indexed_db/indexed_db_message_filter.h',
97       'child/indexed_db/webidbcursor_impl.cc',
98       'child/indexed_db/webidbcursor_impl.h',
99       'child/indexed_db/webidbdatabase_impl.cc',
100       'child/indexed_db/webidbdatabase_impl.h',
101       'child/indexed_db/webidbfactory_impl.cc',
102       'child/indexed_db/webidbfactory_impl.h',
103       'child/mojo/mojo_application.cc',
104       'child/mojo/mojo_application.h',
105       'child/multipart_response_delegate.cc',
106       'child/multipart_response_delegate.h',
107       'child/notifications/notification_dispatcher.cc',
108       'child/notifications/notification_dispatcher.h',
109       'child/notifications/notification_image_loader.cc',
110       'child/notifications/notification_image_loader.h',
111       'child/notifications/notification_manager.cc',
112       'child/notifications/notification_manager.h',
113       'child/npapi/np_channel_base.cc',
114       'child/npapi/np_channel_base.h',
115       'child/npapi/npobject_base.h',
116       'child/npapi/npobject_proxy.cc',
117       'child/npapi/npobject_proxy.h',
118       'child/npapi/npobject_stub.cc',
119       'child/npapi/npobject_stub.h',
120       'child/npapi/npobject_util.cc',
121       'child/npapi/npobject_util.h',
122       'child/npapi/npruntime_util.cc',
123       'child/npapi/npruntime_util.h',
124       'child/npapi/plugin_host.cc',
125       'child/npapi/plugin_host.h',
126       'child/npapi/plugin_instance.cc',
127       'child/npapi/plugin_instance.h',
128       'child/npapi/plugin_instance_mac.mm',
129       'child/npapi/plugin_lib.cc',
130       'child/npapi/plugin_lib.h',
131       'child/npapi/plugin_stream.cc',
132       'child/npapi/plugin_stream.h',
133       'child/npapi/plugin_stream_posix.cc',
134       'child/npapi/plugin_stream_url.cc',
135       'child/npapi/plugin_stream_url.h',
136       'child/npapi/plugin_stream_win.cc',
137       'child/npapi/plugin_string_stream.cc',
138       'child/npapi/plugin_string_stream.h',
139       'child/npapi/plugin_url_fetcher.cc',
140       'child/npapi/plugin_url_fetcher.h',
141       'child/npapi/plugin_web_event_converter_mac.h',
142       'child/npapi/plugin_web_event_converter_mac.mm',
143       'child/npapi/webplugin.h',
144       'child/npapi/webplugin_accelerated_surface_mac.h',
145       'child/npapi/webplugin_delegate.h',
146       'child/npapi/webplugin_delegate_impl.cc',
147       'child/npapi/webplugin_delegate_impl.h',
148       'child/npapi/webplugin_delegate_impl_android.cc',
149       'child/npapi/webplugin_delegate_impl_aura.cc',
150       'child/npapi/webplugin_delegate_impl_mac.mm',
151       'child/npapi/webplugin_delegate_impl_win.cc',
152       'child/npapi/webplugin_ime_win.cc',
153       'child/npapi/webplugin_ime_win.h',
154       'child/npapi/webplugin_resource_client.h',
155       'child/plugin_message_generator.cc',
156       'child/plugin_message_generator.h',
157       'child/plugin_messages.h',
158       'child/plugin_param_traits.cc',
159       'child/plugin_param_traits.h',
160       'child/power_monitor_broadcast_source.cc',
161       'child/power_monitor_broadcast_source.h',
162       'child/quota_dispatcher.cc',
163       'child/quota_dispatcher.h',
164       'child/quota_message_filter.cc',
165       'child/quota_message_filter.h',
166       'child/request_extra_data.cc',
167       'child/request_extra_data.h',
168       'child/request_info.cc',
169       'child/request_info.h',
170       'child/resource_dispatcher.cc',
171       'child/resource_dispatcher.h',
172       'child/resource_loader_bridge.cc',
173       'child/resource_loader_bridge.h',
174       'child/runtime_features.cc',
175       'child/runtime_features.h',
176       'child/scoped_child_process_reference.cc',
177       'child/scoped_child_process_reference.h',
178       'child/service_worker/service_worker_dispatcher.cc',
179       'child/service_worker/service_worker_dispatcher.h',
180       'child/service_worker/service_worker_handle_reference.cc',
181       'child/service_worker/service_worker_handle_reference.h',
182       'child/service_worker/service_worker_message_filter.cc',
183       'child/service_worker/service_worker_message_filter.h',
184       'child/service_worker/service_worker_network_provider.cc',
185       'child/service_worker/service_worker_network_provider.h',
186       'child/service_worker/service_worker_provider_context.cc',
187       'child/service_worker/service_worker_provider_context.h',
188       'child/service_worker/service_worker_registration_handle_reference.cc',
189       'child/service_worker/service_worker_registration_handle_reference.h',
190       'child/service_worker/web_service_worker_impl.cc',
191       'child/service_worker/web_service_worker_impl.h',
192       'child/service_worker/web_service_worker_provider_impl.cc',
193       'child/service_worker/web_service_worker_provider_impl.h',
194       'child/service_worker/web_service_worker_registration_impl.cc',
195       'child/service_worker/web_service_worker_registration_impl.h',
196       'child/shared_worker_devtools_agent.cc',
197       'child/shared_worker_devtools_agent.h',
198       'child/simple_webmimeregistry_impl.cc',
199       'child/simple_webmimeregistry_impl.h',
200       'child/site_isolation_policy.cc',
201       'child/site_isolation_policy.h',
202       'child/sync_load_response.cc',
203       'child/sync_load_response.h',
204       'child/thread_safe_sender.cc',
205       'child/thread_safe_sender.h',
206       'child/threaded_data_provider.cc',
207       'child/threaded_data_provider.h',
208       'child/web_data_consumer_handle_impl.cc',
209       'child/web_data_consumer_handle_impl.h',
210       'child/web_database_observer_impl.cc',
211       'child/web_database_observer_impl.h',
212       'child/web_discardable_memory_impl.cc',
213       'child/web_discardable_memory_impl.h',
214       'child/web_gesture_curve_impl.cc',
215       'child/web_gesture_curve_impl.h',
216       'child/web_url_loader_impl.cc',
217       'child/web_url_loader_impl.h',
218       'child/web_url_request_util.cc',
219       'child/web_url_request_util.h',
220       'child/webblobregistry_impl.cc',
221       'child/webblobregistry_impl.h',
222       'child/webcrypto/algorithm_dispatch.cc',
223       'child/webcrypto/algorithm_dispatch.h',
224       'child/webcrypto/algorithm_implementation.cc',
225       'child/webcrypto/algorithm_implementation.h',
226       'child/webcrypto/algorithm_registry.cc',
227       'child/webcrypto/algorithm_registry.h',
228       'child/webcrypto/crypto_data.cc',
229       'child/webcrypto/crypto_data.h',
230       'child/webcrypto/generate_key_result.cc',
231       'child/webcrypto/generate_key_result.h',
232       'child/webcrypto/jwk.cc',
233       'child/webcrypto/jwk.h',
234       'child/webcrypto/platform_crypto.h',
235       'child/webcrypto/status.cc',
236       'child/webcrypto/status.h',
237       'child/webcrypto/webcrypto_impl.cc',
238       'child/webcrypto/webcrypto_impl.h',
239       'child/webcrypto/webcrypto_util.cc',
240       'child/webcrypto/webcrypto_util.h',
241       'child/webfallbackthemeengine_impl.cc',
242       'child/webfallbackthemeengine_impl.h',
243       'child/webfileutilities_impl.cc',
244       'child/webfileutilities_impl.h',
245       'child/webmessageportchannel_impl.cc',
246       'child/webmessageportchannel_impl.h',
247       'child/websocket_bridge.cc',
248       'child/websocket_bridge.h',
249       'child/websocket_dispatcher.cc',
250       'child/websocket_dispatcher.h',
251       'child/webthemeengine_impl_android.cc',
252       'child/webthemeengine_impl_android.h',
253       'child/webthemeengine_impl_default.cc',
254       'child/webthemeengine_impl_default.h',
255       'child/webthemeengine_impl_mac.h',
256       'child/webthread_impl.cc',
257       'child/webthread_impl.h',
258       'child/weburlresponse_extradata_impl.cc',
259       'child/weburlresponse_extradata_impl.h',
260       'child/worker_task_runner.cc',
261       'child/worker_task_runner.h',
262       'child/worker_thread_task_runner.cc',
263       'child/worker_thread_task_runner.h',
264     ],
265     'webcrypto_nss_sources': [
266       'child/webcrypto/nss/aes_cbc_nss.cc',
267       'child/webcrypto/nss/aes_gcm_nss.cc',
268       'child/webcrypto/nss/aes_key_nss.cc',
269       'child/webcrypto/nss/aes_key_nss.h',
270       'child/webcrypto/nss/aes_kw_nss.cc',
271       'child/webcrypto/nss/hmac_nss.cc',
272       'child/webcrypto/nss/key_nss.cc',
273       'child/webcrypto/nss/key_nss.h',
274       'child/webcrypto/nss/rsa_key_nss.cc',
275       'child/webcrypto/nss/rsa_key_nss.h',
276       'child/webcrypto/nss/rsa_oaep_nss.cc',
277       'child/webcrypto/nss/rsa_ssa_nss.cc',
278       'child/webcrypto/nss/sha_nss.cc',
279       'child/webcrypto/nss/sym_key_nss.cc',
280       'child/webcrypto/nss/sym_key_nss.h',
281       'child/webcrypto/nss/util_nss.cc',
282       'child/webcrypto/nss/util_nss.h',
283     ],
284     'webcrypto_openssl_sources': [
285       'child/webcrypto/openssl/aes_cbc_openssl.cc',
286       'child/webcrypto/openssl/aes_ctr_openssl.cc',
287       'child/webcrypto/openssl/aes_gcm_openssl.cc',
288       'child/webcrypto/openssl/aes_key_openssl.cc',
289       'child/webcrypto/openssl/aes_key_openssl.h',
290       'child/webcrypto/openssl/aes_kw_openssl.cc',
291       'child/webcrypto/openssl/ec_key_openssl.cc',
292       'child/webcrypto/openssl/ecdh_openssl.cc',
293       'child/webcrypto/openssl/ecdsa_openssl.cc',
294       'child/webcrypto/openssl/hmac_openssl.cc',
295       'child/webcrypto/openssl/key_openssl.cc',
296       'child/webcrypto/openssl/key_openssl.h',
297       'child/webcrypto/openssl/rsa_key_openssl.cc',
298       'child/webcrypto/openssl/rsa_key_openssl.h',
299       'child/webcrypto/openssl/rsa_oaep_openssl.cc',
300       'child/webcrypto/openssl/rsa_pss_openssl.cc',
301       'child/webcrypto/openssl/rsa_sign_openssl.cc',
302       'child/webcrypto/openssl/rsa_sign_openssl.h',
303       'child/webcrypto/openssl/rsa_ssa_openssl.cc',
304       'child/webcrypto/openssl/sha_openssl.cc',
305       'child/webcrypto/openssl/sym_key_openssl.cc',
306       'child/webcrypto/openssl/sym_key_openssl.h',
307       'child/webcrypto/openssl/util_openssl.cc',
308       'child/webcrypto/openssl/util_openssl.h',
309     ],
310   },
311   'sources': [
312     '<@(public_child_sources)',
313     '<@(private_child_sources)',
314   ],
315   'conditions': [
316     ['use_default_render_theme==0',
317       {
318         'sources/': [
319           ['exclude', 'child/webthemeengine_impl_default.cc'],
320           ['exclude', 'child/webthemeengine_impl_default.h'],
321         ],
322       }
323     ],
324     ['OS=="android"', {
325       'includes': [
326         '../build/android/cpufeatures.gypi',
327       ],
328     }],
329     ['enable_plugins==0', {
330       'sources!': [
331         'child/browser_font_resource_trusted.cc',
332       ],
333       'sources/': [
334         ['exclude', '^child/npapi/plugin_'],
335         ['exclude', '^child/npapi/webplugin_'],
336       ],
337     }],
338     ['OS=="ios"', {
339       'sources/': [
340         # iOS only needs a small portion of content; exclude all the
341         # implementation, and re-include what is used.
342         ['exclude', '\\.(cc|mm)$'],
343       ],
344     }, {  # OS!="ios"
345       'dependencies': [
346         'app/resources/content_resources.gyp:content_resources',
347         'app/strings/content_strings.gyp:content_strings',
348         '../storage/storage_common.gyp:storage_common',
349         '../third_party/WebKit/public/blink.gyp:blink',
350         '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
351         '../third_party/npapi/npapi.gyp:npapi',
352       ],
353     }],
354     ['use_aura==1', {
355       'sources!': [
356         'child/npapi/webplugin_delegate_impl_mac.mm',
357       ],
358     }],
359     ['OS=="win"', {
360       'sources!': [
361         'child/npapi/webplugin_delegate_impl_aura.cc',
362       ],
363     }],
364     ['use_openssl==1', {
365       'sources': [
366         '<@(webcrypto_openssl_sources)',
367       ],
368       'dependencies': [
369         '../third_party/boringssl/boringssl.gyp:boringssl',
370       ],
371     }, {
372       'sources': [
373         '<@(webcrypto_nss_sources)',
374       ],
375       'conditions': [
376         ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
377           'dependencies': [
378             '../build/linux/system.gyp:ssl',
379           ],
380         }, {
381           'dependencies': [
382             '../third_party/nss/nss.gyp:nspr',
383             '../third_party/nss/nss.gyp:nss',
384           ],
385         }],
386       ],
387     }],
388   ],