aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2022-10-19 11:14:31 -0700
committerCole Faust <colefaust@google.com>2023-01-05 12:41:29 -0800
commitf453fe83d9cfdcc4299f1729491ea7325d53774c (patch)
tree599664529d094ed631e28acce873abe6a7a5e185 /tests
parent89318f00525509b977ae13d75c596f2df89707a6 (diff)
downloadbazel-f453fe83d9cfdcc4299f1729491ea7325d53774c.tar.gz
Support multiple android products in a single bazel build
We create an android_product macro that replaces a lot of the existing platform code. It takes a soong.variables file, and creates bazel platforms for the android product, various other arches, and the host platforms. (currently host builds still depend on product config variables) To change products, you'll be able to pass --platform=//build/bazel/product_config/generated/products/<product_name>, however currently we only generate the platforms for the currently lunched product for performance. When the other products are in starlark, we can allow using all of them. Bug: 249685973 Test: Presubmits Change-Id: Ic1b0942a60c66eb3fe2b1aa7a2ff436ec9b3c3fb
Diffstat (limited to 'tests')
-rw-r--r--tests/apex/apex_aab_test.bzl1
-rw-r--r--tests/apex/apex_compression_test.bzl1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/apex/apex_aab_test.bzl b/tests/apex/apex_aab_test.bzl
index 2412bddb..7ee9fa2f 100644
--- a/tests/apex/apex_aab_test.bzl
+++ b/tests/apex/apex_aab_test.bzl
@@ -49,4 +49,5 @@ def apex_aab_test(name, apex, golden, **kwargs):
golden,
],
args = args,
+ target_compatible_with = ["//build/bazel/platforms/os:android"],
)
diff --git a/tests/apex/apex_compression_test.bzl b/tests/apex/apex_compression_test.bzl
index a68de48b..54acdbab 100644
--- a/tests/apex/apex_compression_test.bzl
+++ b/tests/apex/apex_compression_test.bzl
@@ -39,4 +39,5 @@ def apex_compression_test(name, apex, compressed, **kwargs):
apex,
],
args = args,
+ target_compatible_with = ["//build/bazel/platforms/os:android"],
)