Roll src/third_party/skia 2440fcd:4de8c3a
[chromium-blink-merge.git] / content / content_child.gypi
blob5ad5b679f5fce2a7daa41dac6db06b64c9c5e37c
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/mime_util/mime_util.gyp:mime_util',
9     '../components/tracing.gyp:tracing',
10     '../components/webcrypto/webcrypto.gyp:webcrypto',
11     '../mojo/mojo_base.gyp:mojo_environment_chromium',
12     '../mojo/mojo_base.gyp:mojo_common_lib',
13     '../mojo/mojo_base.gyp:mojo_message_pump_lib',
14     '../skia/skia.gyp:skia',
15     '../ui/base/ui_base.gyp:ui_base',
16     '../ui/events/events.gyp:gestures_blink',
17     '../ui/gfx/gfx.gyp:gfx',
18     '../ui/gfx/gfx.gyp:gfx_geometry',
19     '../url/url.gyp:url_lib',
20     'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
21   ],
22   'include_dirs': [
23     '..',
24   ],
25   'export_dependent_settings': [
26     '../base/base.gyp:base',
27   ],
28   'variables': {
29     'public_child_sources': [
30       'public/child/child_thread.h',
31       'public/child/fixed_received_data.cc',
32       'public/child/fixed_received_data.h',
33       'public/child/image_decoder_utils.h',
34       'public/child/request_peer.h',
35       'public/child/resource_dispatcher_delegate.h',
36       'public/child/v8_value_converter.h',
37       'public/child/worker_thread.h',
38     ],
39     'private_child_sources': [
40       'child/appcache/appcache_backend_proxy.cc',
41       'child/appcache/appcache_backend_proxy.h',
42       'child/appcache/appcache_dispatcher.cc',
43       'child/appcache/appcache_dispatcher.h',
44       'child/appcache/appcache_frontend_impl.cc',
45       'child/appcache/appcache_frontend_impl.h',
46       'child/appcache/web_application_cache_host_impl.cc',
47       'child/appcache/web_application_cache_host_impl.h',
48       'child/assert_matching_enums.cc',
49       'child/background_sync/background_sync_provider_thread_proxy.cc',
50       'child/background_sync/background_sync_provider_thread_proxy.h',
51       'child/background_sync/background_sync_provider.cc',
52       'child/background_sync/background_sync_provider.h',
53       'child/background_sync/background_sync_type_converters.cc',
54       'child/background_sync/background_sync_type_converters.h',
55       'child/blink_platform_impl.cc',
56       'child/blink_platform_impl.h',
57       'child/blob_storage/blob_consolidation.cc',
58       'child/blob_storage/blob_consolidation.h',
59       'child/browser_font_resource_trusted.cc',
60       'child/browser_font_resource_trusted.h',
61       'child/child_discardable_shared_memory_manager.cc',
62       'child/child_discardable_shared_memory_manager.h',
63       'child/child_gpu_memory_buffer_manager.cc',
64       'child/child_gpu_memory_buffer_manager.h',
65       'child/child_histogram_message_filter.cc',
66       'child/child_histogram_message_filter.h',
67       'child/child_io_surface_manager_mac.cc',
68       'child/child_io_surface_manager_mac.h',
69       'child/child_message_filter.cc',
70       'child/child_message_filter.h',
71       'child/child_process.cc',
72       'child/child_process.h',
73       'child/child_resource_message_filter.cc',
74       'child/child_resource_message_filter.h',
75       'child/child_shared_bitmap_manager.cc',
76       'child/child_shared_bitmap_manager.h',
77       'child/child_thread_impl.cc',
78       'child/child_thread_impl.h',
79       'child/content_child_helpers.cc',
80       'child/content_child_helpers.h',
81       'child/database_util.cc',
82       'child/database_util.h',
83       'child/db_message_filter.cc',
84       'child/db_message_filter.h',
85       'child/file_info_util.cc',
86       'child/file_info_util.h',
87       'child/fileapi/file_system_dispatcher.cc',
88       'child/fileapi/file_system_dispatcher.h',
89       'child/fileapi/webfilesystem_impl.cc',
90       'child/fileapi/webfilesystem_impl.h',
91       'child/fileapi/webfilewriter_base.cc',
92       'child/fileapi/webfilewriter_base.h',
93       'child/fileapi/webfilewriter_impl.cc',
94       'child/fileapi/webfilewriter_impl.h',
95       'child/ftp_directory_listing_response_delegate.cc',
96       'child/ftp_directory_listing_response_delegate.h',
97       'child/geofencing/geofencing_dispatcher.cc',
98       'child/geofencing/geofencing_dispatcher.h',
99       'child/geofencing/geofencing_message_filter.cc',
100       'child/geofencing/geofencing_message_filter.h',
101       'child/geofencing/web_geofencing_provider_impl.cc',
102       'child/geofencing/web_geofencing_provider_impl.h',
103       'child/image_decoder.cc',
104       'child/image_decoder.h',
105       'child/indexed_db/indexed_db_dispatcher.cc',
106       'child/indexed_db/indexed_db_dispatcher.h',
107       'child/indexed_db/indexed_db_key_builders.cc',
108       'child/indexed_db/indexed_db_key_builders.h',
109       'child/indexed_db/indexed_db_message_filter.cc',
110       'child/indexed_db/indexed_db_message_filter.h',
111       'child/indexed_db/webidbcursor_impl.cc',
112       'child/indexed_db/webidbcursor_impl.h',
113       'child/indexed_db/webidbdatabase_impl.cc',
114       'child/indexed_db/webidbdatabase_impl.h',
115       'child/indexed_db/webidbfactory_impl.cc',
116       'child/indexed_db/webidbfactory_impl.h',
117       'child/mojo/mojo_application.cc',
118       'child/mojo/mojo_application.h',
119       'child/multipart_response_delegate.cc',
120       'child/multipart_response_delegate.h',
121       'child/navigator_connect/service_port_dispatcher_impl.cc',
122       'child/navigator_connect/service_port_dispatcher_impl.h',
123       'child/navigator_connect/service_port_provider.cc',
124       'child/navigator_connect/service_port_provider.h',
125       'child/notifications/notification_data_conversions.cc',
126       'child/notifications/notification_data_conversions.h',
127       'child/notifications/notification_dispatcher.cc',
128       'child/notifications/notification_dispatcher.h',
129       'child/notifications/notification_image_loader.cc',
130       'child/notifications/notification_image_loader.h',
131       'child/notifications/notification_manager.cc',
132       'child/notifications/notification_manager.h',
133       'child/notifications/pending_notifications_tracker.cc',
134       'child/notifications/pending_notifications_tracker.h',
135       'child/npapi/np_channel_base.cc',
136       'child/npapi/np_channel_base.h',
137       'child/npapi/npobject_base.h',
138       'child/npapi/npobject_proxy.cc',
139       'child/npapi/npobject_proxy.h',
140       'child/npapi/npobject_stub.cc',
141       'child/npapi/npobject_stub.h',
142       'child/npapi/npobject_util.cc',
143       'child/npapi/npobject_util.h',
144       'child/npapi/npruntime_util.cc',
145       'child/npapi/npruntime_util.h',
146       'child/npapi/plugin_host.cc',
147       'child/npapi/plugin_host.h',
148       'child/npapi/plugin_instance.cc',
149       'child/npapi/plugin_instance.h',
150       'child/npapi/plugin_instance_mac.mm',
151       'child/npapi/plugin_lib.cc',
152       'child/npapi/plugin_lib.h',
153       'child/npapi/plugin_stream.cc',
154       'child/npapi/plugin_stream.h',
155       'child/npapi/plugin_stream_posix.cc',
156       'child/npapi/plugin_stream_url.cc',
157       'child/npapi/plugin_stream_url.h',
158       'child/npapi/plugin_stream_win.cc',
159       'child/npapi/plugin_string_stream.cc',
160       'child/npapi/plugin_string_stream.h',
161       'child/npapi/plugin_url_fetcher.cc',
162       'child/npapi/plugin_url_fetcher.h',
163       'child/npapi/plugin_web_event_converter_mac.h',
164       'child/npapi/plugin_web_event_converter_mac.mm',
165       'child/npapi/webplugin.h',
166       'child/npapi/webplugin_accelerated_surface_mac.h',
167       'child/npapi/webplugin_delegate.h',
168       'child/npapi/webplugin_delegate_impl.cc',
169       'child/npapi/webplugin_delegate_impl.h',
170       'child/npapi/webplugin_delegate_impl_android.cc',
171       'child/npapi/webplugin_delegate_impl_aura.cc',
172       'child/npapi/webplugin_delegate_impl_mac.mm',
173       'child/npapi/webplugin_delegate_impl_win.cc',
174       'child/npapi/webplugin_ime_win.cc',
175       'child/npapi/webplugin_ime_win.h',
176       'child/npapi/webplugin_resource_client.h',
177       'child/permissions/permission_dispatcher.cc',
178       'child/permissions/permission_dispatcher.h',
179       'child/permissions/permission_dispatcher_thread_proxy.cc',
180       'child/permissions/permission_dispatcher_thread_proxy.h',
181       'child/permissions/permission_observers_registry.cc',
182       'child/permissions/permission_observers_registry.h',
183       'child/plugin_message_generator.cc',
184       'child/plugin_message_generator.h',
185       'child/plugin_messages.h',
186       'child/plugin_param_traits.cc',
187       'child/plugin_param_traits.h',
188       'child/power_monitor_broadcast_source.cc',
189       'child/power_monitor_broadcast_source.h',
190       'child/process_control_impl.cc',
191       'child/process_control_impl.h',
192       'child/push_messaging/push_dispatcher.cc',
193       'child/push_messaging/push_dispatcher.h',
194       'child/push_messaging/push_provider.cc',
195       'child/push_messaging/push_provider.h',
196       'child/quota_dispatcher.cc',
197       'child/quota_dispatcher.h',
198       'child/quota_message_filter.cc',
199       'child/quota_message_filter.h',
200       'child/request_extra_data.cc',
201       'child/request_extra_data.h',
202       'child/request_info.cc',
203       'child/request_info.h',
204       'child/resource_dispatcher.cc',
205       'child/resource_dispatcher.h',
206       'child/resource_scheduling_filter.cc',
207       'child/resource_scheduling_filter.h',
208       'child/runtime_features.cc',
209       'child/runtime_features.h',
210       'child/scoped_child_process_reference.cc',
211       'child/scoped_child_process_reference.h',
212       'child/scoped_web_callbacks.h',
213       'child/shared_memory_data_consumer_handle.cc',
214       'child/shared_memory_data_consumer_handle.h',
215       'child/shared_memory_received_data_factory.cc',
216       'child/shared_memory_received_data_factory.h',
217       'child/service_worker/service_worker_dispatcher.cc',
218       'child/service_worker/service_worker_dispatcher.h',
219       'child/service_worker/service_worker_handle_reference.cc',
220       'child/service_worker/service_worker_handle_reference.h',
221       'child/service_worker/service_worker_message_filter.cc',
222       'child/service_worker/service_worker_message_filter.h',
223       'child/service_worker/service_worker_network_provider.cc',
224       'child/service_worker/service_worker_network_provider.h',
225       'child/service_worker/service_worker_provider_context.cc',
226       'child/service_worker/service_worker_provider_context.h',
227       'child/service_worker/service_worker_registration_handle_reference.cc',
228       'child/service_worker/service_worker_registration_handle_reference.h',
229       'child/service_worker/web_service_worker_impl.cc',
230       'child/service_worker/web_service_worker_impl.h',
231       'child/service_worker/web_service_worker_provider_impl.cc',
232       'child/service_worker/web_service_worker_provider_impl.h',
233       'child/service_worker/web_service_worker_registration_impl.cc',
234       'child/service_worker/web_service_worker_registration_impl.h',
235       'child/shared_worker_devtools_agent.cc',
236       'child/shared_worker_devtools_agent.h',
237       'child/simple_webmimeregistry_impl.cc',
238       'child/simple_webmimeregistry_impl.h',
239       'child/site_isolation_stats_gatherer.cc',
240       'child/site_isolation_stats_gatherer.h',
241       'child/sync_load_response.cc',
242       'child/sync_load_response.h',
243       'child/thread_safe_sender.cc',
244       'child/thread_safe_sender.h',
245       'child/threaded_data_provider.cc',
246       'child/threaded_data_provider.h',
247       'child/v8_value_converter_impl.cc',
248       'child/v8_value_converter_impl.h',
249       'child/web_data_consumer_handle_impl.cc',
250       'child/web_data_consumer_handle_impl.h',
251       'child/web_database_observer_impl.cc',
252       'child/web_database_observer_impl.h',
253       'child/web_discardable_memory_impl.cc',
254       'child/web_discardable_memory_impl.h',
255       'child/web_memory_allocator_dump_impl.cc',
256       'child/web_memory_allocator_dump_impl.h',
257       'child/web_memory_dump_provider_adapter.cc',
258       'child/web_memory_dump_provider_adapter.h',
259       'child/web_process_memory_dump_impl.cc',
260       'child/web_process_memory_dump_impl.h',
261       'child/web_url_loader_impl.cc',
262       'child/web_url_loader_impl.h',
263       'child/web_url_request_util.cc',
264       'child/web_url_request_util.h',
265       'child/webblobregistry_impl.cc',
266       'child/webblobregistry_impl.h',
267       'child/webfallbackthemeengine_impl.cc',
268       'child/webfallbackthemeengine_impl.h',
269       'child/webfileutilities_impl.cc',
270       'child/webfileutilities_impl.h',
271       'child/webmessageportchannel_impl.cc',
272       'child/webmessageportchannel_impl.h',
273       'child/websocket_bridge.cc',
274       'child/websocket_bridge.h',
275       'child/websocket_dispatcher.cc',
276       'child/websocket_dispatcher.h',
277       'child/webthemeengine_impl_android.cc',
278       'child/webthemeengine_impl_android.h',
279       'child/webthemeengine_impl_default.cc',
280       'child/webthemeengine_impl_default.h',
281       'child/webthemeengine_impl_mac.h',
282       'child/weburlresponse_extradata_impl.cc',
283       'child/weburlresponse_extradata_impl.h',
284       'child/worker_task_runner.cc',
285       'child/worker_task_runner.h',
286       'child/worker_thread_impl.cc',
287       'child/worker_thread_impl.h',
288       'child/worker_thread_message_filter.cc',
289       'child/worker_thread_message_filter.h',
290     ],
291   },
292   'sources': [
293     '<@(public_child_sources)',
294     '<@(private_child_sources)',
295   ],
296   'conditions': [
297     ['use_default_render_theme==0',
298       {
299         'sources/': [
300           ['exclude', 'child/webthemeengine_impl_default.cc'],
301           ['exclude', 'child/webthemeengine_impl_default.h'],
302         ],
303       }
304     ],
305     ['OS=="android"', {
306       'dependencies': [
307         '../build/android/ndk.gyp:cpu_features',
308       ],
309     }],
310     ['enable_plugins==0', {
311       'sources!': [
312         'child/browser_font_resource_trusted.cc',
313       ],
314       'sources/': [
315         ['exclude', '^child/npapi/plugin_'],
316         ['exclude', '^child/npapi/webplugin_'],
317       ],
318     }],
319     ['OS=="ios"', {
320       'sources/': [
321         # iOS only needs a small portion of content; exclude all the
322         # implementation, and re-include what is used.
323         ['exclude', '\\.(cc|mm)$'],
324       ],
325     }, {  # OS!="ios"
326       'dependencies': [
327         'app/resources/content_resources.gyp:content_resources',
328         'app/strings/content_strings.gyp:content_strings',
329         '../components/scheduler/scheduler.gyp:scheduler',
330         '../storage/storage_common.gyp:storage_common',
331         '../third_party/WebKit/public/blink.gyp:blink',
332         '../third_party/WebKit/public/blink_resources.gyp:blink_image_resources',
333         '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
334         '../third_party/npapi/npapi.gyp:npapi',
335       ],
336     }],
337     ['use_aura==1', {
338       'sources!': [
339         'child/npapi/webplugin_delegate_impl_mac.mm',
340       ],
341     }],
342     ['OS=="win"', {
343       'sources!': [
344         'child/npapi/webplugin_delegate_impl_aura.cc',
345       ],
346     }],
347   ],