blob: b85d55f2cfd20772e1b2aec0e3d496e6f3f97a89 [file] [log] [blame]
# Copyright 2019 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.
import("//build/config/android/rules.gni")
import("//build/config/locales.gni")
import("//chrome/android/features/module_names_to_package_ids.gni")
template("tab_ui_module_tmpl") {
assert(defined(invoker.version_code))
assert(defined(invoker.version_name))
_manifest = "$target_gen_dir/$target_name/AndroidManifest.xml"
_manifest_target = "${target_name}__manifest"
jinja_template(_manifest_target) {
input = "//chrome/android/features/tab_ui/AndroidManifest.xml"
output = _manifest
variables = [
"target_sdk_version=$android_sdk_version",
"manifest_package=${invoker.manifest_package}",
]
}
android_app_bundle_module(target_name) {
forward_variables_from(invoker,
[
"base_module_target",
"module_name",
"uncompress_shared_libraries",
"version_code",
"version_name",
])
android_manifest = _manifest
android_manifest_dep = ":${_manifest_target}"
proguard_enabled = !is_java_debug
aapt_locale_whitelist = locales
package_name = "tab_ui"
package_name_to_id_mapping = resource_packages_id_mapping
deps = [
"//chrome/android/features/tab_ui:java",
]
}
}