Copy link to clipboard
Copied
Switch user
Sign out
Callam Mathews [email address removed by moderator]
chromium / chromium / src / 4b56905d6ab61e9e14f991a7458d8968635cfef2 / . / android_webview / android_webview.gyp
blob: 6f10ec127471bd9e0267572dc1f61660e85d3672 [file] [log] [blame]
# Copyright 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
'system_webview_package_name%': 'com.android.webview',
},
'targets': [
{
'target_name': 'android_webview_pak',
'type': 'none',
'dependencies': [
'<(DEPTH)/components/components_resources.gyp:components_resources',
'<(DEPTH)/content/app/resources/content_resources.gyp:content_resources',
'<(DEPTH)/net/net.gyp:net_resources',
'<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
'<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
],
'variables': {
'conditions': [
['target_arch=="arm" or target_arch=="ia32" or target_arch=="mipsel"', {
'arch_suffix':'32'
}],
['target_arch=="arm64" or target_arch=="x64" or target_arch=="mips64el"', {
'arch_suffix':'64'
}],
],
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/android_webview',
},
'actions': [
# GN version: //android_webview:generate_aw_resources
{
'action_name': 'generate_aw_resources',
'variables': {
'grit_grd_file': 'ui/aw_resources.grd',
},
'includes': [ '../build/grit_action.gypi' ],
},
# GN version: //android_webview:repack_pack
{
'action_name': 'repack_android_webview_pack',
'variables': {
'pak_inputs': [
'<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/components/components_resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
'<(grit_out_dir)/aw_resources.pak',
],
'pak_output': '<(webview_chromium_pak_path)',
},
'includes': [ '../build/repack_action.gypi' ],
},
# GN version: //android_webview:generate_aw_strings
{
'action_name': 'generate_aw_strings',
'variables': {
'grit_grd_file': 'ui/aw_strings.grd',
},
'includes': [ '../build/grit_action.gypi' ],
},
# GN version: //android_webview:generate_components_strings
{
'action_name': 'generate_components_strings',
'variables': {
# components_strings contains strings from all components. WebView
# will never display most of them, so we try to limit the included
# strings
'grit_whitelist': 'ui/grit_components_whitelist.txt',
'grit_grd_file': '../components/components_strings.grd',
},
'includes': [ '../build/grit_action.gypi' ],
},
# GN Version: //android_webview:repack_locales
{
'action_name': 'android_webview_repack_locales',
'variables': {
'repack_locales': 'tools/webview_repack_locales.py',
},
'inputs': [
'<(repack_locales)',
'<!@pymod_do_main(webview_repack_locales -i -p <(PRODUCT_DIR) -s <(SHARED_INTERMEDIATE_DIR) <(locales))'
],
'outputs': [
'<!@pymod_do_main(webview_repack_locales -o -p <(PRODUCT_DIR) -s <(SHARED_INTERMEDIATE_DIR) <(locales))'
],
'action': [
'python',
'<(repack_locales)',
'-p', '<(PRODUCT_DIR)',
'-s', '<(SHARED_INTERMEDIATE_DIR)',
'<@(locales)',
],
},
# GN version: //android_webview/rename_snapshot_blob
{
'action_name': 'rename_snapshot_blob',
'inputs': [
'<(PRODUCT_DIR)/snapshot_blob.bin',
],
'outputs': [
'<(PRODUCT_DIR)/snapshot_blob_<(arch_suffix).bin',
],
'action': [
'python',
'<(DEPTH)/build/cp.py',
'<@(_inputs)',
'<@(_outputs)',
],
},
# GN version: //android_webview/rename_natives_blob
{
'action_name': 'rename_natives_blob',
'inputs': [
'<(PRODUCT_DIR)/natives_blob.bin',
],
'outputs': [
'<(PRODUCT_DIR)/natives_blob_<(arch_suffix).bin',
],
'action': [
'python',
'<(DEPTH)/build/cp.py',
'<@(_inputs)',
'<@(_outputs)',
],
},
# GN version: //android_webview/generate_webview_license_notice
{
'action_name': 'generate_webview_license_notice',
'inputs': [
'<!@(python <(DEPTH)/android_webview/tools/webview_licenses.py notice_deps)',
'<(DEPTH)/android_webview/tools/licenses_notice.tmpl',
'<(DEPTH)/android_webview/tools/webview_licenses.py',
],
'outputs': [
'<(webview_licenses_path)',
],
'action': [
'python',
'<(DEPTH)/android_webview/tools/webview_licenses.py',
'notice',
'<(webview_licenses_path)',
],
'message': 'Generating WebView license notice',
},
],
},
# GN version: //android_webview/locale_paks
{
'target_name': 'android_webview_locale_paks',
'type': 'none',
'variables': {
'locale_pak_files': [
'<@(webview_locales_input_common_paks)',
'<@(webview_locales_input_individual_paks)',
],
},
'includes': [
'../build/android/locale_pak_resources.gypi',
],
},
{
# GN version: //android_webview:strings_grd
'target_name': 'android_webview_strings_grd',
'android_unmangled_name': 1,
'type': 'none',
'variables': {
'grd_file': '../android_webview/java/strings/android_webview_strings.grd',
},
'includes': [
'../build/java_strings_grd.gypi',
],
},
{
# GN version: //android_webview/common:version
'target_name': 'android_webview_version',
'type': 'none',
'direct_dependent_settings': {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)',
],
},
# Because generate_version generates a header, we must set the
# hard_dependency flag.
'hard_dependency': 1,
'actions': [
{
'action_name': 'generate_version',
'includes': [
'../build/util/version.gypi',
],
'variables': {
'template_input_path': 'common/aw_version_info_values.h.version',
},
'inputs': [
'<(version_py_path)',
'<(template_input_path)',
'<(version_path)',
'<(lastchange_path)',
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/android_webview/common/aw_version_info_values.h',
],
'action': [
'python',
'<(version_py_path)',
'-f', '<(version_path)',
'-f', '<(lastchange_path)',
'<(template_input_path)',
'<@(_outputs)',
],
'message': 'Generating version information',
},
],
},
# GN version: //android_webview:common
{
'target_name': 'android_webview_common',
'type': 'static_library',
'dependencies': [
'../android_webview/native/webview_native.gyp:webview_native',
'../cc/cc.gyp:cc_surfaces',
'../components/components.gyp:auto_login_parser',
'../components/components.gyp:autofill_content_renderer',
'../components/components.gyp:breakpad_host',
'../components/components.gyp:cdm_browser',
'../components/components.gyp:cdm_renderer',
'../components/components.gyp:component_metrics_proto',
'../components/components.gyp:crash_component',
'../components/components.gyp:metrics',
'../components/components.gyp:metrics_gpu',
'../components/components.gyp:metrics_net',
'../components/components.gyp:metrics_profiler',
'../components/components.gyp:metrics_ui',
'../components/components.gyp:navigation_interception',
'../components/components.gyp:printing_common',
'../components/components.gyp:printing_browser',
'../components/components.gyp:printing_renderer',
'../components/components.gyp:supervised_user_error_page',
'../components/components.gyp:supervised_user_error_page_gin',
'../components/components.gyp:visitedlink_browser',
'../components/components.gyp:visitedlink_renderer',
'../components/components.gyp:web_contents_delegate_android',
'../components/components.gyp:web_restrictions_browser',
'../content/content.gyp:content_app_both',
'../content/content.gyp:content_browser',
'../gin/gin.gyp:gin',
'../gpu/command_buffer/command_buffer.gyp:gles2_utils',
'../gpu/gpu.gyp:command_buffer_service',
'../gpu/gpu.gyp:gl_in_process_context',
'../gpu/gpu.gyp:gles2_c_lib',
'../gpu/gpu.gyp:gles2_implementation',
'../gpu/skia_bindings/skia_bindings.gyp:gpu_
Have something to add?