Don't reset the database when there was an I/O error.
[chromium-blink-merge.git] / android_webview / android_webview.gyp
blob824e610cb0f573c84c27ef0969a30ed8703d0847
1 # Copyright 2009 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.
5   'variables': {
6     'chromium_code': 1,
7   },
8   'includes': [
9     'android_webview_tests.gypi',
10   ],
11   'targets': [
12     {
13       'target_name': 'libwebviewchromium',
14       'type': 'shared_library',
15       'android_unmangled_name': 1,
16       'dependencies': [
17         'android_webview_common',
18       ],
19       'conditions': [
20         # The general approach is to allow the executable target to choose
21         # the allocator, but as in the WebView case we are building a library
22         # only, put the dependency on the allocator here
23         [ 'android_webview_build==1 and android_use_tcmalloc==1', {
24           'dependencies': [
25             '../base/allocator/allocator.gyp:allocator', ],
26         }],
27         [ 'android_webview_build==1 and use_system_skia==0', {
28           # When not using the system skia there are linker warnings about
29           # overriden hidden symbols which there's no easy way to eliminate;
30           # disable them. http://crbug.com/157326
31           'ldflags': [
32             '-Wl,--no-fatal-warnings',
33           ],
34           'ldflags!': [
35             '-Wl,--fatal-warnings',
36           ],
37         }],
38       ],
39       'sources': [
40         'lib/main/webview_entry_point.cc',
41       ],
42     },
43     {
44       'target_name': 'android_webview_pak',
45       'type': 'none',
46       'dependencies': [
47         '<(DEPTH)/content/content_resources.gyp:content_resources',
48         '<(DEPTH)/net/net.gyp:net_resources',
49         '<(DEPTH)/ui/ui.gyp:ui_resources',
50         '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
51       ],
52       'variables': {
53         'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
54       },
55       'actions': [
56         {
57           'action_name': 'repack_android_webview_pack',
58           'variables': {
59             'pak_inputs': [
60               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
61               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
62               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
63               '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
64               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
65             ],
66           },
67           'inputs': [
68             '<(repack_path)',
69             '<@(pak_inputs)',
70           ],
71           'outputs': [
72             '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
73           ],
74           'action': ['python', '<(repack_path)', '<@(_outputs)',
75                      '<@(pak_inputs)'],
76         }
77       ],
78     },
79     {
80       'target_name': 'android_webview_common',
81       'type': 'static_library',
82       'dependencies': [
83         '../android_webview/native/webview_native.gyp:webview_native',
84         '../components/components.gyp:auto_login_parser',
85         '../components/components.gyp:autofill_content_renderer',
86         '../components/components.gyp:navigation_interception',
87         '../components/components.gyp:visitedlink_browser',
88         '../components/components.gyp:visitedlink_renderer',
89         '../components/components.gyp:web_contents_delegate_android',
90         '../content/content.gyp:content_app_both',
91         '../skia/skia.gyp:skia',
92         '../gpu/gpu.gyp:command_buffer_service',
93         '../gpu/gpu.gyp:gles2_implementation',
94         '../ui/gl/gl.gyp:gl',
95         '../ui/ui.gyp:shell_dialogs',
96         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
97         'android_webview_pak',
98       ],
99       'include_dirs': [
100         '..',
101         '../skia/config',
102         '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/',
103       ],
104       'sources': [
105         'browser/aw_browser_context.cc',
106         'browser/aw_browser_context.h',
107         'browser/aw_browser_main_parts.cc',
108         'browser/aw_browser_main_parts.h',
109         'browser/aw_contents_client_bridge_base.cc',
110         'browser/aw_contents_client_bridge_base.h',
111         'browser/aw_content_browser_client.cc',
112         'browser/aw_content_browser_client.h',
113         'browser/aw_contents_io_thread_client.h',
114         'browser/aw_cookie_access_policy.cc',
115         'browser/aw_cookie_access_policy.h',
116         'browser/aw_download_manager_delegate.cc',
117         'browser/aw_download_manager_delegate.h',
118         'browser/aw_form_database_service.cc',
119         'browser/aw_form_database_service.h',
120         'browser/aw_gl_surface.cc',
121         'browser/aw_gl_surface.h',
122         'browser/aw_http_auth_handler_base.cc',
123         'browser/aw_http_auth_handler_base.h',
124         'browser/aw_javascript_dialog_manager.cc',
125         'browser/aw_javascript_dialog_manager.h',
126         'browser/aw_login_delegate.cc',
127         'browser/aw_login_delegate.h',
128         'browser/aw_pref_store.cc',
129         'browser/aw_pref_store.h',
130         'browser/aw_quota_manager_bridge.cc',
131         'browser/aw_quota_manager_bridge.h',
132         'browser/aw_quota_permission_context.cc',
133         'browser/aw_quota_permission_context.h',
134         'browser/aw_request_interceptor.cc',
135         'browser/aw_request_interceptor.h',
136         'browser/aw_result_codes.h',
137         'browser/aw_web_preferences_populater.cc',
138         'browser/aw_web_preferences_populater.h',
139         'browser/browser_view_renderer.h',
140         'browser/find_helper.cc',
141         'browser/find_helper.h',
142         'browser/gpu_memory_buffer_factory_impl.cc',
143         'browser/gpu_memory_buffer_factory_impl.h',
144         'browser/icon_helper.cc',
145         'browser/icon_helper.h',
146         'browser/in_process_view_renderer.cc',
147         'browser/in_process_view_renderer.h',
148         'browser/input_stream.h',
149         'browser/intercepted_request_data.h',
150         'browser/jni_dependency_factory.h',
151         'browser/gl_view_renderer_manager.cc',
152         'browser/gl_view_renderer_manager.h',
153         'browser/net/android_stream_reader_url_request_job.cc',
154         'browser/net/android_stream_reader_url_request_job.h',
155         'browser/net/aw_network_delegate.cc',
156         'browser/net/aw_network_delegate.h',
157         'browser/net/aw_url_request_context_getter.cc',
158         'browser/net/aw_url_request_context_getter.h',
159         'browser/net/aw_url_request_job_factory.cc',
160         'browser/net/aw_url_request_job_factory.h',
161         'browser/net_disk_cache_remover.cc',
162         'browser/net_disk_cache_remover.h',
163         'browser/net/init_native_callback.h',
164         'browser/net/input_stream_reader.cc',
165         'browser/net/input_stream_reader.h',
166         'browser/renderer_host/aw_render_view_host_ext.cc',
167         'browser/renderer_host/aw_render_view_host_ext.h',
168         'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
169         'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
170         'browser/scoped_allow_wait_for_legacy_web_view_api.h',
171         'browser/scoped_app_gl_state_restore.cc',
172         'browser/scoped_app_gl_state_restore.h',
173         'common/android_webview_message_generator.cc',
174         'common/android_webview_message_generator.h',
175         'common/aw_content_client.cc',
176         'common/aw_content_client.h',
177         'common/aw_hit_test_data.cc',
178         'common/aw_hit_test_data.h',
179         'common/aw_resource.h',
180         'common/aw_switches.cc',
181         'common/aw_switches.h',
182         'common/render_view_messages.cc',
183         'common/render_view_messages.h',
184         'common/url_constants.cc',
185         'common/url_constants.h',
186         'lib/aw_browser_dependency_factory_impl.cc',
187         'lib/aw_browser_dependency_factory_impl.h',
188         'lib/main/aw_main_delegate.cc',
189         'lib/main/aw_main_delegate.h',
190         'public/browser/draw_gl.h',
191         'renderer/aw_content_renderer_client.cc',
192         'renderer/aw_content_renderer_client.h',
193         'renderer/aw_render_process_observer.cc',
194         'renderer/aw_render_process_observer.h',
195         'renderer/aw_render_view_ext.cc',
196         'renderer/aw_render_view_ext.h',
197       ],
198     },
199     {
200       'target_name': 'android_webview_java',
201       'type': 'none',
202       'dependencies': [
203         '../components/components.gyp:navigation_interception_java',
204         '../components/components.gyp:web_contents_delegate_android_java',
205         '../content/content.gyp:content_java',
206         '../ui/ui.gyp:ui_java',
207       ],
208       'variables': {
209         'java_in_dir': '../android_webview/java',
210       },
211       'includes': [ '../build/java.gypi' ],
212     },
213   ],