commit | c6752dcea3b5dae1e99960b5beb6af394280b393 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Dec 20 14:00:14 2016 -0800 |
committer | Yifan Hong <elsk@google.com> | Thu Dec 22 16:59:55 2016 -0800 |
tree | b847136889dc204d71a964f75d46fc0d3e7a0e5d | |
parent | a3828eb0ff617546933a2b0ecfed0bca839b329f [diff] |
Add operator== and != for some structs. operator== and != are defined for type T where T is one of the following: * scalars * strings * enums * U[] where U is in this list * vec<U> where U is in this list * structs that contain only types in this list. If a struct contains a handle, an MQDescriptor, or a union, for example, then == and != is not generated. Bug: 32834072 Test: hidl_test Change-Id: Icac73a14f81274ee6592e2b8fadf26d629151d9f
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: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0