commit | 4f7b11c4dcbc51337341226c2a6b604c811046f1 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue May 09 14:32:53 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Tue May 09 19:58:55 2017 -0700 |
tree | 4490f8b210eb60674b6ccc80f62f655b40e4a110 | |
parent | 297bfb38efb2c41e6d1da89e525ef0be43b5ff2a [diff] |
Add c++-headers and c++-sources This way, hidl-gen won't generate headers+sources multiple times. Test: hidl implementations still link Test: updated various interface roots Bug: 38174080 Merged-In: Ibc036df4bda7e4f41eb92865fe3e47376a6a3fbd Change-Id: Ibc036df4bda7e4f41eb92865fe3e47376a6a3fbd
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