commit | ff5e64ae0c65b80e2baa4a95b9ae9ee894b60080 | [log] [tgz] |
---|---|---|
author | Timur Iskhakov <iskhakovt@google.com> | Mon Sep 11 14:56:18 2017 -0700 |
committer | Timur Iskhakov <iskhakovt@google.com> | Tue Sep 12 14:35:40 2017 -0700 |
tree | 7de78b88a3be3d32288b5a43c72143ac24b6d38c | |
parent | 78821ed2f17fbf7d0397cb21e1bb872aa06ea92a [diff] |
Fix strong references Makes strong references to deal with interface corner case explicitly. Makes hidl-gen to detect a cycle through typedef. Cycle example: typedef S A; struct S { A foo; }; Fixes: 65559985 Test: mma Test: error test in follow up CL Change-Id: I132037995c3fc99edfe3e57a1fe84d3c36ca6993
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