commit | ffa913993fb527b44053c11f139689d3267748ec | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Jan 31 13:41:23 2017 -0800 |
committer | Yifan Hong <elsk@google.com> | Tue Jan 31 17:01:23 2017 -0800 |
tree | bbad724a6b9dc09b3449e6d8df60c677b7f38a17 | |
parent | ed291bb4c624233f5102944a2abae76da05ef9fa [diff] |
Get method signatures from IBase.hal instead of hardcoding them in hidl-gen. Test: hidl_test Bug: 32559427 Change-Id: Ib0d3beca695fca47eb5f82d5d54c651da9af3687
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