commit | 3b320f8a60e4343bf06319bca3fc949c95eaf326 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Nov 01 15:15:54 2016 -0700 |
committer | Yifan Hong <elsk@google.com> | Mon Nov 07 16:54:40 2016 -0800 |
tree | a8c8543a453a23c0b33870bb8c3f96f4e09cb61c | |
parent | f5cc83329a3913c5ee3cbbcc90cffd57e40e87dd [diff] |
Remove extra from getCppType. The argument is used for array type originally. We now use hidl_array instead of T[], so there is no need to use extra. Renamed the convenience getCppType to getCppStackType to avoid casting to (Type *) before using this method (which makes it inconvenient) Also fixes: * RefType::getCppType ignores specifyNamespaces * ConstantExpression.cpp emits a C-style cast instead of static_cast Bug: 32559427 Test: mma passes Test: hidl_test Change-Id: I7e2e31c34c1ca1aa83c4a5a4dbdf7fd6b9aff30c
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