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/java_library_common.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:selection_event_type_java',
36 '../content/content.gyp:speech_recognition_error_java',
37 '../media/media.gyp:media_android_imageformat_list',
38 '../net/net.gyp:cert_verify_status_android_java',
39 '../net/net.gyp:certificate_mime_types_java',
40 '../net/net.gyp:net_errors_java',
41 '../net/net.gyp:private_key_types_java',
42 '../ui/android/ui_android.gyp:bitmap_format_java',
43 '../ui/android/ui_android.gyp:window_open_disposition_java',
46 [ 'android_webview_build==1 and use_system_skia==0', {
47 # When not using the system skia there are linker warnings about
48 # overriden hidden symbols which there's no easy way to eliminate;
49 # disable them. http://crbug.com/157326
51 '-Wl,--no-fatal-warnings',
54 '-Wl,--fatal-warnings',
59 'lib/main/webview_entry_point.cc',
63 'target_name': 'android_webview_pak',
66 '<(DEPTH)/content/content_resources.gyp:content_resources',
67 '<(DEPTH)/net/net.gyp:net_resources',
68 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
69 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
70 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
74 'action_name': 'repack_android_webview_pack',
77 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
78 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
79 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
80 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
81 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
83 'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
85 'includes': [ '../build/repack_action.gypi' ],
88 'action_name': 'add_en_US_pak_locale',
90 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak'],
91 'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak',
93 'includes': [ '../build/repack_action.gypi' ],
98 'target_name': 'android_webview_common',
99 'type': 'static_library',
101 '../android_webview/native/webview_native.gyp:webview_native',
102 '../components/components.gyp:auto_login_parser',
103 '../components/components.gyp:autofill_content_renderer',
104 '../components/components.gyp:cdm_browser',
105 '../components/components.gyp:cdm_renderer',
106 '../components/components.gyp:data_reduction_proxy_browser',
107 '../components/components.gyp:navigation_interception',
108 '../components/components.gyp:visitedlink_browser',
109 '../components/components.gyp:visitedlink_renderer',
110 '../components/components.gyp:web_contents_delegate_android',
111 '../content/content.gyp:content_app_both',
112 '../gpu/gpu.gyp:command_buffer_service',
113 '../gpu/gpu.gyp:gles2_implementation',
114 '../gpu/gpu.gyp:gl_in_process_context',
115 '../media/media.gyp:media',
116 '../printing/printing.gyp:printing',
117 '../skia/skia.gyp:skia',
118 '../third_party/WebKit/public/blink.gyp:blink',
119 '../v8/tools/gyp/v8.gyp:v8',
120 '../ui/gl/gl.gyp:gl',
121 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
122 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
123 'android_webview_pak',
128 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/',
131 'browser/aw_browser_context.cc',
132 'browser/aw_browser_context.h',
133 'browser/aw_browser_main_parts.cc',
134 'browser/aw_browser_main_parts.h',
135 'browser/aw_browser_permission_request_delegate.h',
136 'browser/aw_contents_client_bridge_base.cc',
137 'browser/aw_contents_client_bridge_base.h',
138 'browser/aw_content_browser_client.cc',
139 'browser/aw_content_browser_client.h',
140 'browser/aw_contents_io_thread_client.h',
141 'browser/aw_cookie_access_policy.cc',
142 'browser/aw_cookie_access_policy.h',
143 'browser/aw_download_manager_delegate.cc',
144 'browser/aw_download_manager_delegate.h',
145 'browser/aw_form_database_service.cc',
146 'browser/aw_form_database_service.h',
147 'browser/aw_gl_surface.cc',
148 'browser/aw_gl_surface.h',
149 'browser/aw_http_auth_handler_base.cc',
150 'browser/aw_http_auth_handler_base.h',
151 'browser/aw_javascript_dialog_manager.cc',
152 'browser/aw_javascript_dialog_manager.h',
153 'browser/aw_login_delegate.cc',
154 'browser/aw_login_delegate.h',
155 'browser/aw_pref_store.cc',
156 'browser/aw_pref_store.h',
157 'browser/aw_quota_manager_bridge.cc',
158 'browser/aw_quota_manager_bridge.h',
159 'browser/aw_quota_permission_context.cc',
160 'browser/aw_quota_permission_context.h',
161 'browser/aw_request_interceptor.cc',
162 'browser/aw_request_interceptor.h',
163 'browser/aw_resource_context.cc',
164 'browser/aw_resource_context.h',
165 'browser/aw_result_codes.h',
166 'browser/aw_web_preferences_populater.cc',
167 'browser/aw_web_preferences_populater.h',
168 'browser/aw_web_resource_response.cc',
169 'browser/aw_web_resource_response.h',
170 'browser/browser_view_renderer.cc',
171 'browser/browser_view_renderer.h',
172 'browser/browser_view_renderer_client.h',
173 'browser/deferred_gpu_command_service.cc',
174 'browser/deferred_gpu_command_service.h',
175 'browser/find_helper.cc',
176 'browser/find_helper.h',
177 'browser/global_tile_manager.cc',
178 'browser/global_tile_manager.h',
179 'browser/global_tile_manager_client.h',
180 'browser/gpu_memory_buffer_factory_impl.cc',
181 'browser/gpu_memory_buffer_factory_impl.h',
182 'browser/hardware_renderer.cc',
183 'browser/hardware_renderer.h',
184 'browser/icon_helper.cc',
185 'browser/icon_helper.h',
186 'browser/input_stream.h',
187 'browser/jni_dependency_factory.h',
188 'browser/gl_view_renderer_manager.cc',
189 'browser/gl_view_renderer_manager.h',
190 'browser/net/android_stream_reader_url_request_job.cc',
191 'browser/net/android_stream_reader_url_request_job.h',
192 'browser/net/aw_network_delegate.cc',
193 'browser/net/aw_network_delegate.h',
194 'browser/net/aw_url_request_context_getter.cc',
195 'browser/net/aw_url_request_context_getter.h',
196 'browser/net/aw_url_request_job_factory.cc',
197 'browser/net/aw_url_request_job_factory.h',
198 'browser/net_disk_cache_remover.cc',
199 'browser/net_disk_cache_remover.h',
200 'browser/net/init_native_callback.h',
201 'browser/net/input_stream_reader.cc',
202 'browser/net/input_stream_reader.h',
203 'browser/parent_output_surface.cc',
204 'browser/parent_output_surface.h',
205 'browser/renderer_host/aw_render_view_host_ext.cc',
206 'browser/renderer_host/aw_render_view_host_ext.h',
207 'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
208 'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
209 'browser/renderer_host/print_manager.cc',
210 'browser/renderer_host/print_manager.h',
211 'browser/scoped_allow_wait_for_legacy_web_view_api.h',
212 'browser/scoped_app_gl_state_restore.cc',
213 'browser/scoped_app_gl_state_restore.h',
214 'browser/shared_renderer_state.cc',
215 'browser/shared_renderer_state.h',
216 'common/android_webview_message_generator.cc',
217 'common/android_webview_message_generator.h',
218 'common/aw_content_client.cc',
219 'common/aw_content_client.h',
220 'common/aw_hit_test_data.cc',
221 'common/aw_hit_test_data.h',
222 'common/aw_resource.h',
223 'common/aw_switches.cc',
224 'common/aw_switches.h',
225 'common/devtools_instrumentation.h',
226 'common/print_messages.cc',
227 'common/print_messages.h',
228 'common/render_view_messages.cc',
229 'common/render_view_messages.h',
230 'common/url_constants.cc',
231 'common/url_constants.h',
232 'lib/aw_browser_dependency_factory_impl.cc',
233 'lib/aw_browser_dependency_factory_impl.h',
234 'lib/main/aw_main_delegate.cc',
235 'lib/main/aw_main_delegate.h',
236 'public/browser/draw_gl.h',
237 'renderer/aw_content_renderer_client.cc',
238 'renderer/aw_content_renderer_client.h',
239 'renderer/aw_execution_termination_filter.cc',
240 'renderer/aw_execution_termination_filter.h',
241 'renderer/aw_key_systems.cc',
242 'renderer/aw_key_systems.h',
243 'renderer/aw_permission_client.cc',
244 'renderer/aw_permission_client.h',
245 'renderer/aw_render_process_observer.cc',
246 'renderer/aw_render_process_observer.h',
247 'renderer/aw_render_frame_ext.cc',
248 'renderer/aw_render_frame_ext.h',
249 'renderer/aw_render_view_ext.cc',
250 'renderer/aw_render_view_ext.h',
251 'renderer/print_web_view_helper.cc',
252 'renderer/print_web_view_helper.h',
253 'renderer/print_web_view_helper_android.cc',
254 'renderer/print_web_view_helper_linux.cc',
255 'renderer/print_render_frame_observer.cc',
256 'renderer/print_render_frame_observer.h',
261 ['android_webview_build==0', {
263 'android_webview_tests.gypi',
267 'target_name': 'android_webview_java',
270 '../components/components.gyp:navigation_interception_java',
271 '../components/components.gyp:web_contents_delegate_android_java',
272 '../content/content.gyp:content_java',
273 '../ui/android/ui_android.gyp:ui_java',
276 'java_in_dir': '../android_webview/java',
278 'includes': [ '../build/java.gypi' ],
281 }, { # android_webview_build==1
284 'target_name': 'android_webview_jarjar_ui_resources',
285 'android_unmangled_name': 1,
288 'res_dir': '../ui/android/java/res',
289 'rules_file': '../android_webview/build/jarjar-rules.txt',
291 'includes': ['../android_webview/build/jarjar_resources.gypi'],
294 'target_name': 'android_webview_jarjar_content_resources',
295 'android_unmangled_name': 1,
298 'res_dir': '../content/public/android/java/res',
299 'rules_file': '../android_webview/build/jarjar-rules.txt',
301 'includes': ['../android_webview/build/jarjar_resources.gypi'],
304 'target_name': 'android_webview_resources',
306 'android_unmangled_name': 1,
308 '../content/content.gyp:content_strings_grd',
309 '../ui/android/ui_android.gyp:ui_strings_grd',
310 'android_webview_jarjar_ui_resources',
311 'android_webview_jarjar_content_resources'