commit | 83c8e5fd1d0da26b7fc5d426c84b542336272fc9 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Dec 13 14:33:53 2016 -0800 |
committer | Yifan Hong <elsk@google.com> | Fri Dec 16 17:09:39 2016 -0800 |
tree | 2ee70a0624ab36c33807035b1831c9ac5ec77828 | |
parent | b7e21d91c7999ecf513cd4df66743b065b395a1c [diff] |
Move macros from libhidl[transport] to auto-generated code. Bug: 32756130 Test: hidl_test Change-Id: I1547c3bdb3b6f518480d887dc2ca78d6c9f4a560
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