commit | 1cbf0366b89d0535a00d77cb82273e9a2ea68060 | [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:36:25 2017 -0700 |
tree | c5f02e42b39c66bc15f1c5421a8b3d961a01e3f9 | |
parent | 108481c43c3069ba33ad8c326709887aefbcf667 [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 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