commit | 0344e61434d7af537cbf33c86b47ec165593f7dd | [log] [tgz] |
---|---|---|
author | Timur Iskhakov <iskhakovt@google.com> | Fri Aug 25 12:57:09 2017 -0700 |
committer | Timur Iskhakov <iskhakovt@google.com> | Fri Aug 25 23:00:16 2017 +0000 |
tree | 430f04613a811c7f143a9d90155d9aa34f135ced | |
parent | 1ed2ee393651bd554d28442a7f3b4413cc491878 [diff] |
Get rid if Reference<Interface> This change allows to have std::vector<Reference<Type>*> getReferences() ^ Thus we can make recursive lookup be like: for ref : getReferences() { ref->lookup() } The check that Interface expends only interfaces is moved to Interface::validate. Bug: 31827278 Test: mma Test: new error test Change-Id: I8e81b1bdf5658749d4b33d02e812a49765dc03bb
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