diff options
author | Colin Cross <ccross@android.com> | 2016-11-04 15:02:42 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-11-04 22:49:15 -0700 |
commit | b785f5b82ef2efa62ca9d7288cfff64c178080b0 (patch) | |
tree | a84adca8a68ac17f76d047b48c65ac19c2aa8b0f | |
parent | ded9852531c7c538477b0763f7a85b03171f4e9d (diff) | |
download | platform_hardware_interfaces-b785f5b82ef2efa62ca9d7288cfff64c178080b0.tar.gz platform_hardware_interfaces-b785f5b82ef2efa62ca9d7288cfff64c178080b0.tar.bz2 platform_hardware_interfaces-b785f5b82ef2efa62ca9d7288cfff64c178080b0.zip |
Support genrules with multiple tools
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
36 files changed, 148 insertions, 148 deletions
diff --git a/audio/2.0/Android.bp b/audio/2.0/Android.bp index 984a09584a..e833d99ec8 100644 --- a/audio/2.0/Android.bp +++ b/audio/2.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.audio@2.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio@2.0", srcs: [ "types.hal", "IDevice.hal", @@ -28,8 +28,8 @@ genrule { genrule { name: "android.hardware.audio@2.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio@2.0", srcs: [ "types.hal", "IDevice.hal", diff --git a/audio/common/2.0/Android.bp b/audio/common/2.0/Android.bp index a00e2bd320..89ce3b6b18 100644 --- a/audio/common/2.0/Android.bp +++ b/audio/common/2.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.audio.common@2.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.common@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.common@2.0", srcs: [ "types.hal", ], @@ -14,8 +14,8 @@ genrule { genrule { name: "android.hardware.audio.common@2.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.common@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.common@2.0", srcs: [ "types.hal", ], diff --git a/audio/effect/2.0/Android.bp b/audio/effect/2.0/Android.bp index a7b4131c78..a5f0c46141 100644 --- a/audio/effect/2.0/Android.bp +++ b/audio/effect/2.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.audio.effect@2.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.effect@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.effect@2.0", srcs: [ "types.hal", "IAcousticEchoCancelerEffect.hal", @@ -42,8 +42,8 @@ genrule { genrule { name: "android.hardware.audio.effect@2.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.effect@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.audio.effect@2.0", srcs: [ "types.hal", "IAcousticEchoCancelerEffect.hal", diff --git a/benchmarks/msgq/1.0/Android.bp b/benchmarks/msgq/1.0/Android.bp index 5fe62035af..a527b322c5 100644 --- a/benchmarks/msgq/1.0/Android.bp +++ b/benchmarks/msgq/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.benchmarks.msgq@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.benchmarks.msgq@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.benchmarks.msgq@1.0", srcs: [ "IBenchmarkMsgQ.hal", ], @@ -14,8 +14,8 @@ genrule { genrule { name: "android.hardware.benchmarks.msgq@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.benchmarks.msgq@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.benchmarks.msgq@1.0", srcs: [ "IBenchmarkMsgQ.hal", ], diff --git a/biometrics/fingerprint/2.1/Android.bp b/biometrics/fingerprint/2.1/Android.bp index 5ade9f379e..9d2af44583 100644 --- a/biometrics/fingerprint/2.1/Android.bp +++ b/biometrics/fingerprint/2.1/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.biometrics.fingerprint@2.1_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.biometrics.fingerprint@2.1", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.biometrics.fingerprint@2.1", srcs: [ "types.hal", "IBiometricsFingerprint.hal", @@ -18,8 +18,8 @@ genrule { genrule { name: "android.hardware.biometrics.fingerprint@2.1_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.biometrics.fingerprint@2.1", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.biometrics.fingerprint@2.1", srcs: [ "types.hal", "IBiometricsFingerprint.hal", diff --git a/bluetooth/1.0/Android.bp b/bluetooth/1.0/Android.bp index ab0b1a9481..d8f3ca5988 100644 --- a/bluetooth/1.0/Android.bp +++ b/bluetooth/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.bluetooth@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.bluetooth@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.bluetooth@1.0", srcs: [ "types.hal", "IBluetoothHci.hal", @@ -18,8 +18,8 @@ genrule { genrule { name: "android.hardware.bluetooth@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.bluetooth@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.bluetooth@1.0", srcs: [ "types.hal", "IBluetoothHci.hal", diff --git a/boot/1.0/Android.bp b/boot/1.0/Android.bp index 6c959d9e67..cad749771a 100644 --- a/boot/1.0/Android.bp +++ b/boot/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.boot@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.boot@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.boot@1.0", srcs: [ "types.hal", "IBootControl.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.boot@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.boot@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.boot@1.0", srcs: [ "types.hal", "IBootControl.hal", diff --git a/broadcastradio/1.0/Android.bp b/broadcastradio/1.0/Android.bp index 75736d1b7c..c337e08cd4 100644 --- a/broadcastradio/1.0/Android.bp +++ b/broadcastradio/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.broadcastradio@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.broadcastradio@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.broadcastradio@1.0", srcs: [ "types.hal", "IBroadcastRadio.hal", @@ -22,8 +22,8 @@ genrule { genrule { name: "android.hardware.broadcastradio@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.broadcastradio@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.broadcastradio@1.0", srcs: [ "types.hal", "IBroadcastRadio.hal", diff --git a/example/extension/light/2.0/Android.bp b/example/extension/light/2.0/Android.bp index 5d58512486..4cdbc66c64 100644 --- a/example/extension/light/2.0/Android.bp +++ b/example/extension/light/2.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.example.extension.light@2.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.example.extension.light@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.example.extension.light@2.0", srcs: [ "types.hal", "IExtLight.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.example.extension.light@2.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.example.extension.light@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.example.extension.light@2.0", srcs: [ "types.hal", "IExtLight.hal", diff --git a/gnss/1.0/Android.bp b/gnss/1.0/Android.bp index 9b9abe33e6..1f538ca827 100644 --- a/gnss/1.0/Android.bp +++ b/gnss/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.gnss@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.gnss@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.gnss@1.0", srcs: [ "types.hal", "IAGnss.hal", @@ -48,8 +48,8 @@ genrule { genrule { name: "android.hardware.gnss@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.gnss@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.gnss@1.0", srcs: [ "types.hal", "IAGnss.hal", diff --git a/graphics/allocator/2.0/Android.bp b/graphics/allocator/2.0/Android.bp index 0d800bec8f..004d7d27bb 100644 --- a/graphics/allocator/2.0/Android.bp +++ b/graphics/allocator/2.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.graphics.allocator@2.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.allocator@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.allocator@2.0", srcs: [ "types.hal", "IAllocator.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.graphics.allocator@2.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.allocator@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.allocator@2.0", srcs: [ "types.hal", "IAllocator.hal", diff --git a/graphics/common/1.0/Android.bp b/graphics/common/1.0/Android.bp index ba66f94ebd..fa95ca0f04 100644 --- a/graphics/common/1.0/Android.bp +++ b/graphics/common/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.graphics.common@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.common@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.common@1.0", srcs: [ "types.hal", ], @@ -14,8 +14,8 @@ genrule { genrule { name: "android.hardware.graphics.common@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.common@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.common@1.0", srcs: [ "types.hal", ], diff --git a/graphics/composer/2.1/Android.bp b/graphics/composer/2.1/Android.bp index bc948e8f80..00158612c0 100644 --- a/graphics/composer/2.1/Android.bp +++ b/graphics/composer/2.1/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.graphics.composer@2.1_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.composer@2.1", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.composer@2.1", srcs: [ "types.hal", "IComposer.hal", @@ -18,8 +18,8 @@ genrule { genrule { name: "android.hardware.graphics.composer@2.1_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.composer@2.1", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.graphics.composer@2.1", srcs: [ "types.hal", "IComposer.hal", diff --git a/light/2.0/Android.bp b/light/2.0/Android.bp index ff2414cd3f..b762cc17c7 100644 --- a/light/2.0/Android.bp +++ b/light/2.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.light@2.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.light@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.light@2.0", srcs: [ "types.hal", "ILight.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.light@2.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.light@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.light@2.0", srcs: [ "types.hal", "ILight.hal", diff --git a/memtrack/1.0/Android.bp b/memtrack/1.0/Android.bp index 4b6864c205..83c09cf798 100644 --- a/memtrack/1.0/Android.bp +++ b/memtrack/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.memtrack@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.memtrack@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.memtrack@1.0", srcs: [ "types.hal", "IMemtrack.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.memtrack@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.memtrack@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.memtrack@1.0", srcs: [ "types.hal", "IMemtrack.hal", diff --git a/nfc/1.0/Android.bp b/nfc/1.0/Android.bp index 9c3bb5fa17..b6e8d08921 100644 --- a/nfc/1.0/Android.bp +++ b/nfc/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.nfc@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.nfc@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.nfc@1.0", srcs: [ "types.hal", "INfc.hal", @@ -18,8 +18,8 @@ genrule { genrule { name: "android.hardware.nfc@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.nfc@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.nfc@1.0", srcs: [ "types.hal", "INfc.hal", diff --git a/power/1.0/Android.bp b/power/1.0/Android.bp index 52ec33fda5..a6714744bb 100644 --- a/power/1.0/Android.bp +++ b/power/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.power@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.power@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.power@1.0", srcs: [ "types.hal", "IPower.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.power@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.power@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.power@1.0", srcs: [ "types.hal", "IPower.hal", diff --git a/radio/1.0/Android.bp b/radio/1.0/Android.bp index 592754999e..0f89421337 100644 --- a/radio/1.0/Android.bp +++ b/radio/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.radio@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.radio@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.radio@1.0", srcs: [ "types.hal", "IRadio.hal", @@ -24,8 +24,8 @@ genrule { genrule { name: "android.hardware.radio@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.radio@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.radio@1.0", srcs: [ "types.hal", "IRadio.hal", diff --git a/sensors/1.0/Android.bp b/sensors/1.0/Android.bp index 13e9beeb7f..2039613070 100644 --- a/sensors/1.0/Android.bp +++ b/sensors/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.sensors@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.sensors@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.sensors@1.0", srcs: [ "types.hal", "ISensors.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.sensors@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.sensors@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.sensors@1.0", srcs: [ "types.hal", "ISensors.hal", diff --git a/soundtrigger/2.0/Android.bp b/soundtrigger/2.0/Android.bp index cda8c22772..d59e47fb2c 100644 --- a/soundtrigger/2.0/Android.bp +++ b/soundtrigger/2.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.soundtrigger@2.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.soundtrigger@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.soundtrigger@2.0", srcs: [ "types.hal", "ISoundTriggerHw.hal", @@ -18,8 +18,8 @@ genrule { genrule { name: "android.hardware.soundtrigger@2.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.soundtrigger@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.soundtrigger@2.0", srcs: [ "types.hal", "ISoundTriggerHw.hal", diff --git a/tests/bar/1.0/Android.bp b/tests/bar/1.0/Android.bp index 4af053cf81..a0b42b7485 100644 --- a/tests/bar/1.0/Android.bp +++ b/tests/bar/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tests.bar@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.bar@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.bar@1.0", srcs: [ "IBar.hal", "IImportTypes.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.tests.bar@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.bar@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.bar@1.0", srcs: [ "IBar.hal", "IImportTypes.hal", diff --git a/tests/baz/1.0/Android.bp b/tests/baz/1.0/Android.bp index 18a554d22b..1a7c300bc2 100644 --- a/tests/baz/1.0/Android.bp +++ b/tests/baz/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tests.baz@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.baz@1.0", + 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", @@ -20,8 +20,8 @@ genrule { genrule { name: "android.hardware.tests.baz@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.baz@1.0", + 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", diff --git a/tests/expression/1.0/Android.bp b/tests/expression/1.0/Android.bp index 2061283af2..6acb3f994f 100644 --- a/tests/expression/1.0/Android.bp +++ b/tests/expression/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tests.expression@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.expression@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.expression@1.0", srcs: [ "IExpression.hal", "IExpressionExt.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.tests.expression@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.expression@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.expression@1.0", srcs: [ "IExpression.hal", "IExpressionExt.hal", diff --git a/tests/foo/1.0/Android.bp b/tests/foo/1.0/Android.bp index 7a556ed494..7e30fe3830 100644 --- a/tests/foo/1.0/Android.bp +++ b/tests/foo/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tests.foo@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.foo@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.foo@1.0", srcs: [ "types.hal", "IFoo.hal", @@ -24,8 +24,8 @@ genrule { genrule { name: "android.hardware.tests.foo@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.foo@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.foo@1.0", srcs: [ "types.hal", "IFoo.hal", diff --git a/tests/inheritance/1.0/Android.bp b/tests/inheritance/1.0/Android.bp index 92d6fe7703..f522ac06a9 100644 --- a/tests/inheritance/1.0/Android.bp +++ b/tests/inheritance/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tests.inheritance@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.inheritance@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.inheritance@1.0", srcs: [ "IChild.hal", "IFetcher.hal", @@ -20,8 +20,8 @@ genrule { genrule { name: "android.hardware.tests.inheritance@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.inheritance@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.inheritance@1.0", srcs: [ "IChild.hal", "IFetcher.hal", diff --git a/tests/libhwbinder/1.0/Android.bp b/tests/libhwbinder/1.0/Android.bp index aad24a6daa..2598f30229 100644 --- a/tests/libhwbinder/1.0/Android.bp +++ b/tests/libhwbinder/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tests.libhwbinder@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.libhwbinder@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.libhwbinder@1.0", srcs: [ "IBenchmark.hal", ], @@ -14,8 +14,8 @@ genrule { genrule { name: "android.hardware.tests.libhwbinder@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.libhwbinder@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.libhwbinder@1.0", srcs: [ "IBenchmark.hal", ], diff --git a/tests/msgq/1.0/Android.bp b/tests/msgq/1.0/Android.bp index 2eb36c02dd..e685bcc121 100644 --- a/tests/msgq/1.0/Android.bp +++ b/tests/msgq/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tests.msgq@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.msgq@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.msgq@1.0", srcs: [ "ITestMsgQ.hal", ], @@ -14,8 +14,8 @@ genrule { genrule { name: "android.hardware.tests.msgq@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.msgq@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.msgq@1.0", srcs: [ "ITestMsgQ.hal", ], diff --git a/tests/pointer/1.0/Android.bp b/tests/pointer/1.0/Android.bp index 2b1e8b27fb..ad8d0146ae 100644 --- a/tests/pointer/1.0/Android.bp +++ b/tests/pointer/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tests.pointer@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.pointer@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.pointer@1.0", srcs: [ "IGraph.hal", "IPointer.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.tests.pointer@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.pointer@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.pointer@1.0", srcs: [ "IGraph.hal", "IPointer.hal", diff --git a/thermal/1.0/Android.bp b/thermal/1.0/Android.bp index 76a38a0b55..60f26267ca 100644 --- a/thermal/1.0/Android.bp +++ b/thermal/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.thermal@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.thermal@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.thermal@1.0", srcs: [ "types.hal", "IThermal.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.thermal@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.thermal@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.thermal@1.0", srcs: [ "types.hal", "IThermal.hal", diff --git a/tv/cec/1.0/Android.bp b/tv/cec/1.0/Android.bp index 4fd1b7eeb2..bb1ae82ff9 100644 --- a/tv/cec/1.0/Android.bp +++ b/tv/cec/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tv.cec@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tv.cec@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tv.cec@1.0", srcs: [ "types.hal", "IHdmiCec.hal", @@ -18,8 +18,8 @@ genrule { genrule { name: "android.hardware.tv.cec@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tv.cec@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tv.cec@1.0", srcs: [ "types.hal", "IHdmiCec.hal", @@ -51,9 +51,9 @@ cc_library_shared { "libutils", "libcutils", ], -export_shared_lib_headers: [ - "libhidl", - "libhwbinder", - "libutils", + export_shared_lib_headers: [ + "libhidl", + "libhwbinder", + "libutils", ], } diff --git a/tv/input/1.0/Android.bp b/tv/input/1.0/Android.bp index fa736b0509..0b63f319ee 100644 --- a/tv/input/1.0/Android.bp +++ b/tv/input/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.tv.input@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tv.input@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tv.input@1.0", srcs: [ "types.hal", "ITvInput.hal", @@ -18,8 +18,8 @@ genrule { genrule { name: "android.hardware.tv.input@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tv.input@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tv.input@1.0", srcs: [ "types.hal", "ITvInput.hal", diff --git a/vehicle/2.0/Android.bp b/vehicle/2.0/Android.bp index 27ac213de2..d51fe254ba 100644 --- a/vehicle/2.0/Android.bp +++ b/vehicle/2.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.vehicle@2.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vehicle@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vehicle@2.0", srcs: [ "types.hal", "IVehicle.hal", @@ -18,8 +18,8 @@ genrule { genrule { name: "android.hardware.vehicle@2.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vehicle@2.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vehicle@2.0", srcs: [ "types.hal", "IVehicle.hal", diff --git a/vibrator/1.0/Android.bp b/vibrator/1.0/Android.bp index 85bbc5e402..faf4341367 100644 --- a/vibrator/1.0/Android.bp +++ b/vibrator/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.vibrator@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vibrator@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vibrator@1.0", srcs: [ "types.hal", "IVibrator.hal", @@ -16,8 +16,8 @@ genrule { genrule { name: "android.hardware.vibrator@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vibrator@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vibrator@1.0", srcs: [ "types.hal", "IVibrator.hal", diff --git a/vr/1.0/Android.bp b/vr/1.0/Android.bp index eaed921a03..fc4619f1ec 100644 --- a/vr/1.0/Android.bp +++ b/vr/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.vr@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vr@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vr@1.0", srcs: [ "IVr.hal", ], @@ -14,8 +14,8 @@ genrule { genrule { name: "android.hardware.vr@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vr@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.vr@1.0", srcs: [ "IVr.hal", ], diff --git a/wifi/1.0/Android.bp b/wifi/1.0/Android.bp index 7453fe7bf4..b7309310b8 100644 --- a/wifi/1.0/Android.bp +++ b/wifi/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.wifi@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.wifi@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.wifi@1.0", srcs: [ "types.hal", "IWifi.hal", @@ -34,8 +34,8 @@ genrule { genrule { name: "android.hardware.wifi@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.wifi@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.wifi@1.0", srcs: [ "types.hal", "IWifi.hal", diff --git a/wifi/supplicant/1.0/Android.bp b/wifi/supplicant/1.0/Android.bp index d4247d22e6..08c6f9ac46 100644 --- a/wifi/supplicant/1.0/Android.bp +++ b/wifi/supplicant/1.0/Android.bp @@ -2,8 +2,8 @@ genrule { name: "android.hardware.wifi.supplicant@1.0_genc++", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.wifi.supplicant@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.wifi.supplicant@1.0", srcs: [ "types.hal", "ISupplicant.hal", @@ -38,8 +38,8 @@ genrule { genrule { name: "android.hardware.wifi.supplicant@1.0_genc++_headers", - tool: "hidl-gen", - cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.wifi.supplicant@1.0", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces android.hardware.wifi.supplicant@1.0", srcs: [ "types.hal", "ISupplicant.hal", |