commit | 8e61c5af41226b0e1e88aa439c1360836f71795b | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri Nov 17 15:55:28 2017 -0800 |
committer | Steven Moreland <smoreland@google.com> | Mon Nov 27 10:06:28 2017 -0800 |
tree | 3b8cf486cd158264697bf701c4d0345b72d195ea | |
parent | 4b8f7a11f794d9b4899af92a856b4a03b80b31e8 [diff] |
Add emitGlobalTypeDeclarations. This allows HIDL objects to add things to libhidl namespaces like "android::hardware". Bug: 68715899 Test: hidl_test Change-Id: Idd9cb6261e843e1bc4ecb8b261dea6335384e9b2
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 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0