commit | 7fa79f6ab1ded82691094bc6337bb8be39fae58d | [log] [tgz] |
---|---|---|
author | Timur Iskhakov <iskhakovt@google.com> | Wed Aug 09 11:04:54 2017 -0700 |
committer | Timur Iskhakov <iskhakovt@google.com> | Thu Aug 10 20:59:53 2017 +0000 |
tree | c001263b3227957e770afb1ada15d003f670ea23 | |
parent | 7296af19687b1c90dfd238398cd2c8ccb6bcd232 [diff] |
Merge structures with duplication features TypedVar (function argument) and CompoundField (struct/union field) have exactly same features: they store Reference<Type> type and string name, so they are merged into one "Named Reference" type. Test: compiles, hidl_test Change-Id: I6135075e5a4e2d19589af16581ceac8ab430ecc9
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0