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 /nfc/1.0 | |
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
Diffstat (limited to 'nfc/1.0')
-rw-r--r-- | nfc/1.0/Android.bp | 8 |
1 files changed, 4 insertions, 4 deletions
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", |