aboutsummaryrefslogtreecommitdiff
path: root/rules/apex/BUILD
diff options
context:
space:
mode:
authorYu Liu <yudiliu@google.com>2021-11-11 14:49:20 -0800
committerYu Liu <yudiliu@google.com>2021-11-18 11:51:46 -0800
commit61c0927015308f993e40ad324eaefaa0433a371a (patch)
treed8eb43f025fb333094aa3e3c147760e72fe70936 /rules/apex/BUILD
parentf93835c286cc88947799148ceff5ae884694deb8 (diff)
downloadbazel-61c0927015308f993e40ad324eaefaa0433a371a.tar.gz
Combine the inputprepare and calling apexer logic into a python script
Bug: b/204410844 Test: Run local build with and without sandbox Change-Id: Ice7ba49451518e7fedb23e55daf0e485cff4d2b8
Diffstat (limited to 'rules/apex/BUILD')
-rw-r--r--rules/apex/BUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/rules/apex/BUILD b/rules/apex/BUILD
index 61662483..ece87ea7 100644
--- a/rules/apex/BUILD
+++ b/rules/apex/BUILD
@@ -31,3 +31,30 @@ toolchain(
toolchain = ":prebuilt_apex_toolchain",
toolchain_type = "//build/bazel/rules/apex:apex_toolchain_type",
)
+
+py_binary(
+ name = "bazel_apexer_wrapper",
+ srcs = ["bazel_apexer_wrapper.py"],
+ visibility = ["//visibility:public"],
+)
+
+sh_test(
+ name = "bazel_apexer_wrapper_test",
+ srcs = ["bazel_apexer_wrapper_test.sh"],
+ deps = ["@bazel_tools//tools/bash/runfiles"],
+ data = [
+ ":bazel_apexer_wrapper",
+ "test.pem",
+ "@make_injection//:host/linux-x86/bin/aapt2",
+ "@make_injection//:host/linux-x86/bin/avbtool",
+ "@make_injection//:host/linux-x86/bin/apexer",
+ "@make_injection//:host/linux-x86/bin/conv_apex_manifest",
+ "@make_injection//:host/linux-x86/bin/deapexer",
+ "@make_injection//:host/linux-x86/bin/debugfs",
+ "@make_injection//:host/linux-x86/bin/e2fsdroid",
+ "@make_injection//:host/linux-x86/bin/mke2fs",
+ "@make_injection//:host/linux-x86/bin/resize2fs",
+ "@make_injection//:host/linux-x86/bin/sefcontext_compile",
+ "//prebuilts/sdk/current:public/android.jar",
+ ]
+)