Fixing problem with edge swipe exiting immersive mode
[chromium-blink-merge.git] / content / content_child.gypi
bloba187223f213b24d026c94a162c9784b30382e4a1
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.gyp:mojo_environment_chromium',
10     '../mojo/mojo.gyp:mojo_service_provider_bindings',
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/blink_glue.cc',
39       'child/blink_glue.h',
40       'child/blink_platform_impl.cc',
41       'child/blink_platform_impl.h',
42       'child/browser_font_resource_trusted.cc',
43       'child/browser_font_resource_trusted.h',
44       'child/child_histogram_message_filter.cc',
45       'child/child_histogram_message_filter.h',
46       'child/child_message_filter.cc',
47       'child/child_message_filter.h',
48       'child/child_process.cc',
49       'child/child_process.h',
50       'child/child_resource_message_filter.cc',
51       'child/child_resource_message_filter.h',
52       'child/child_shared_bitmap_manager.cc',
53       'child/child_shared_bitmap_manager.h',
54       'child/child_thread.cc',
55       'child/child_thread.h',
56       'child/content_child_helpers.cc',
57       'child/content_child_helpers.h',
58       'child/database_util.cc',
59       'child/database_util.h',
60       'child/db_message_filter.cc',
61       'child/db_message_filter.h',
62       'child/fileapi/file_system_dispatcher.cc',
63       'child/fileapi/file_system_dispatcher.h',
64       'child/fileapi/webfilesystem_impl.cc',
65       'child/fileapi/webfilesystem_impl.h',
66       'child/fileapi/webfilewriter_base.cc',
67       'child/fileapi/webfilewriter_base.h',
68       'child/fileapi/webfilewriter_impl.cc',
69       'child/fileapi/webfilewriter_impl.h',
70       'child/fling_animator_impl_android.cc',
71       'child/fling_animator_impl_android.h',
72       'child/fling_curve_configuration.cc',
73       'child/fling_curve_configuration.h',
74       'child/ftp_directory_listing_response_delegate.cc',
75       'child/ftp_directory_listing_response_delegate.h',
76       'child/image_decoder.cc',
77       'child/image_decoder.h',
78       'child/indexed_db/indexed_db_dispatcher.cc',
79       'child/indexed_db/indexed_db_dispatcher.h',
80       'child/indexed_db/indexed_db_key_builders.cc',
81       'child/indexed_db/indexed_db_key_builders.h',
82       'child/indexed_db/indexed_db_message_filter.cc',
83       'child/indexed_db/indexed_db_message_filter.h',
84       'child/indexed_db/webidbcursor_impl.cc',
85       'child/indexed_db/webidbcursor_impl.h',
86       'child/indexed_db/webidbdatabase_impl.cc',
87       'child/indexed_db/webidbdatabase_impl.h',
88       'child/indexed_db/webidbfactory_impl.cc',
89       'child/indexed_db/webidbfactory_impl.h',
90       'child/mojo/mojo_application.cc',
91       'child/mojo/mojo_application.h',
92       'child/npapi/np_channel_base.cc',
93       'child/npapi/np_channel_base.h',
94       'child/npapi/npobject_base.h',
95       'child/npapi/npobject_proxy.cc',
96       'child/npapi/npobject_proxy.h',
97       'child/npapi/npobject_stub.cc',
98       'child/npapi/npobject_stub.h',
99       'child/npapi/npobject_util.cc',
100       'child/npapi/npobject_util.h',
101       'child/npapi/npruntime_util.cc',
102       'child/npapi/npruntime_util.h',
103       'child/npapi/plugin_host.cc',
104       'child/npapi/plugin_host.h',
105       'child/npapi/plugin_instance.cc',
106       'child/npapi/plugin_instance.h',
107       'child/npapi/plugin_instance_mac.mm',
108       'child/npapi/plugin_lib.cc',
109       'child/npapi/plugin_lib.h',
110       'child/npapi/plugin_stream.cc',
111       'child/npapi/plugin_stream.h',
112       'child/npapi/plugin_stream_posix.cc',
113       'child/npapi/plugin_stream_url.cc',
114       'child/npapi/plugin_stream_url.h',
115       'child/npapi/plugin_stream_win.cc',
116       'child/npapi/plugin_string_stream.cc',
117       'child/npapi/plugin_string_stream.h',
118       'child/npapi/plugin_url_fetcher.cc',
119       'child/npapi/plugin_url_fetcher.h',
120       'child/npapi/plugin_web_event_converter_mac.h',
121       'child/npapi/plugin_web_event_converter_mac.mm',
122       'child/npapi/webplugin.h',
123       'child/npapi/webplugin_accelerated_surface_mac.h',
124       'child/npapi/webplugin_delegate.h',
125       'child/npapi/webplugin_delegate_impl.cc',
126       'child/npapi/webplugin_delegate_impl.h',
127       'child/npapi/webplugin_delegate_impl_android.cc',
128       'child/npapi/webplugin_delegate_impl_aura.cc',
129       'child/npapi/webplugin_delegate_impl_mac.mm',
130       'child/npapi/webplugin_delegate_impl_win.cc',
131       'child/npapi/webplugin_ime_win.cc',
132       'child/npapi/webplugin_ime_win.h',
133       'child/npapi/webplugin_resource_client.h',
134       'child/plugin_message_generator.cc',
135       'child/plugin_message_generator.h',
136       'child/plugin_messages.h',
137       'child/plugin_param_traits.cc',
138       'child/plugin_param_traits.h',
139       'child/power_monitor_broadcast_source.cc',
140       'child/power_monitor_broadcast_source.h',
141       'child/quota_dispatcher.cc',
142       'child/quota_dispatcher.h',
143       'child/quota_message_filter.cc',
144       'child/quota_message_filter.h',
145       'child/request_extra_data.cc',
146       'child/request_extra_data.h',
147       'child/request_info.cc',
148       'child/request_info.h',
149       'child/resource_dispatcher.cc',
150       'child/resource_dispatcher.h',
151       'child/runtime_features.cc',
152       'child/runtime_features.h',
153       'child/scoped_child_process_reference.cc',
154       'child/scoped_child_process_reference.h',
155       'child/service_worker/service_worker_handle_reference.cc',
156       'child/service_worker/service_worker_handle_reference.h',
157       'child/service_worker/service_worker_dispatcher.cc',
158       'child/service_worker/service_worker_dispatcher.h',
159       'child/service_worker/service_worker_message_filter.cc',
160       'child/service_worker/service_worker_message_filter.h',
161       'child/service_worker/service_worker_network_provider.cc',
162       'child/service_worker/service_worker_network_provider.h',
163       'child/service_worker/service_worker_provider_context.cc',
164       'child/service_worker/service_worker_provider_context.h',
165       'child/service_worker/web_service_worker_impl.cc',
166       'child/service_worker/web_service_worker_impl.h',
167       'child/service_worker/web_service_worker_provider_impl.cc',
168       'child/service_worker/web_service_worker_provider_impl.h',
169       'child/shared_worker_devtools_agent.cc',
170       'child/shared_worker_devtools_agent.h',
171       'child/simple_webmimeregistry_impl.cc',
172       'child/simple_webmimeregistry_impl.h',
173       'child/site_isolation_policy.cc',
174       'child/site_isolation_policy.h',
175       'child/socket_stream_dispatcher.cc',
176       'child/socket_stream_dispatcher.h',
177       'child/sync_load_response.cc',
178       'child/sync_load_response.h',
179       'child/thread_safe_sender.cc',
180       'child/thread_safe_sender.h',
181       'child/touch_fling_gesture_curve.cc',
182       'child/touch_fling_gesture_curve.h',
183       'child/web_database_observer_impl.cc',
184       'child/web_database_observer_impl.h',
185       'child/web_discardable_memory_impl.cc',
186       'child/web_discardable_memory_impl.h',
187       'child/web_socket_stream_handle_bridge.h',
188       'child/web_socket_stream_handle_delegate.h',
189       'child/web_socket_stream_handle_impl.cc',
190       'child/web_socket_stream_handle_impl.h',
191       'child/web_url_loader_impl.cc',
192       'child/web_url_loader_impl.h',
193       'child/webblobregistry_impl.cc',
194       'child/webblobregistry_impl.h',
195       'child/webcrypto/crypto_data.cc',
196       'child/webcrypto/crypto_data.h',
197       'child/webcrypto/jwk.cc',
198       'child/webcrypto/jwk.h',
199       'child/webcrypto/platform_crypto.h',
200       'child/webcrypto/platform_crypto_nss.cc',
201       'child/webcrypto/platform_crypto_openssl.cc',
202       'child/webcrypto/shared_crypto.cc',
203       'child/webcrypto/shared_crypto.h',
204       'child/webcrypto/status.cc',
205       'child/webcrypto/status.h',
206       'child/webcrypto/webcrypto_impl.cc',
207       'child/webcrypto/webcrypto_impl.h',
208       'child/webcrypto/webcrypto_util.cc',
209       'child/webcrypto/webcrypto_util.h',
210       'child/webfallbackthemeengine_impl.cc',
211       'child/webfallbackthemeengine_impl.h',
212       'child/webfileutilities_impl.cc',
213       'child/webfileutilities_impl.h',
214       'child/webmessageportchannel_impl.cc',
215       'child/webmessageportchannel_impl.h',
216       'child/websocket_bridge.cc',
217       'child/websocket_bridge.h',
218       'child/websocket_dispatcher.cc',
219       'child/websocket_dispatcher.h',
220       'child/webthemeengine_impl_android.cc',
221       'child/webthemeengine_impl_android.h',
222       'child/webthemeengine_impl_default.cc',
223       'child/webthemeengine_impl_default.h',
224       'child/webthemeengine_impl_mac.cc',
225       'child/webthemeengine_impl_mac.h',
226       'child/webthread_impl.cc',
227       'child/webthread_impl.h',
228       'child/worker_task_runner.cc',
229       'child/worker_task_runner.h',
230       'child/worker_thread_task_runner.cc',
231       'child/worker_thread_task_runner.h',
232     ],
233   },
234   'sources': [
235     '<@(public_child_sources)',
236     '<@(private_child_sources)',
237   ],
238   'conditions': [
239     ['use_default_render_theme==0',
240       {
241         'sources/': [
242           ['exclude', 'child/webthemeengine_impl_default.cc'],
243           ['exclude', 'child/webthemeengine_impl_default.h'],
244         ],
245       }
246     ],
247     ['OS=="android"', {
248       'includes': [
249         '../build/android/cpufeatures.gypi',
250       ],
251     }],
252     ['enable_plugins==0', {
253       'sources!': [
254         'child/browser_font_resource_trusted.cc',
255       ],
256       'sources/': [
257         ['exclude', '^child/npapi/plugin_'],
258         ['exclude', '^child/npapi/webplugin_'],
259       ],
260     }],
261     ['OS=="ios"', {
262       'sources/': [
263         # iOS only needs a small portion of content; exclude all the
264         # implementation, and re-include what is used.
265         ['exclude', '\\.(cc|mm)$'],
266       ],
267     }, {  # OS!="ios"
268       'dependencies': [
269         '../third_party/WebKit/public/blink.gyp:blink',
270         '../third_party/npapi/npapi.gyp:npapi',
271         '../webkit/child/webkit_child.gyp:webkit_child',
272         '../webkit/common/webkit_common.gyp:webkit_common',
273         '../webkit/webkit_resources.gyp:webkit_resources',
274       ],
275     }],
276     ['use_aura==1', {
277       'sources!': [
278         'child/npapi/webplugin_delegate_impl_mac.mm',
279       ],
280     }],
281     ['OS=="win"', {
282       'sources!': [
283         'child/npapi/webplugin_delegate_impl_aura.cc',
284       ],
285     }],
286     ['use_openssl==1', {
287       'sources!': [
288         'child/webcrypto/platform_crypto_nss.cc',
289       ],
290       'dependencies': [
291         '../third_party/openssl/openssl.gyp:openssl',
292       ],
293     }, {
294       'sources!': [
295         'child/webcrypto/platform_crypto_openssl.cc',
296       ],
297       'conditions': [
298         ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
299           'dependencies': [
300             '../build/linux/system.gyp:ssl',
301           ],
302         }, {
303           'dependencies': [
304             '../third_party/nss/nss.gyp:nspr',
305             '../third_party/nss/nss.gyp:nss',
306           ],
307         }],
308       ],
309     }],
310   ],