commit | f7fa068fe10f7ba5df8c4352686e906486ebec0f | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Thu May 11 16:14:55 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu May 11 18:09:06 2017 -0700 |
tree | 85fd57379af55f7bcc7917b2cadc7b6b0a37af26 | |
parent | 64f1b82a17efc0ddf8a768ca8b2f9fa237e64286 [diff] |
hidl-gen: allow specifying root Also, default root to $ANDROID_BUILD_TOP or pwd if that isn't defined. Now hidl-gen can be run from anywhere, not just croot. Test: manual Change-Id: I8a8ef57612ff4235772fb0a24e543ffd8c7a78c1 Bugs: me
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