commit | bbbbeb81534d3d7a2c7e7d46e358585e86d65ab4 | [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:36:25 2017 -0700 |
tree | 174edeee681c337e364bf782d8cc948a7a69699e | |
parent | 1cbf0366b89d0535a00d77cb82273e9a2ea68060 [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) 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