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