# 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)/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)/content/content_resources.pak', '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.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)', '