commit | 800273d49f418065f5efbe41f7c74c5510707be4 | [log] [tgz] |
---|---|---|
author | Iliyan Malchev <malchev@google.com> | Fri Sep 02 15:25:07 2016 -0700 |
committer | Iliyan Malchev <malchev@google.com> | Wed Sep 07 12:40:59 2016 -0700 |
tree | e3e82f0f96d7e46e464afa8510b13d8848b8ff60 | |
parent | 38e92fec8935c7f8180a5024e4a1e4c3b6c81683 [diff] |
hidl-gen: auto-generate depdendencies for nested types HIDL allows for types to be defined within interfaces, and for these types to be able to be referred to from outside of these interfaces. hidl-gen was not emitting the correct #include and import paths in C++ and Java respectively for such cases, and also Makefile dependencies. b/31268323 Change-Id: I168c52823098348b4161b5d2c151d1d8eadec9b8 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