commit | ae16eeda35e175dbc3cb0651121854c5788e522e | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri Sep 23 13:25:25 2016 -0700 |
committer | Yifan Hong <elsk@google.com> | Mon Sep 26 09:58:07 2016 -0700 |
tree | 8ff60f47ccca6eb6cac6d39a4c0946fc09514185 | |
parent | fc610cd36bb07244f46c9a9baed6634bbdc564e9 [diff] |
Redefine fqname in hidl-gen_y.yy There is an inconsistency in hidl-gen_y.yy that fqname does not mean an FQName object, but a Type object. Redefined fqname to create an FQName object only, and rename the original fqname rule to fqtype. This also propagates to AST::lookupType and Scope::lookupType to take an FQName object instead of a plain string. Test: `mma` Test: `make hidl_test && adb sync && adb shell hidl_test` Change-Id: I5d35192fa5fa9752b10bd9e7d339eadc5cdb78c0
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: hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0