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