8f084e00d6
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
(cherry picked from commit b785f5b82e
)
67 lines
2.3 KiB
Text
67 lines
2.3 KiB
Text
// This file is autogenerated by hidl-gen. Do not edit manually.
|
|
|
|
genrule {
|
|
name: "android.hardware.tests.baz@1.0_genc++",
|
|
tools: ["hidl-gen"],
|
|
cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.baz@1.0",
|
|
srcs: [
|
|
"types.hal",
|
|
"IBase.hal",
|
|
"IBaz.hal",
|
|
"IBazCallback.hal",
|
|
],
|
|
out: [
|
|
"android/hardware/tests/baz/1.0/types.cpp",
|
|
"android/hardware/tests/baz/1.0/BaseAll.cpp",
|
|
"android/hardware/tests/baz/1.0/BazAll.cpp",
|
|
"android/hardware/tests/baz/1.0/BazCallbackAll.cpp",
|
|
],
|
|
}
|
|
|
|
genrule {
|
|
name: "android.hardware.tests.baz@1.0_genc++_headers",
|
|
tools: ["hidl-gen"],
|
|
cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.baz@1.0",
|
|
srcs: [
|
|
"types.hal",
|
|
"IBase.hal",
|
|
"IBaz.hal",
|
|
"IBazCallback.hal",
|
|
],
|
|
out: [
|
|
"android/hardware/tests/baz/1.0/types.h",
|
|
"android/hardware/tests/baz/1.0/IBase.h",
|
|
"android/hardware/tests/baz/1.0/IHwBase.h",
|
|
"android/hardware/tests/baz/1.0/BnBase.h",
|
|
"android/hardware/tests/baz/1.0/BpBase.h",
|
|
"android/hardware/tests/baz/1.0/BsBase.h",
|
|
"android/hardware/tests/baz/1.0/IBaz.h",
|
|
"android/hardware/tests/baz/1.0/IHwBaz.h",
|
|
"android/hardware/tests/baz/1.0/BnBaz.h",
|
|
"android/hardware/tests/baz/1.0/BpBaz.h",
|
|
"android/hardware/tests/baz/1.0/BsBaz.h",
|
|
"android/hardware/tests/baz/1.0/IBazCallback.h",
|
|
"android/hardware/tests/baz/1.0/IHwBazCallback.h",
|
|
"android/hardware/tests/baz/1.0/BnBazCallback.h",
|
|
"android/hardware/tests/baz/1.0/BpBazCallback.h",
|
|
"android/hardware/tests/baz/1.0/BsBazCallback.h",
|
|
],
|
|
}
|
|
|
|
cc_library_shared {
|
|
name: "android.hardware.tests.baz@1.0",
|
|
generated_sources: ["android.hardware.tests.baz@1.0_genc++"],
|
|
generated_headers: ["android.hardware.tests.baz@1.0_genc++_headers"],
|
|
export_generated_headers: ["android.hardware.tests.baz@1.0_genc++_headers"],
|
|
shared_libs: [
|
|
"libhidl",
|
|
"libhwbinder",
|
|
"libutils",
|
|
"libcutils",
|
|
],
|
|
export_shared_lib_headers: [
|
|
"libhidl",
|
|
"libhwbinder",
|
|
"libutils",
|
|
],
|
|
}
|