aboutsummaryrefslogtreecommitdiff
path: root/rules/apex/BUILD
diff options
context:
space:
mode:
authorJingwen Chen <jingwen@google.com>2022-12-12 07:02:36 +0000
committerJingwen Chen <jingwen@google.com>2022-12-13 04:39:43 +0000
commite389d74bd191ebe9a72a655e838e3e1ab9958eb8 (patch)
treef58b3f784356572fe0ca67899caab5268199c256 /rules/apex/BUILD
parentdb0e2ec1fbf8de4f20c88437194935a55f98da1c (diff)
downloadbazel-e389d74bd191ebe9a72a655e838e3e1ab9958eb8.tar.gz
Add bazel support for OVERRIDE_APEX_MANIFEST_DEFAULT_VERSION.
This was added to Soong recently in r.android.com/2323675 for b/196860838. Test: new analysis test Test: presubmits Bug: 196860838 Fixes: 261542855 Change-Id: I1276caf461c9bb225d9313b4a929a6f3cb09f746
Diffstat (limited to 'rules/apex/BUILD')
-rw-r--r--rules/apex/BUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/apex/BUILD b/rules/apex/BUILD
index bd00b009..f38eab21 100644
--- a/rules/apex/BUILD
+++ b/rules/apex/BUILD
@@ -5,6 +5,7 @@ load("@soong_injection//api_levels:api_levels.bzl", "api_levels")
load(":apex_test.bzl", "apex_test_suite")
load(":apex_aab_test.bzl", "apex_aab_test_suite")
load(":apex_key_test.bzl", "apex_key_test_suite")
+load("@env//:env.bzl", "env")
string_setting(
name = "apex_name",
@@ -18,6 +19,12 @@ string_setting(
visibility = ["//visibility:public"],
)
+string_setting(
+ name = "override_apex_manifest_default_version",
+ build_setting_default = env.get("OVERRIDE_APEX_MANIFEST_DEFAULT_VERSION", ""),
+ visibility = ["//visibility:public"],
+)
+
bool_setting(
name = "in_apex",
build_setting_default = False,