Add a Java lib to read on-device proto paths
Bug: 337911453 Test: m aconfig_on_device_protos_java Change-Id: Iac8d671acee070ed041927028ec80c7aa371bd61 Change-Id: I19e0e52d8de71207c9858305e6248b6251a20989
This commit is contained in:
@@ -36,3 +36,16 @@ rust_library {
|
||||
host_supported: true,
|
||||
defaults: ["libaconfig_device_paths.defaults"],
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "libaconfig_java_device_paths_src",
|
||||
srcs: ["src/DevicePathsTemplate.java"],
|
||||
out: ["DevicePaths.java"],
|
||||
tool_files: ["partition_aconfig_flags_paths.txt"],
|
||||
cmd: "sed -e '/TEMPLATE/{r$(location partition_aconfig_flags_paths.txt)' -e 'd}' $(in) > $(out)"
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "aconfig_device_paths_java",
|
||||
srcs: [":libaconfig_java_device_paths_src"],
|
||||
}
|
||||
|
Reference in New Issue
Block a user