Create one library for reading protos from all containers, instead of having numerous libraries perform the same logic. For Java, we will create a similar library reusing the same partition_aconfig_flags_paths.txt. Bug: 324436145 Test: adb shell aflags list # Confirm that various containers appear Change-Id: I924e281a50f9a609e1c07c03267eebe3dce52752
34 lines
666 B
Plaintext
34 lines
666 B
Plaintext
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
rust_defaults {
|
|
name: "aflags.defaults",
|
|
edition: "2021",
|
|
clippy_lints: "android",
|
|
lints: "android",
|
|
srcs: ["src/main.rs"],
|
|
rustlibs: [
|
|
"libaconfig_device_paths",
|
|
"libaconfig_protos",
|
|
"libaconfig_storage_read_api",
|
|
"libaconfig_storage_file",
|
|
"libanyhow",
|
|
"libclap",
|
|
"libnix",
|
|
"libprotobuf",
|
|
"libregex",
|
|
],
|
|
}
|
|
|
|
rust_binary {
|
|
name: "aflags",
|
|
defaults: ["aflags.defaults"],
|
|
}
|
|
|
|
rust_test_host {
|
|
name: "aflags.test",
|
|
defaults: ["aflags.defaults"],
|
|
test_suites: ["general-tests"],
|
|
}
|