commit | 97e5233c9934d2793fa633c8ffe12ba624e49fb0 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri May 12 16:47:19 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Fri May 12 16:47:19 2017 -0700 |
tree | 57704af54d6e15246866aa8d9e3f22a255318e9e | |
parent | f47912de0a45e9d3c3c4c89c452f6ee6efcd7913 [diff] |
Add descriptions of formats. This makes the tool easier to use without needing documentation at hand. Test: manual Change-Id: I892477001125f46d5e42e66e8474cb203e621c17
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