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': 'android_webview_pak',
13 '<(DEPTH)/content/app/resources/content_resources.gyp:content_resources',
14 '<(DEPTH)/net/net.gyp:net_resources',
15 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
16 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
20 ['target_arch=="arm" or target_arch=="ia32" or target_arch=="mipsel"', {
23 ['target_arch=="arm64" or target_arch=="x64" or target_arch=="mips64el"', {
27 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/android_webview',
31 'action_name': 'generate_aw_resources',
33 'grit_grd_file': 'ui/aw_resources.grd',
35 'includes': [ '../build/grit_action.gypi' ],
38 'action_name': 'repack_android_webview_pack',
41 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
42 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
43 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
44 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
45 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
46 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
47 '<(grit_out_dir)/aw_resources.pak',
49 'pak_output': '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
51 'includes': [ '../build/repack_action.gypi' ],
54 'action_name': 'generate_aw_strings',
56 'grit_grd_file': 'ui/aw_strings.grd',
58 'includes': [ '../build/grit_action.gypi' ],
61 'action_name': 'android_webview_repack_locales',
63 'repack_locales': 'tools/webview_repack_locales.py',
67 '<!@pymod_do_main(webview_repack_locales -i -p <(PRODUCT_DIR) -s <(SHARED_INTERMEDIATE_DIR) <(locales))'
70 '<!@pymod_do_main(webview_repack_locales -o -p <(PRODUCT_DIR) -s <(SHARED_INTERMEDIATE_DIR) <(locales))'
75 '-p', '<(PRODUCT_DIR)',
76 '-s', '<(SHARED_INTERMEDIATE_DIR)',
81 'action_name': 'rename_snapshot_blob',
83 '<(PRODUCT_DIR)/snapshot_blob.bin',
86 '<(PRODUCT_DIR)/snapshot_blob_<(arch_suffix).bin',
90 '<(DEPTH)/build/cp.py',
96 'action_name': 'rename_natives_blob',
98 '<(PRODUCT_DIR)/natives_blob.bin',
101 '<(PRODUCT_DIR)/natives_blob_<(arch_suffix).bin',
105 '<(DEPTH)/build/cp.py',
113 'target_name': 'android_webview_locale_paks',
116 'locale_pak_files': [ '<@(webview_locales_input_paks)' ],
119 'apk/system_webview_locales_paks.gypi',
120 '../build/android/locale_pak_resources.gypi',
124 'target_name': 'android_webview_strings_grd',
125 'android_unmangled_name': 1,
128 'grd_file': '../android_webview/java/strings/android_webview_strings.grd',
131 '../build/java_strings_grd.gypi',
135 'target_name': 'android_webview_version',
137 'direct_dependent_settings': {
139 '<(SHARED_INTERMEDIATE_DIR)',
142 # Because generate_version generates a header, we must set the
143 # hard_dependency flag.
144 'hard_dependency': 1,
147 'action_name': 'generate_version',
149 '../build/util/version.gypi',
152 'template_input_path': 'common/aw_version_info_values.h.version',
155 '<(version_py_path)',
156 '<(template_input_path)',
158 '<(lastchange_path)',
161 '<(SHARED_INTERMEDIATE_DIR)/android_webview/common/aw_version_info_values.h',
165 '<(version_py_path)',
166 '-f', '<(version_path)',
167 '-f', '<(lastchange_path)',
168 '<(template_input_path)',
171 'message': 'Generating version information',
176 'target_name': 'android_webview_common',
177 'type': 'static_library',
179 '../android_webview/native/webview_native.gyp:webview_native',
180 '../cc/cc.gyp:cc_surfaces',
181 '../components/components.gyp:auto_login_parser',
182 '../components/components.gyp:autofill_content_renderer',
183 '../components/components.gyp:breakpad_host',
184 '../components/components.gyp:cdm_browser',
185 '../components/components.gyp:cdm_renderer',
186 '../components/components.gyp:crash_component',
187 '../components/components.gyp:data_reduction_proxy_core_browser',
188 '../components/components.gyp:devtools_discovery',
189 '../components/components.gyp:navigation_interception',
190 '../components/components.gyp:printing_common',
191 '../components/components.gyp:printing_browser',
192 '../components/components.gyp:printing_renderer',
193 '../components/components.gyp:visitedlink_browser',
194 '../components/components.gyp:visitedlink_renderer',
195 '../components/components.gyp:web_contents_delegate_android',
196 '../content/content.gyp:content_app_both',
197 '../content/content.gyp:content_browser',
198 '../gin/gin.gyp:gin',
199 '../gpu/blink/gpu_blink.gyp:gpu_blink',
200 '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
201 '../gpu/gpu.gyp:command_buffer_service',
202 '../gpu/gpu.gyp:gl_in_process_context',
203 '../gpu/gpu.gyp:gles2_c_lib',
204 '../gpu/gpu.gyp:gles2_implementation',
205 '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
206 '../media/media.gyp:media',
207 '../media/midi/midi.gyp:midi',
208 '../printing/printing.gyp:printing',
209 '../skia/skia.gyp:skia',
210 '../third_party/WebKit/public/blink.gyp:blink',
211 '../ui/events/events.gyp:gesture_detection',
212 '../ui/gl/gl.gyp:gl',
213 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
214 '../v8/tools/gyp/v8.gyp:v8',
215 'android_webview_pak',
216 'android_webview_version',
221 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/',
224 'browser/aw_browser_context.cc',
225 'browser/aw_browser_context.h',
226 'browser/aw_browser_main_parts.cc',
227 'browser/aw_browser_main_parts.h',
228 'browser/aw_browser_permission_request_delegate.h',
229 'browser/aw_contents_client_bridge_base.cc',
230 'browser/aw_contents_client_bridge_base.h',
231 'browser/aw_content_browser_client.cc',
232 'browser/aw_content_browser_client.h',
233 'browser/aw_contents_io_thread_client.h',
234 'browser/aw_cookie_access_policy.cc',
235 'browser/aw_cookie_access_policy.h',
236 'browser/aw_dev_tools_discovery_provider.cc',
237 'browser/aw_dev_tools_discovery_provider.h',
238 'browser/aw_download_manager_delegate.cc',
239 'browser/aw_download_manager_delegate.h',
240 'browser/aw_form_database_service.cc',
241 'browser/aw_form_database_service.h',
242 'browser/aw_gl_surface.cc',
243 'browser/aw_gl_surface.h',
244 'browser/aw_http_auth_handler_base.cc',
245 'browser/aw_http_auth_handler_base.h',
246 'browser/aw_javascript_dialog_manager.cc',
247 'browser/aw_javascript_dialog_manager.h',
248 'browser/aw_locale_manager.h',
249 'browser/aw_login_delegate.cc',
250 'browser/aw_login_delegate.h',
251 'browser/aw_media_client_android.cc',
252 'browser/aw_media_client_android.h',
253 'browser/aw_message_port_message_filter.cc',
254 'browser/aw_message_port_message_filter.h',
255 'browser/aw_message_port_service.h',
256 'browser/aw_permission_manager.cc',
257 'browser/aw_permission_manager.h',
258 'browser/aw_pref_store.cc',
259 'browser/aw_pref_store.h',
260 'browser/aw_print_manager.cc',
261 'browser/aw_print_manager.h',
262 'browser/aw_printing_message_filter.cc',
263 'browser/aw_printing_message_filter.h',
264 'browser/aw_quota_manager_bridge.cc',
265 'browser/aw_quota_manager_bridge.h',
266 'browser/aw_quota_permission_context.cc',
267 'browser/aw_quota_permission_context.h',
268 'browser/aw_render_thread_context_provider.cc',
269 'browser/aw_render_thread_context_provider.h',
270 'browser/aw_request_interceptor.cc',
271 'browser/aw_request_interceptor.h',
272 'browser/aw_resource_context.cc',
273 'browser/aw_resource_context.h',
274 'browser/aw_ssl_host_state_delegate.cc',
275 'browser/aw_ssl_host_state_delegate.h',
276 'browser/aw_result_codes.h',
277 'browser/aw_web_preferences_populater.cc',
278 'browser/aw_web_preferences_populater.h',
279 'browser/aw_web_resource_response.cc',
280 'browser/aw_web_resource_response.h',
281 'browser/browser_view_renderer.cc',
282 'browser/browser_view_renderer.h',
283 'browser/browser_view_renderer_client.h',
284 'browser/child_frame.cc',
285 'browser/child_frame.h',
286 'browser/deferred_gpu_command_service.cc',
287 'browser/deferred_gpu_command_service.h',
288 'browser/find_helper.cc',
289 'browser/find_helper.h',
290 'browser/hardware_renderer.cc',
291 'browser/hardware_renderer.h',
292 'browser/icon_helper.cc',
293 'browser/icon_helper.h',
294 'browser/input_stream.h',
295 'browser/jni_dependency_factory.h',
296 'browser/gl_view_renderer_manager.cc',
297 'browser/gl_view_renderer_manager.h',
298 'browser/net/android_stream_reader_url_request_job.cc',
299 'browser/net/android_stream_reader_url_request_job.h',
300 'browser/net/aw_http_user_agent_settings.h',
301 'browser/net/aw_http_user_agent_settings.cc',
302 'browser/net/aw_network_delegate.cc',
303 'browser/net/aw_network_delegate.h',
304 'browser/net/aw_url_request_context_getter.cc',
305 'browser/net/aw_url_request_context_getter.h',
306 'browser/net/aw_url_request_job_factory.cc',
307 'browser/net/aw_url_request_job_factory.h',
308 'browser/net_disk_cache_remover.cc',
309 'browser/net_disk_cache_remover.h',
310 'browser/net/init_native_callback.h',
311 'browser/net/input_stream_reader.cc',
312 'browser/net/input_stream_reader.h',
313 'browser/parent_compositor_draw_constraints.cc',
314 'browser/parent_compositor_draw_constraints.h',
315 'browser/parent_output_surface.cc',
316 'browser/parent_output_surface.h',
317 'browser/renderer_host/aw_render_view_host_ext.cc',
318 'browser/renderer_host/aw_render_view_host_ext.h',
319 'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
320 'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
321 'browser/scoped_allow_wait_for_legacy_web_view_api.h',
322 'browser/scoped_app_gl_state_restore.cc',
323 'browser/scoped_app_gl_state_restore.h',
324 'browser/shared_renderer_state.cc',
325 'browser/shared_renderer_state.h',
326 'common/android_webview_message_generator.cc',
327 'common/android_webview_message_generator.h',
328 'common/aw_content_client.cc',
329 'common/aw_content_client.h',
330 'common/aw_hit_test_data.cc',
331 'common/aw_hit_test_data.h',
332 'common/aw_message_port_messages.h',
333 'common/aw_resource.h',
334 'common/aw_switches.cc',
335 'common/aw_switches.h',
336 'common/devtools_instrumentation.h',
337 'common/render_view_messages.cc',
338 'common/render_view_messages.h',
339 'common/url_constants.cc',
340 'common/url_constants.h',
341 'crash_reporter/aw_microdump_crash_reporter.cc',
342 'crash_reporter/aw_microdump_crash_reporter.h',
343 'lib/aw_browser_dependency_factory_impl.cc',
344 'lib/aw_browser_dependency_factory_impl.h',
345 'lib/main/aw_main_delegate.cc',
346 'lib/main/aw_main_delegate.h',
347 'lib/main/webview_jni_onload.cc',
348 'lib/main/webview_jni_onload.h',
349 'public/browser/draw_gl.h',
350 'renderer/aw_content_renderer_client.cc',
351 'renderer/aw_content_renderer_client.h',
352 'renderer/aw_content_settings_client.cc',
353 'renderer/aw_content_settings_client.h',
354 'renderer/aw_key_systems.cc',
355 'renderer/aw_key_systems.h',
356 'renderer/aw_message_port_client.cc',
357 'renderer/aw_message_port_client.h',
358 'renderer/aw_print_web_view_helper_delegate.cc',
359 'renderer/aw_print_web_view_helper_delegate.h',
360 'renderer/aw_render_process_observer.cc',
361 'renderer/aw_render_process_observer.h',
362 'renderer/aw_render_frame_ext.cc',
363 'renderer/aw_render_frame_ext.h',
364 'renderer/aw_render_view_ext.cc',
365 'renderer/aw_render_view_ext.h',
366 'renderer/print_render_frame_observer.cc',
367 'renderer/print_render_frame_observer.h',
371 'target_name': 'libwebviewchromium',
373 'libwebviewchromium.gypi',
377 'target_name': 'android_webview_java',
380 '../android_webview/native/webview_native.gyp:android_webview_aw_permission_request_resource',
381 '../components/components.gyp:external_video_surface_java',
382 '../components/components.gyp:navigation_interception_java',
383 '../components/components.gyp:web_contents_delegate_android_java',
384 '../content/content.gyp:content_java',
385 '../ui/android/ui_android.gyp:ui_java',
386 'android_webview_locale_paks',
387 'android_webview_strings_grd',
390 'java_in_dir': '../android_webview/java',
391 'has_java_resources': 1,
392 'R_package': 'org.chromium.android_webview',
393 'R_package_relpath': 'org/chromium/android_webview',
394 'android_manifest_path': '../android_webview/apk/java/AndroidManifest.xml', # for lint
396 'includes': [ '../build/java.gypi' ],
399 'target_name': 'system_webview_apk',
401 'apk_name': 'SystemWebView',
402 'android_sdk_jar': '../third_party/android_platform/webview/frameworks_6.0.jar',
403 'java_in_dir': 'glue/java',
404 'resource_dir': 'apk/java/res',
406 'includes': [ 'apk/system_webview_apk_common.gypi' ],
410 'android_webview_tests.gypi',