commit | 297bfb38efb2c41e6d1da89e525ef0be43b5ff2a | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue May 09 14:20:50 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Tue May 09 19:58:55 2017 -0700 |
tree | 3e88353a12d762738aa9d7334379e8c516fddcc5 | |
parent | d462ae8daf609b71702b7ee33a0ee77ecbb9b4b7 [diff] |
Add generationFunctionForFileOrPackage This removes a ton of duplicated code that has been bothering me. Test: hidl_hash_test Test: mma -j64 (runs hidl-gen targets) Merged-In: Ib9918ce9b34c396862415448900b786179673e9b Change-Id: Ib9918ce9b34c396862415448900b786179673e9b
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