commit | 33431e6cd425c6cd179080442a8616e2baa20aae | [log] [tgz] |
---|---|---|
author | Timur Iskhakov <iskhakovt@google.com> | Mon Aug 21 17:31:23 2017 -0700 |
committer | Timur Iskhakov <iskhakovt@google.com> | Thu Aug 24 14:25:27 2017 -0700 |
tree | 1846e46c1daa24b3782b642210b2bfd5ca9d26fd | |
parent | 4348a8590cc6ec8237b3f8cbd1fa2cdb87fe9fb9 [diff] |
Build AST graph explicitly for simpler post-parsing passes Puts all of AST parent-child dependencies into a graph. This change also makes it able to not care about such case: Type -> (non Type) -> Type (ex. Interface -> Method -> Type) and to store only Type -> Type relations. Test: hidl_test Change-Id: Ic67d9833d9519d7bd6cbae603c556c5bd905167a
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