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"', {
30 'action_name': 'repack_android_webview_pack',
33 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
34 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
35 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
36 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
37 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
38 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
40 'pak_output': '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
42 'includes': [ '../build/repack_action.gypi' ],
45 'action_name': 'android_webview_locales_rename_paks',
47 'rename_locales': 'tools/webview_locales_rename_paks.py',
51 '<!@pymod_do_main(webview_locales_rename_paks -i -p <(PRODUCT_DIR) -s <(SHARED_INTERMEDIATE_DIR) <(locales))'
54 '<!@pymod_do_main(webview_locales_rename_paks -o -p <(PRODUCT_DIR) -s <(SHARED_INTERMEDIATE_DIR) <(locales))'
59 '-p', '<(PRODUCT_DIR)',
60 '-s', '<(SHARED_INTERMEDIATE_DIR)',
65 'action_name': 'rename_snapshot_blob',
67 '<(PRODUCT_DIR)/snapshot_blob.bin',
70 '<(PRODUCT_DIR)/snapshot_blob_<(arch_suffix).bin',
74 '<(DEPTH)/build/cp.py',
80 'action_name': 'rename_natives_blob',
82 '<(PRODUCT_DIR)/natives_blob.bin',
85 '<(PRODUCT_DIR)/natives_blob_<(arch_suffix).bin',
89 '<(DEPTH)/build/cp.py',
97 'target_name': 'android_webview_locale_paks',
100 'locale_pak_files': [ '<@(webview_locales_input_paks)' ],
103 'apk/system_webview_locales_paks.gypi',
104 '../build/android/locale_pak_resources.gypi',
108 'target_name': 'android_webview_strings_grd',
109 'android_unmangled_name': 1,
112 'grd_file': '../android_webview/java/strings/android_webview_strings.grd',
115 '../build/java_strings_grd.gypi',
119 'target_name': 'android_webview_version',
121 'direct_dependent_settings': {
123 '<(SHARED_INTERMEDIATE_DIR)',
126 # Because generate_version generates a header, we must set the
127 # hard_dependency flag.
128 'hard_dependency': 1,
131 'action_name': 'generate_version',
133 '../build/util/version.gypi',
136 'template_input_path': 'common/aw_version_info_values.h.version',
139 '<(version_py_path)',
140 '<(template_input_path)',
142 '<(lastchange_path)',
145 '<(SHARED_INTERMEDIATE_DIR)/android_webview/common/aw_version_info_values.h',
149 '<(version_py_path)',
150 '-f', '<(version_path)',
151 '-f', '<(lastchange_path)',
152 '<(template_input_path)',
155 'message': 'Generating version information',
160 'target_name': 'android_webview_common',
161 'type': 'static_library',
163 '../android_webview/native/webview_native.gyp:webview_native',
164 '../cc/cc.gyp:cc_surfaces',
165 '../components/components.gyp:auto_login_parser',
166 '../components/components.gyp:autofill_content_renderer',
167 '../components/components.gyp:breakpad_host',
168 '../components/components.gyp:cdm_browser',
169 '../components/components.gyp:cdm_renderer',
170 '../components/components.gyp:crash_component',
171 '../components/components.gyp:data_reduction_proxy_core_browser',
172 '../components/components.gyp:devtools_discovery',
173 '../components/components.gyp:navigation_interception',
174 '../components/components.gyp:printing_common',
175 '../components/components.gyp:printing_renderer',
176 '../components/components.gyp:visitedlink_browser',
177 '../components/components.gyp:visitedlink_renderer',
178 '../components/components.gyp:web_contents_delegate_android',
179 '../content/content.gyp:content_app_both',
180 '../content/content.gyp:content_browser',
181 '../gin/gin.gyp:gin',
182 '../gpu/blink/gpu_blink.gyp:gpu_blink',
183 '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
184 '../gpu/gpu.gyp:command_buffer_service',
185 '../gpu/gpu.gyp:gl_in_process_context',
186 '../gpu/gpu.gyp:gles2_c_lib',
187 '../gpu/gpu.gyp:gles2_implementation',
188 '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
189 '../media/media.gyp:media',
190 '../media/midi/midi.gyp:midi',
191 '../printing/printing.gyp:printing',
192 '../skia/skia.gyp:skia',
193 '../third_party/WebKit/public/blink.gyp:blink',
194 '../ui/gl/gl.gyp:gl',
195 '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
196 '../v8/tools/gyp/v8.gyp:v8',
197 'android_webview_pak',
198 'android_webview_version',
203 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/',
206 'browser/aw_browser_context.cc',
207 'browser/aw_browser_context.h',
208 'browser/aw_browser_main_parts.cc',
209 'browser/aw_browser_main_parts.h',
210 'browser/aw_browser_permission_request_delegate.h',
211 'browser/aw_contents_client_bridge_base.cc',
212 'browser/aw_contents_client_bridge_base.h',
213 'browser/aw_content_browser_client.cc',
214 'browser/aw_content_browser_client.h',
215 'browser/aw_contents_io_thread_client.h',
216 'browser/aw_cookie_access_policy.cc',
217 'browser/aw_cookie_access_policy.h',
218 'browser/aw_dev_tools_discovery_provider.cc',
219 'browser/aw_dev_tools_discovery_provider.h',
220 'browser/aw_download_manager_delegate.cc',
221 'browser/aw_download_manager_delegate.h',
222 'browser/aw_form_database_service.cc',
223 'browser/aw_form_database_service.h',
224 'browser/aw_gl_surface.cc',
225 'browser/aw_gl_surface.h',
226 'browser/aw_http_auth_handler_base.cc',
227 'browser/aw_http_auth_handler_base.h',
228 'browser/aw_javascript_dialog_manager.cc',
229 'browser/aw_javascript_dialog_manager.h',
230 'browser/aw_login_delegate.cc',
231 'browser/aw_login_delegate.h',
232 'browser/aw_media_client_android.cc',
233 'browser/aw_media_client_android.h',
234 'browser/aw_message_port_message_filter.cc',
235 'browser/aw_message_port_message_filter.h',
236 'browser/aw_message_port_service.h',
237 'browser/aw_permission_manager.cc',
238 'browser/aw_permission_manager.h',
239 'browser/aw_pref_store.cc',
240 'browser/aw_pref_store.h',
241 'browser/aw_printing_message_filter.cc',
242 'browser/aw_printing_message_filter.h',
243 'browser/aw_quota_manager_bridge.cc',
244 'browser/aw_quota_manager_bridge.h',
245 'browser/aw_quota_permission_context.cc',
246 'browser/aw_quota_permission_context.h',
247 'browser/aw_render_thread_context_provider.cc',
248 'browser/aw_render_thread_context_provider.h',
249 'browser/aw_request_interceptor.cc',
250 'browser/aw_request_interceptor.h',
251 'browser/aw_resource_context.cc',
252 'browser/aw_resource_context.h',
253 'browser/aw_ssl_host_state_delegate.cc',
254 'browser/aw_ssl_host_state_delegate.h',
255 'browser/aw_result_codes.h',
256 'browser/aw_web_preferences_populater.cc',
257 'browser/aw_web_preferences_populater.h',
258 'browser/aw_web_resource_response.cc',
259 'browser/aw_web_resource_response.h',
260 'browser/browser_view_renderer.cc',
261 'browser/browser_view_renderer.h',
262 'browser/browser_view_renderer_client.h',
263 'browser/child_frame.cc',
264 'browser/child_frame.h',
265 'browser/deferred_gpu_command_service.cc',
266 'browser/deferred_gpu_command_service.h',
267 'browser/find_helper.cc',
268 'browser/find_helper.h',
269 'browser/hardware_renderer.cc',
270 'browser/hardware_renderer.h',
271 'browser/icon_helper.cc',
272 'browser/icon_helper.h',
273 'browser/input_stream.h',
274 'browser/jni_dependency_factory.h',
275 'browser/gl_view_renderer_manager.cc',
276 'browser/gl_view_renderer_manager.h',
277 'browser/net/android_stream_reader_url_request_job.cc',
278 'browser/net/android_stream_reader_url_request_job.h',
279 'browser/net/aw_network_delegate.cc',
280 'browser/net/aw_network_delegate.h',
281 'browser/net/aw_url_request_context_getter.cc',
282 'browser/net/aw_url_request_context_getter.h',
283 'browser/net/aw_url_request_job_factory.cc',
284 'browser/net/aw_url_request_job_factory.h',
285 'browser/net_disk_cache_remover.cc',
286 'browser/net_disk_cache_remover.h',
287 'browser/net/init_native_callback.h',
288 'browser/net/input_stream_reader.cc',
289 'browser/net/input_stream_reader.h',
290 'browser/parent_compositor_draw_constraints.cc',
291 'browser/parent_compositor_draw_constraints.h',
292 'browser/parent_output_surface.cc',
293 'browser/parent_output_surface.h',
294 'browser/renderer_host/aw_render_view_host_ext.cc',
295 'browser/renderer_host/aw_render_view_host_ext.h',
296 'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
297 'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
298 'browser/renderer_host/print_manager.cc',
299 'browser/renderer_host/print_manager.h',
300 'browser/scoped_allow_wait_for_legacy_web_view_api.h',
301 'browser/scoped_app_gl_state_restore.cc',
302 'browser/scoped_app_gl_state_restore.h',
303 'browser/shared_renderer_state.cc',
304 'browser/shared_renderer_state.h',
305 'common/android_webview_message_generator.cc',
306 'common/android_webview_message_generator.h',
307 'common/aw_content_client.cc',
308 'common/aw_content_client.h',
309 'common/aw_hit_test_data.cc',
310 'common/aw_hit_test_data.h',
311 'common/aw_message_port_messages.h',
312 'common/aw_resource.h',
313 'common/aw_switches.cc',
314 'common/aw_switches.h',
315 'common/devtools_instrumentation.h',
316 'common/render_view_messages.cc',
317 'common/render_view_messages.h',
318 'common/url_constants.cc',
319 'common/url_constants.h',
320 'crash_reporter/aw_microdump_crash_reporter.cc',
321 'crash_reporter/aw_microdump_crash_reporter.h',
322 'lib/aw_browser_dependency_factory_impl.cc',
323 'lib/aw_browser_dependency_factory_impl.h',
324 'lib/main/aw_main_delegate.cc',
325 'lib/main/aw_main_delegate.h',
326 'lib/main/webview_jni_onload.cc',
327 'lib/main/webview_jni_onload.h',
328 'public/browser/draw_gl.h',
329 'renderer/aw_content_renderer_client.cc',
330 'renderer/aw_content_renderer_client.h',
331 'renderer/aw_content_settings_client.cc',
332 'renderer/aw_content_settings_client.h',
333 'renderer/aw_key_systems.cc',
334 'renderer/aw_key_systems.h',
335 'renderer/aw_message_port_client.cc',
336 'renderer/aw_message_port_client.h',
337 'renderer/aw_print_web_view_helper_delegate.cc',
338 'renderer/aw_print_web_view_helper_delegate.h',
339 'renderer/aw_render_process_observer.cc',
340 'renderer/aw_render_process_observer.h',
341 'renderer/aw_render_frame_ext.cc',
342 'renderer/aw_render_frame_ext.h',
343 'renderer/aw_render_view_ext.cc',
344 'renderer/aw_render_view_ext.h',
345 'renderer/print_render_frame_observer.cc',
346 'renderer/print_render_frame_observer.h',
350 'target_name': 'libwebviewchromium',
352 'libwebviewchromium.gypi',
356 'target_name': 'android_webview_java',
359 '../components/components.gyp:external_video_surface_java',
360 '../components/components.gyp:navigation_interception_java',
361 '../components/components.gyp:web_contents_delegate_android_java',
362 '../content/content.gyp:content_java',
363 '../ui/android/ui_android.gyp:ui_java',
364 'android_webview_locale_paks',
365 'android_webview_strings_grd',
368 'java_in_dir': '../android_webview/java',
369 'has_java_resources': 1,
370 'R_package': 'org.chromium.android_webview',
371 'R_package_relpath': 'org/chromium/android_webview',
372 'android_manifest_path': '../android_webview/apk/java/AndroidManifest.xml', # for lint
374 'includes': [ '../build/java.gypi' ],
377 'target_name': 'system_webview_apk',
379 'apk_name': 'SystemWebView',
380 'android_sdk_jar': '../third_party/android_platform/webview/frameworks_5.1.0_r1.jar',
381 'java_in_dir': 'glue/java',
382 'resource_dir': 'apk/java/res',
384 'includes': [ 'apk/system_webview_apk_common.gypi' ],
388 'android_webview_tests.gypi',