commit | 5a9fe2ca6769e8ab68b40aee318042cabc5e81a6 | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Thu Oct 13 15:31:10 2016 -0700 |
committer | Andreas Huber <andih@google.com> | Thu Oct 13 15:31:10 2016 -0700 |
tree | 2412fbd5db26d96557048836e62607d3323e92a9 | |
parent | c33df423ae5a7ab4b229e70da02bc2cb428ea8ef [diff] |
Don't generate a Java Android.mk if we don't need to. If an interface consists solely of a types.hal file that itself contains nothing but typedefs, we won't generate any Java code, so we don't need a makefile. Bug: 32156804 Test: visual inspection Change-Id: I9e2950c149a012b5092227fa70139be9c0ca4113
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