commit | c5ea9f589cc7cce0b5e97bd4ac6a8561eb313a02 | [log] [tgz] |
---|---|---|
author | Zhuoyao Zhang <zhuoyao@google.com> | Thu Oct 06 15:05:39 2016 -0700 |
committer | Zhuoyao Zhang <zhuoyao@google.com> | Thu Oct 06 17:39:01 2016 -0700 |
tree | 1cfa5088716ed2fc1d183f7083bbdeed26ec63b1 | |
parent | 8efccec25e4010829fff42d5d953dfb83549d807 [diff] |
Update hidl-gen support for vts. * Support the new Enum type (based on scalar_data) * Support sub_struct/sub_union defined within compound type. * Code cleanup: use getVtsType() instead of hard code ones. Test: make hidl-gen, locally run make hidl_gen_test. Bug: 30762234 Change-Id: I9a21b5757e0a9fc6cd1bf829ab123565a7990ad5
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