f3406e64f7
In the Bazel rule, the actual AndroidManifest.xml file isn't available in the providers of the android_binary dependency. And for good reason, we should also rely on aapt2 to dump the manifest contents from the final packaged APK anyway, but this auto gen script doesn't support reading the output of aapt2 dump. This CL adds a simple reader of the output of `aapt2 dump xmltree`, and enabled if the xmltree content is passed to this tool instead of AndroidManifest.xml. Also fixup auto_gen_test_config_test.py. The test was completely failing. Test: atest auto_gen_test_config_test Test: presubmits Change-Id: I7fecd927d0ed7847b6463d964b3698f4164b0177
35 lines
784 B
Python
35 lines
784 B
Python
py_library(
|
|
name = "event_log_tags",
|
|
srcs = ["event_log_tags.py"],
|
|
imports = ["."],
|
|
)
|
|
|
|
py_binary(
|
|
name = "java-event-log-tags",
|
|
srcs = ["java-event-log-tags.py"],
|
|
python_version = "PY3",
|
|
visibility = ["//visibility:public"],
|
|
deps = [":event_log_tags"],
|
|
)
|
|
|
|
py_binary(
|
|
name = "merge-event-log-tags",
|
|
srcs = ["merge-event-log-tags.py"],
|
|
python_version = "PY3",
|
|
visibility = ["//visibility:public"],
|
|
deps = [":event_log_tags"],
|
|
)
|
|
|
|
py_binary(
|
|
name = "check_elf_file",
|
|
srcs = ["check_elf_file.py"],
|
|
python_version = "PY3",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
py_binary(
|
|
name = "auto_gen_test_config",
|
|
srcs = ["auto_gen_test_config.py"],
|
|
python_version = "PY3",
|
|
visibility = ["//visibility:public"],
|
|
)
|