commit | 87e69dcd459da3a68d6ab464f82334baeb8c2782 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Sep 12 18:14:28 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu Sep 14 12:00:13 2017 -0700 |
tree | 7f334e8ba0b0a98a3fd57bd342087a35613196de | |
parent | a3805bdfe22257a94c6a60570e2015f86c415128 [diff] |
Fix imports. Allow imports to reference fully qualified names. Remove recursive call in import lookup. Add test for references using fully qualified names. Bug: 65597200 Test: m hidl_test (type tests done statically) Change-Id: I912f1201bfa2d00cbaf711a7c34b934271ff37f0
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