commit | dd583845b6e06a098583265d80f55e23ea9c7bcc | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Apr 19 13:09:57 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu Apr 20 16:22:09 2017 +0000 |
tree | 47b71c2f7490eb1ff185b961de50bc8a2d6007ec | |
parent | e0586b0e450deaf81cc732896bced28c63de714e [diff] |
hidl-gen: friendlier error messages I've seen a ton of emails/bugs/hangouts messages because these weren't easy to understand. Hopefully this will make hidl-gen easier to use. Test: hidl-gen shows better error messages when -L is missing, unnavailable, or duplicated. Bug: 35181507 Change-Id: I571cd978cd0dc57e9876eb2e6571a95c2d82f82f
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