commit | 244e82d34bf0ef5d8d5b0730a9dea3e3fc4de7c5 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri Nov 11 11:13:57 2016 -0800 |
committer | Yifan Hong <elsk@google.com> | Mon Nov 14 16:56:40 2016 -0800 |
tree | e298b88f42b0e47a28a1a1e9d60cae0d41ed384b | |
parent | 1a97a5f70b8dbe9033a05b78fd00b4aed9d6f209 [diff] |
move read/writeEmbedded[References]From/ToParcel out from hidl_string, hidl_vec, and structs. * Add a hwtypes.h in the autogenerated files, which contains the read/writeEmbeddedFrom/ToParcel methods for structs defined in types.h. * Fixes the hack that remove the warnings when compiling the generated code (useParentInEmitResolveReferencesEmbedded()) and add one more hack (useNameInEmitReaderWriterEmbedded()) * Some clean-up on Scope.cpp (add a forEachType function) Test: mma Test: hidl_test Bug: 32756130 Change-Id: Icfd116b5d92fef78d257337c3f2ef02071f7600b
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