mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Add a re-implementation of the Lights HAL example service in Rust. This was originally written as the start of a Cuttlefish specific implementation of this service, but it's simple / small enough that replacing the current Android C++ one with it shouldn't bring in any trouble while providing yet another Rust service example to the tree. Tested: built VtsHalLightTargetTest and ran in Cuttlefish Bug: 286106270 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a796fb113c405838424e61fd0b4cd6e0ef86c5a7) Change-Id: I01eaf9ce7c6086e1429f52ff4f7f92cebc5360b6
24 lines
706 B
Plaintext
24 lines
706 B
Plaintext
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "hardware_interfaces_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["hardware_interfaces_license"],
|
|
}
|
|
|
|
rust_binary {
|
|
name: "android.hardware.lights-service.example",
|
|
relative_install_path: "hw",
|
|
init_rc: ["lights-default.rc"],
|
|
vintf_fragments: ["lights-default.xml"],
|
|
vendor: true,
|
|
rustlibs: [
|
|
"liblogger",
|
|
"liblog_rust",
|
|
"libbinder_rs",
|
|
"android.hardware.light-V2-rust",
|
|
],
|
|
srcs: [ "main.rs" ],
|
|
}
|