diff options
author | Cole Faust <colefaust@google.com> | 2022-10-19 11:14:31 -0700 |
---|---|---|
committer | Cole Faust <colefaust@google.com> | 2023-01-05 12:41:29 -0800 |
commit | f453fe83d9cfdcc4299f1729491ea7325d53774c (patch) | |
tree | 599664529d094ed631e28acce873abe6a7a5e185 /tests | |
parent | 89318f00525509b977ae13d75c596f2df89707a6 (diff) | |
download | bazel-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.bzl | 1 | ||||
-rw-r--r-- | tests/apex/apex_compression_test.bzl | 1 |
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"], ) |