2021-02-04 10:08:28 +08:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2020-10-29 03:20:06 +08:00
|
|
|
python_binary_host {
|
|
|
|
name: "check_boot_jars",
|
|
|
|
main: "check_boot_jars/check_boot_jars.py",
|
|
|
|
srcs: [
|
|
|
|
"check_boot_jars/check_boot_jars.py",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2019-05-17 04:16:29 +08:00
|
|
|
python_binary_host {
|
|
|
|
name: "manifest_fixer",
|
|
|
|
main: "manifest_fixer.py",
|
|
|
|
srcs: [
|
|
|
|
"manifest_fixer.py",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2020-02-20 13:16:31 +08:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-05-17 04:16:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "manifest_fixer_test",
|
|
|
|
main: "manifest_fixer_test.py",
|
|
|
|
srcs: [
|
|
|
|
"manifest_fixer_test.py",
|
|
|
|
"manifest_fixer.py",
|
2019-05-21 04:14:18 +08:00
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2020-02-20 13:16:31 +08:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-05-21 04:14:18 +08:00
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
|
|
|
|
2020-02-20 13:16:31 +08:00
|
|
|
python_library_host {
|
|
|
|
name: "manifest_utils",
|
|
|
|
srcs: [
|
|
|
|
"manifest.py",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2019-05-21 04:14:18 +08:00
|
|
|
python_binary_host {
|
|
|
|
name: "manifest_check",
|
|
|
|
main: "manifest_check.py",
|
|
|
|
srcs: [
|
|
|
|
"manifest_check.py",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2020-02-20 13:16:31 +08:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-05-21 04:14:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "manifest_check_test",
|
|
|
|
main: "manifest_check_test.py",
|
|
|
|
srcs: [
|
|
|
|
"manifest_check_test.py",
|
|
|
|
"manifest_check.py",
|
2019-05-17 04:16:29 +08:00
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2020-02-20 13:16:31 +08:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-05-17 04:16:29 +08:00
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
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 22:35:08 +08:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "jsonmodify",
|
|
|
|
main: "jsonmodify.py",
|
|
|
|
srcs: [
|
|
|
|
"jsonmodify.py",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
2020-06-26 20:04:00 +08: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 22:35:08 +08:00
|
|
|
}
|
2019-11-23 06:34:55 +08:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "test_config_fixer",
|
|
|
|
main: "test_config_fixer.py",
|
|
|
|
srcs: [
|
|
|
|
"test_config_fixer.py",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2020-02-20 13:16:31 +08:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-11-23 06:34:55 +08: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",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
2020-02-20 13:16:31 +08:00
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
2019-11-23 06:34:55 +08:00
|
|
|
test_suites: ["general-tests"],
|
2020-02-20 13:16:31 +08:00
|
|
|
}
|
2020-06-03 11:09:13 +08:00
|
|
|
|
2020-06-30 19:39:01 +08:00
|
|
|
python_binary_host {
|
|
|
|
name: "construct_context",
|
|
|
|
main: "construct_context.py",
|
|
|
|
srcs: [
|
|
|
|
"construct_context.py",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
python_test_host {
|
|
|
|
name: "construct_context_test",
|
|
|
|
main: "construct_context_test.py",
|
|
|
|
srcs: [
|
|
|
|
"construct_context_test.py",
|
|
|
|
"construct_context.py",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
libs: [
|
|
|
|
"manifest_utils",
|
|
|
|
],
|
|
|
|
test_suites: ["general-tests"],
|
|
|
|
}
|
|
|
|
|
2021-02-10 21:03:27 +08:00
|
|
|
python_library_host {
|
|
|
|
name: "ninja_rsp",
|
|
|
|
srcs: ["ninja_rsp.py"],
|
|
|
|
}
|
|
|
|
|
2020-06-03 11:09:13 +08:00
|
|
|
python_binary_host {
|
|
|
|
name: "lint-project-xml",
|
|
|
|
main: "lint-project-xml.py",
|
2020-06-26 08:12:28 +08:00
|
|
|
srcs: [
|
|
|
|
"lint-project-xml.py",
|
|
|
|
],
|
2021-02-10 21:03:27 +08:00
|
|
|
libs: ["ninja_rsp"],
|
2020-06-26 08:12:28 +08: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 21:03:27 +08:00
|
|
|
libs: ["ninja_rsp"],
|
2020-06-03 11:09:13 +08:00
|
|
|
}
|
2020-10-06 16:16:44 +08:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "conv_linker_config",
|
|
|
|
srcs: [
|
|
|
|
"conv_linker_config.py",
|
|
|
|
],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: true,
|
|
|
|
embedded_launcher: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
libs: [
|
|
|
|
"linker_config_proto",
|
|
|
|
],
|
|
|
|
}
|