commit | 4fdfa73ae9743c4fb941c9cd63051de39276ac28 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed May 24 17:18:09 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Wed May 24 18:04:05 2017 -0700 |
tree | 86c6acfa89baf96a7b77af96b9c47c3ea3bb24ee | |
parent | 72a3234b7fb63c78576c6447bc252f911502a16f [diff] |
Negative tests for syntax errors. Old tests have been broken a couple of times. These will get checked at build time. Test: hidl_error_test Bug: 38242758 Change-Id: Ia32705e2eaf77693880ceac8e19023a1cc0a17a9
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