commit | 985d48e8c7f56737563163176746a7bddd6e1061 | [log] [tgz] |
---|---|---|
author | Diego Wilson <diegowilson@google.com> | Fri Oct 07 15:57:57 2016 -0700 |
committer | Diego Wilson <diegowilson@google.com> | Tue Oct 25 09:47:41 2016 -0700 |
tree | 6f087c01a146d21469d6597e11d51a7f0b7d9a91 | |
parent | 2b38e8935dcd6bf91cbd20fdee532c2e3adc46b3 [diff] |
Add compile time test to c2hal This new build rule verifies that c2hal can convert simple.h to a valid .hal format by generating the C++ files and compiling the ISimple's shared library. Test: "make c2hal_test" and verify output Change-Id: I3568de9e8f9edcad8791479d5342599d8094a247
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