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
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py3: {
|
2021-11-10 00:08:26 +01:00
|
|
|
embedded_launcher: true,
|
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"],
|
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
name: "gen-kotlin-build-file.py",
|
|
|
|
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",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py3: {
|
|
|
|
embedded_launcher: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
libs: [
|
|
|
|
"linker_config_proto",
|
|
|
|
],
|
|
|
|
}
|
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
|
|
|
|
|
|
|
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"],
|
|
|
|
}
|