commit | 1a52e8237d6f5ea95d7b11c227f41310d8e4dcaf | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Thu Jul 27 13:56:29 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu Jul 27 21:29:07 2017 +0000 |
tree | e591e67aca18a7e3b563423a7bee6c80898a9102 | |
parent | 1b64d68c7e9de315b87eb49908fcc3d202aa5365 [diff] |
Emit tags for interfaces. Now we can statically assert that certain methods are provided the correct HIDL type. This allows us to generate better error messages and avoid polluting namespaces in some situations. Change-Id: I4dcdd1c049ffdc639d4d2ccdd4ebb26d7ad85e3c Fixes: 62807182 Test: compiles (all static checks)
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