2021-02-04 03:08:28 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
2021-11-10 00:08:26 +01:00
|
|
|
default_visibility: ["//build/soong:__subpackages__"],
|
2021-02-04 03:08:28 +01:00
|
|
|
}
|
|
|
|
|
2020-10-28 20:20:06 +01:00
|
|
|
python_binary_host {
|
|
|
|
name: "check_boot_jars",
|
|
|
|
main: "check_boot_jars/check_boot_jars.py",
|
|
|
|
srcs: [
|
|
|
|
"check_boot_jars/check_boot_jars.py",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-05-16 22:16:29 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "manifest_fixer",
|
|
|
|
main: "manifest_fixer.py",
|
|
|
|
srcs: [
|
|
|
|
"manifest_fixer.py",
|
|
|
|
],
|
2020-02-20 06:16:31 +01:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-05-16 22:16:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "manifest_fixer_test",
|
|
|
|
main: "manifest_fixer_test.py",
|
|
|
|
srcs: [
|
|
|
|
"manifest_fixer_test.py",
|
|
|
|
"manifest_fixer.py",
|
2019-05-20 22:14:18 +02:00
|
|
|
],
|
2020-02-20 06:16:31 +01:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2021-03-19 18:16:09 +01:00
|
|
|
test_options: {
|
|
|
|
unit_test: true,
|
|
|
|
},
|
2019-05-20 22:14:18 +02:00
|
|
|
}
|
|
|
|
|
2020-02-20 06:16:31 +01:00
|
|
|
python_library_host {
|
|
|
|
name: "manifest_utils",
|
|
|
|
srcs: [
|
|
|
|
"manifest.py",
|
|
|
|
],
|
2021-11-10 00:08:26 +01:00
|
|
|
visibility: ["//system/apex/apexer:__pkg__"],
|
2020-02-20 06:16:31 +01:00
|
|
|
}
|
|
|
|
|
2019-05-20 22:14:18 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "manifest_check",
|
|
|
|
main: "manifest_check.py",
|
|
|
|
srcs: [
|
|
|
|
"manifest_check.py",
|
|
|
|
],
|
2020-02-20 06:16:31 +01:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-05-20 22:14:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "manifest_check_test",
|
|
|
|
main: "manifest_check_test.py",
|
|
|
|
srcs: [
|
|
|
|
"manifest_check_test.py",
|
|
|
|
"manifest_check.py",
|
2019-05-16 22:16:29 +02:00
|
|
|
],
|
2020-02-20 06:16:31 +01:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2021-03-19 18:16:09 +01:00
|
|
|
test_options: {
|
|
|
|
unit_test: true,
|
|
|
|
},
|
2019-05-16 22:16:29 +02:00
|
|
|
}
|
Add jsonmodify tool
This tool is used to modify apex_manifest.json when building apex
module.
Here's the usage:
usage: jsonmodify [-h] [-o output] [-v path value] [-s path value]
[-r path] [-a path [value ...]]
[input]
positional arguments:
input JSON file
optional arguments:
-h, --help show this help message and exit
-o output, --out output
write result to a file. If omitted, print to stdout
-v path value, --value path value
set value of the key specified by path. If path
doesn't exist, creates new one.
-s path value, --replace path value
replace value of the key specified by path. If path
doesn't exist, no op.
-r path, --remove path
remove the key specified by path. If path doesn't
exist, no op.
-a path [value ...], --append_list path [value ...]
append values to the list specified by path. If path
doesn't exist, creates new list for it.
Bug: 138695532
Test: m jsonmodify
Test: echo {} | jsonmodify -v name hello -a list.nested a b c
{
"name": "hello",
"list": {
"nested": [
"a",
"b",
"c"
]
}
}
Change-Id: I2cd043c614b3ad2306a0c27ccee302633c6d2525
2019-08-01 16:35:08 +02:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "jsonmodify",
|
|
|
|
main: "jsonmodify.py",
|
|
|
|
srcs: [
|
|
|
|
"jsonmodify.py",
|
|
|
|
],
|
|
|
|
}
|
2019-11-22 23:34:55 +01:00
|
|
|
|
2022-07-11 13:38:50 +02:00
|
|
|
python_test_host {
|
|
|
|
name: "jsonmodify_test",
|
|
|
|
main: "jsonmodify_test.py",
|
|
|
|
srcs: [
|
|
|
|
"jsonmodify_test.py",
|
|
|
|
"jsonmodify.py",
|
|
|
|
],
|
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
|
|
|
|
2019-11-22 23:34:55 +01:00
|
|
|
python_binary_host {
|
|
|
|
name: "test_config_fixer",
|
|
|
|
main: "test_config_fixer.py",
|
|
|
|
srcs: [
|
|
|
|
"test_config_fixer.py",
|
|
|
|
],
|
2020-02-20 06:16:31 +01:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-11-22 23:34:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "test_config_fixer_test",
|
|
|
|
main: "test_config_fixer_test.py",
|
|
|
|
srcs: [
|
|
|
|
"test_config_fixer_test.py",
|
|
|
|
"test_config_fixer.py",
|
|
|
|
],
|
2020-02-20 06:16:31 +01:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-11-22 23:34:55 +01:00
|
|
|
test_suites: ["general-tests"],
|
2020-02-20 06:16:31 +01:00
|
|
|
}
|
2020-06-03 05:09:13 +02:00
|
|
|
|
2020-06-30 13:39:01 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "construct_context",
|
|
|
|
main: "construct_context.py",
|
|
|
|
srcs: [
|
|
|
|
"construct_context.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "construct_context_test",
|
|
|
|
main: "construct_context_test.py",
|
|
|
|
srcs: [
|
|
|
|
"construct_context_test.py",
|
|
|
|
"construct_context.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
|
|
|
|
2024-01-18 18:27:42 +01:00
|
|
|
python_library_host {
|
|
|
|
name: "uffd_gc_utils",
|
|
|
|
srcs: [
|
|
|
|
"uffd_gc_utils.py",
|
|
|
|
],
|
|
|
|
visibility: [
|
|
|
|
"//build/make/tools:__subpackages__",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "uffd_gc_utils_test",
|
|
|
|
main: "uffd_gc_utils_test.py",
|
|
|
|
srcs: [
|
|
|
|
"uffd_gc_utils_test.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"uffd_gc_utils",
|
|
|
|
],
|
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "construct_uffd_gc_flag",
|
|
|
|
main: "construct_uffd_gc_flag.py",
|
|
|
|
srcs: [
|
|
|
|
"construct_uffd_gc_flag.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"uffd_gc_utils",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2021-02-10 14:03:27 +01:00
|
|
|
python_library_host {
|
|
|
|
name: "ninja_rsp",
|
|
|
|
srcs: ["ninja_rsp.py"],
|
|
|
|
}
|
|
|
|
|
2020-06-03 05:09:13 +02:00
|
|
|
python_binary_host {
|
2021-04-20 02:58:22 +02:00
|
|
|
name: "lint_project_xml",
|
|
|
|
main: "lint_project_xml.py",
|
2020-06-26 02:12:28 +02:00
|
|
|
srcs: [
|
2021-04-20 02:58:22 +02:00
|
|
|
"lint_project_xml.py",
|
2020-06-26 02:12:28 +02:00
|
|
|
],
|
2021-02-10 14:03:27 +01:00
|
|
|
libs: ["ninja_rsp"],
|
2020-06-26 02:12:28 +02:00
|
|
|
}
|
|
|
|
|
2021-04-20 16:23:25 +02:00
|
|
|
python_test_host {
|
|
|
|
name: "lint_project_xml_test",
|
|
|
|
main: "lint_project_xml_test.py",
|
|
|
|
srcs: [
|
|
|
|
"lint_project_xml_test.py",
|
|
|
|
"lint_project_xml.py",
|
|
|
|
],
|
|
|
|
libs: ["ninja_rsp"],
|
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
|
|
|
|
2020-06-26 02:12:28 +02:00
|
|
|
python_binary_host {
|
2022-09-02 00:20:00 +02:00
|
|
|
name: "gen-kotlin-build-file",
|
2020-06-26 02:12:28 +02:00
|
|
|
main: "gen-kotlin-build-file.py",
|
|
|
|
srcs: [
|
|
|
|
"gen-kotlin-build-file.py",
|
|
|
|
],
|
2021-02-10 14:03:27 +01:00
|
|
|
libs: ["ninja_rsp"],
|
2020-06-03 05:09:13 +02:00
|
|
|
}
|
2020-10-06 10:16:44 +02:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "conv_linker_config",
|
|
|
|
srcs: [
|
|
|
|
"conv_linker_config.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"linker_config_proto",
|
|
|
|
],
|
2023-04-12 10:20:47 +02:00
|
|
|
visibility: ["//system/linkerconfig"],
|
2020-10-06 10:16:44 +02:00
|
|
|
}
|
2021-06-25 00:59:38 +02:00
|
|
|
|
2023-03-09 06:50:35 +01:00
|
|
|
python_test_host {
|
|
|
|
name: "conv_linker_config_test",
|
|
|
|
main: "conv_linker_config_test.py",
|
|
|
|
srcs: [
|
|
|
|
"conv_linker_config_test.py",
|
|
|
|
"conv_linker_config.py",
|
|
|
|
],
|
|
|
|
libs: ["linker_config_proto"],
|
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
|
|
|
|
2021-06-25 00:59:38 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "get_clang_version",
|
|
|
|
main: "get_clang_version.py",
|
|
|
|
srcs: [
|
|
|
|
"get_clang_version.py",
|
|
|
|
],
|
|
|
|
}
|
2022-03-31 05:33:09 +02:00
|
|
|
|
2022-09-20 10:00:27 +02:00
|
|
|
python_binary_host {
|
|
|
|
name: "build-apex-bundle",
|
|
|
|
main: "build-apex-bundle.py",
|
|
|
|
srcs: [
|
|
|
|
"build-apex-bundle.py",
|
|
|
|
],
|
|
|
|
required: [
|
|
|
|
"bundletool",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2022-03-31 05:33:09 +02:00
|
|
|
sh_binary_host {
|
|
|
|
name: "list_image",
|
|
|
|
src: "list_image.sh",
|
|
|
|
}
|
2022-05-13 16:01:35 +02:00
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "rustfmt.toml",
|
|
|
|
srcs: ["rustfmt.toml"],
|
|
|
|
visibility: ["//visibility:public"],
|
|
|
|
}
|
2023-03-14 17:41:59 +01:00
|
|
|
|
|
|
|
sh_binary_host {
|
|
|
|
name: "jars-to-module-info-java",
|
|
|
|
src: "jars-to-module-info-java.sh",
|
|
|
|
}
|
2022-08-17 18:50:48 +02:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "modify_permissions_allowlist",
|
|
|
|
main: "modify_permissions_allowlist.py",
|
|
|
|
srcs: [
|
|
|
|
"modify_permissions_allowlist.py",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "modify_permissions_allowlist_test",
|
|
|
|
main: "modify_permissions_allowlist_test.py",
|
|
|
|
srcs: [
|
|
|
|
"modify_permissions_allowlist_test.py",
|
|
|
|
"modify_permissions_allowlist.py",
|
|
|
|
],
|
|
|
|
}
|
2023-12-14 20:11:16 +01:00
|
|
|
|
|
|
|
sh_binary_host {
|
|
|
|
name: "keep-flagged-apis",
|
|
|
|
src: "keep-flagged-apis.sh",
|
|
|
|
}
|
2024-03-12 20:44:40 +01:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "merge_directories",
|
|
|
|
main: "merge_directories.py",
|
|
|
|
srcs: [
|
|
|
|
"merge_directories.py",
|
|
|
|
],
|
|
|
|
}
|
2024-03-19 08:48:59 +01:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "buildinfo",
|
|
|
|
main: "buildinfo.py",
|
|
|
|
srcs: ["buildinfo.py"],
|
|
|
|
}
|
2024-05-09 20:07:20 +02:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "extra_install_zips_file_list",
|
|
|
|
main: "extra_install_zips_file_list.py",
|
|
|
|
srcs: ["extra_install_zips_file_list.py"],
|
|
|
|
}
|