commit | 9c38761b9650ff98b326c130807b0c1733de881d | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Sep 07 09:54:26 2016 -0700 |
committer | Iliyan Malchev <malchev@google.com> | Thu Sep 08 22:04:14 2016 -0700 |
tree | 7d7e0496315fb6e85e33534523721a08f57a1d99 | |
parent | 979e099f1163ff75beed5776cd01fb409b90a0cd [diff] |
c++-impl: gen server stub boilerplate -Lc++-impl now generates a default implementation for all the interfaces in the specified package. The method implementations are all left empty. The default implementation also contains a special function, HIDL_FETCH_IFOO(), which is used to retrieve an instance of a particular interface in pass-through mode. For that to work, the default implementation must live in a shared-library with a well-known name, eg android.hardware.tests.foo@1.0.impl.so. Sample invocation: hidl-gen -o tmp/impl/ -Lc++-impl -randroid.hardware:hardware/interfaces android.hardware.tests.foo@1.0 Bug: 31228745 Change-Id: I747aa47cb76931eed85179b8131d2efd3f887471
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