commit | d10feeaaad681c9f70330838f5d19e54ecfc98b7 | [log] [tgz] |
---|---|---|
author | Zhuoyao Zhang <zhuoyao@google.com> | Mon Jan 23 17:29:58 2017 -0800 |
committer | Zhuoyao Zhang <zhuoyao@google.com> | Thu Jan 26 11:13:30 2017 -0800 |
tree | b001ec10a6a4dd9a3fd9e66692fad47c9f3dca8b | |
parent | bec74edf84731f67043c60a3baeaba786091d48f [diff] |
Update hidl-gen for HidlInstrumentor. * Generate the code to pass the package and interface name to HidlInstrumentor Test: make hidl-gen mma for hardware/interface run vts -m VibratorHidlTest Change-Id: Ic370e41b62dc1b81ddb7794682de53e0515f9193
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