commit | a21f1494a1b75ebd799d3f1156047caecc643270 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Thu Sep 08 15:55:14 2016 +0200 |
committer | Iliyan Malchev <malchev@google.com> | Thu Sep 08 22:21:07 2016 -0700 |
tree | 1dce42fb3ba4c8b0c5e50711dd2c4487eaa9b35a | |
parent | 4ff971cc617b5fbfdd581c50a2c4862a03e20633 [diff] |
Encode hidl_version in each generated interface. Each generated interface will have a constexpr encoding the package version. Additionally, there's a client-facing getInterfaceVersion() method; while for now it always returns the static version, this is not always correct: in case this interface has a transport that goes to a remote implementation, the version needs to be retrieved from that implementation instead. This depends on other changes and will be added with them. Bug: 31297066 Change-Id: I15b7f5ccf2dbfa25acfd385c68e8ae1f3e782ade Signed-off-by: Iliyan Malchev <malchev@google.com>
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