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