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