b785f5b82e
To allow genrules with more than one tool, rename the tool property to tools and make it an array, replace $tool with $(location <label>), and use $() for other variables for consistency. Bug: 31948427 Test: compare build.ninja Change-Id: I3d714f70a2af0dc60faeee10e09b6ed166601f1d
47 lines
1.3 KiB
Text
47 lines
1.3 KiB
Text
// This file is autogenerated by hidl-gen. Do not edit manually.
|
|
|
|
genrule {
|
|
name: "android.hardware.vr@1.0_genc++",
|
|
tools: ["hidl-gen"],
|
|
cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vr@1.0",
|
|
srcs: [
|
|
"IVr.hal",
|
|
],
|
|
out: [
|
|
"android/hardware/vr/1.0/VrAll.cpp",
|
|
],
|
|
}
|
|
|
|
genrule {
|
|
name: "android.hardware.vr@1.0_genc++_headers",
|
|
tools: ["hidl-gen"],
|
|
cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vr@1.0",
|
|
srcs: [
|
|
"IVr.hal",
|
|
],
|
|
out: [
|
|
"android/hardware/vr/1.0/IVr.h",
|
|
"android/hardware/vr/1.0/IHwVr.h",
|
|
"android/hardware/vr/1.0/BnVr.h",
|
|
"android/hardware/vr/1.0/BpVr.h",
|
|
"android/hardware/vr/1.0/BsVr.h",
|
|
],
|
|
}
|
|
|
|
cc_library_shared {
|
|
name: "android.hardware.vr@1.0",
|
|
generated_sources: ["android.hardware.vr@1.0_genc++"],
|
|
generated_headers: ["android.hardware.vr@1.0_genc++_headers"],
|
|
export_generated_headers: ["android.hardware.vr@1.0_genc++_headers"],
|
|
shared_libs: [
|
|
"libhidl",
|
|
"libhwbinder",
|
|
"libutils",
|
|
"libcutils",
|
|
],
|
|
export_shared_lib_headers: [
|
|
"libhidl",
|
|
"libhwbinder",
|
|
"libutils",
|
|
],
|
|
}
|