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.
10 'target_name': 'libwebviewchromium',
11 'type': 'shared_library',
12 'android_unmangled_name': 1,
14 'android_webview_common',
17 # Avoid clashes between the versions of this library built with
18 # android_webview_build==1 by using a different name prefix.
19 [ 'android_webview_build==0', {
20 'product_prefix': 'libstandalone',
22 [ 'android_webview_build==1', {
23 # When building inside the android tree we also need to depend on all
24 # the java sources generated from templates which will be needed by
25 # android_webview_java in android_webview/Android.mk.
27 '../base/base.gyp:base_java_application_state',
28 '../base/base.gyp:base_java_memory_pressure_level_list',
29 '../content/content.gyp:content_gamepad_mapping',
30 '../content/content.gyp:gesture_event_type_java',
31 '../content/content.gyp:page_transition_types_java',
32 '../content/content.gyp:popup_item_type_java',
33 '../content/content.gyp:result_codes_java',
34 '../content/content.gyp:screen_orientation_values_java',
35 '../content/content.gyp:speech_recognition_error_java',
36 '../media/media.gyp:media_android_imageformat_list',
37 '../net/net.gyp:cert_verify_status_android_java',
38 '../net/net.gyp:certificate_mime_types_java',
39 '../net/net.gyp:net_errors_java',
40 '../net/net.gyp:private_key_types_java',
41 '../ui/android/ui_android.gyp:bitmap_format_java',
42 '../ui/android/ui_android.gyp:window_open_disposition_java',
45 [ 'android_webview_build==1 and use_system_skia==0', {
46 # When not using the system skia there are linker warnings about
47 # overriden hidden symbols which there's no easy way to eliminate;
48 # disable them. http://crbug.com/157326
50 '-Wl,--no-fatal-warnings',
53 '-Wl,--fatal-warnings',
58 'lib/main/webview_entry_point.cc',
62 'target_name': 'android_webview_pak',
65 '<(DEPTH)/content/content_resources.gyp:content_resources',
66 '<(DEPTH)/net/net.gyp:net_resources',
67 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
68 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
72 'action_name': 'repack_android_webview_pack',
75 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
76 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
77 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
78 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
79 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
81 'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
83 'includes': [ '../build/repack_action.gypi' ],
88 'target_name': 'android_webview_common',
89 'type': 'static_library',
91 '../android_webview/native/webview_native.gyp:webview_native',
92 '../components/components.gyp:auto_login_parser',
93 '../components/components.gyp:autofill_content_renderer',
94 '../components/components.gyp:cdm_browser',
95 '../components/components.gyp:cdm_renderer',
96 '../components/components.gyp:data_reduction_proxy_browser',
97 '../components/components.gyp:navigation_interception',
98 '../components/components.gyp:visitedlink_browser',
99 '../components/components.gyp:visitedlink_renderer',
100 '../components/components.gyp:web_contents_delegate_android',
101 '../content/content.gyp:content_app_both',
102 '../gpu/gpu.gyp:command_buffer_service',
103 '../gpu/gpu.gyp:gles2_implementation',
104 '../gpu/gpu.gyp:gl_in_process_context',
105 '../media/media.gyp:media',
106 '../printing/printing.gyp:printing',
107 '../skia/skia.gyp:skia',
108 '../third_party/WebKit/public/blink.gyp:blink',
109 '../ui/gl/gl.gyp:gl',
110 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
111 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
112 'android_webview_pak',
117 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/',
120 'browser/aw_browser_context.cc',
121 'browser/aw_browser_context.h',
122 'browser/aw_browser_main_parts.cc',
123 'browser/aw_browser_main_parts.h',
124 'browser/aw_browser_permission_request_delegate.h',
125 'browser/aw_contents_client_bridge_base.cc',
126 'browser/aw_contents_client_bridge_base.h',
127 'browser/aw_content_browser_client.cc',
128 'browser/aw_content_browser_client.h',
129 'browser/aw_contents_io_thread_client.h',
130 'browser/aw_cookie_access_policy.cc',
131 'browser/aw_cookie_access_policy.h',
132 'browser/aw_download_manager_delegate.cc',
133 'browser/aw_download_manager_delegate.h',
134 'browser/aw_form_database_service.cc',
135 'browser/aw_form_database_service.h',
136 'browser/aw_gl_surface.cc',
137 'browser/aw_gl_surface.h',
138 'browser/aw_http_auth_handler_base.cc',
139 'browser/aw_http_auth_handler_base.h',
140 'browser/aw_javascript_dialog_manager.cc',
141 'browser/aw_javascript_dialog_manager.h',
142 'browser/aw_login_delegate.cc',
143 'browser/aw_login_delegate.h',
144 'browser/aw_pref_store.cc',
145 'browser/aw_pref_store.h',
146 'browser/aw_quota_manager_bridge.cc',
147 'browser/aw_quota_manager_bridge.h',
148 'browser/aw_quota_permission_context.cc',
149 'browser/aw_quota_permission_context.h',
150 'browser/aw_request_interceptor.cc',
151 'browser/aw_request_interceptor.h',
152 'browser/aw_resource_context.cc',
153 'browser/aw_resource_context.h',
154 'browser/aw_result_codes.h',
155 'browser/aw_web_preferences_populater.cc',
156 'browser/aw_web_preferences_populater.h',
157 'browser/browser_view_renderer.cc',
158 'browser/browser_view_renderer.h',
159 'browser/browser_view_renderer_client.h',
160 'browser/deferred_gpu_command_service.cc',
161 'browser/deferred_gpu_command_service.h',
162 'browser/find_helper.cc',
163 'browser/find_helper.h',
164 'browser/global_tile_manager.cc',
165 'browser/global_tile_manager.h',
166 'browser/global_tile_manager_client.h',
167 'browser/gpu_memory_buffer_factory_impl.cc',
168 'browser/gpu_memory_buffer_factory_impl.h',
169 'browser/hardware_renderer.cc',
170 'browser/hardware_renderer.h',
171 'browser/hardware_renderer_legacy.cc',
172 'browser/hardware_renderer_legacy.h',
173 'browser/hardware_renderer_interface.h',
174 'browser/icon_helper.cc',
175 'browser/icon_helper.h',
176 'browser/input_stream.h',
177 'browser/intercepted_request_data.cc',
178 'browser/intercepted_request_data.h',
179 'browser/jni_dependency_factory.h',
180 'browser/gl_view_renderer_manager.cc',
181 'browser/gl_view_renderer_manager.h',
182 'browser/net/android_stream_reader_url_request_job.cc',
183 'browser/net/android_stream_reader_url_request_job.h',
184 'browser/net/aw_network_delegate.cc',
185 'browser/net/aw_network_delegate.h',
186 'browser/net/aw_url_request_context_getter.cc',
187 'browser/net/aw_url_request_context_getter.h',
188 'browser/net/aw_url_request_job_factory.cc',
189 'browser/net/aw_url_request_job_factory.h',
190 'browser/net_disk_cache_remover.cc',
191 'browser/net_disk_cache_remover.h',
192 'browser/net/init_native_callback.h',
193 'browser/net/input_stream_reader.cc',
194 'browser/net/input_stream_reader.h',
195 'browser/parent_output_surface.cc',
196 'browser/parent_output_surface.h',
197 'browser/renderer_host/aw_render_view_host_ext.cc',
198 'browser/renderer_host/aw_render_view_host_ext.h',
199 'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
200 'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
201 'browser/renderer_host/print_manager.cc',
202 'browser/renderer_host/print_manager.h',
203 'browser/scoped_allow_wait_for_legacy_web_view_api.h',
204 'browser/scoped_app_gl_state_restore.cc',
205 'browser/scoped_app_gl_state_restore.h',
206 'browser/shared_renderer_state.cc',
207 'browser/shared_renderer_state.h',
208 'common/android_webview_message_generator.cc',
209 'common/android_webview_message_generator.h',
210 'common/aw_content_client.cc',
211 'common/aw_content_client.h',
212 'common/aw_hit_test_data.cc',
213 'common/aw_hit_test_data.h',
214 'common/aw_resource.h',
215 'common/aw_switches.cc',
216 'common/aw_switches.h',
217 'common/devtools_instrumentation.h',
218 'common/print_messages.cc',
219 'common/print_messages.h',
220 'common/render_view_messages.cc',
221 'common/render_view_messages.h',
222 'common/url_constants.cc',
223 'common/url_constants.h',
224 'lib/aw_browser_dependency_factory_impl.cc',
225 'lib/aw_browser_dependency_factory_impl.h',
226 'lib/main/aw_main_delegate.cc',
227 'lib/main/aw_main_delegate.h',
228 'public/browser/draw_gl.h',
229 'renderer/aw_content_renderer_client.cc',
230 'renderer/aw_content_renderer_client.h',
231 'renderer/aw_key_systems.cc',
232 'renderer/aw_key_systems.h',
233 'renderer/aw_permission_client.cc',
234 'renderer/aw_permission_client.h',
235 'renderer/aw_render_process_observer.cc',
236 'renderer/aw_render_process_observer.h',
237 'renderer/aw_render_frame_ext.cc',
238 'renderer/aw_render_frame_ext.h',
239 'renderer/aw_render_view_ext.cc',
240 'renderer/aw_render_view_ext.h',
241 'renderer/print_web_view_helper.cc',
242 'renderer/print_web_view_helper.h',
243 'renderer/print_web_view_helper_android.cc',
244 'renderer/print_web_view_helper_linux.cc',
245 'renderer/print_render_frame_observer.cc',
246 'renderer/print_render_frame_observer.h',
251 ['android_webview_build==0', {
253 'android_webview_tests.gypi',
257 'target_name': 'android_webview_java',
260 '../components/components.gyp:navigation_interception_java',
261 '../components/components.gyp:web_contents_delegate_android_java',
262 '../content/content.gyp:content_java',
263 '../ui/android/ui_android.gyp:ui_java',
266 'java_in_dir': '../android_webview/java',
268 'includes': [ '../build/java.gypi' ],
271 }, { # android_webview_build==1
274 'target_name': 'android_webview_strings',
276 'android_unmangled_name': 1,
278 '../content/content.gyp:content_strings_grd',
279 '../ui/android/ui_android.gyp:ui_strings_grd',