commit | 368491306c932ef23939c3214cd014278e1aa6ca | [log] [tgz] |
---|---|---|
author | Zhuoyao Zhang <zhuoyao@google.com> | Thu Aug 25 17:18:44 2016 -0700 |
committer | Zhuoyao Zhang <zhuoyao@google.com> | Thu Aug 25 17:24:22 2016 -0700 |
tree | 4835ae69f5d317043b6898f1f23f159f46c1a266 | |
parent | 85eabdbe56720dcdcf130e5ca83129d47b143768 [diff] |
Support typedef for vts generator. *Since hidl-gen simply treats typedef as alias of the defiend type, no need to generate type declaration for it in the .vts file. *Move the make for hidl_gen_test to test/Android.mk. Bug: 30762234 Change-Id: I509be0dc8e4f32df62448385d58c80a7166c3ff5
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 hild-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0