commit | c4e10605564ba5a8c656e5eabecd237abdc310e1 | [log] [tgz] |
---|---|---|
author | Zhuoyao Zhang <zhuoyao@google.com> | Fri Jan 27 16:48:05 2017 -0800 |
committer | Zhuoyao Zhang <zhuoyao@google.com> | Wed Feb 01 13:51:29 2017 -0800 |
tree | af1b9f4c4e317bcdec768a2924351489221849db | |
parent | e2fe98ca32c5d8b7ca8165c7a3689bdca4f1c137 [diff] |
Update hidl-gen for vts backend. * Generate the type definition from all imported interface/types. * Update the logic to generate a single profiler package for a hal package. Test: make hidl-gen Change-Id: I634c435af9913f74fa0e2495908a1805097649c4
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