commit | d177b12182aaace7dda8f66aa57fabd6eb65b817 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Mon Dec 12 09:15:37 2016 -0800 |
committer | Steven Moreland <smoreland@google.com> | Mon Dec 12 09:15:37 2016 -0800 |
tree | 7dc9cae1f4528377b527bf3b971d3dc6881f09e4 | |
parent | 3d746095af8aefc6d8d7d4ec5739a61965ebaeea [diff] |
Print hal file package in exported headers. The information is already technically contained in the header guard, but pulling it out will make it make more sense for people unfamiliar with hidl. Command used to test: hidl-gen -o system/core/include/system/graphics-base.h -Lexport-header -r android.hardware:hardware/interfaces android.hardware.graphics.common@1.0 Bug: 33541458 Test: manual inspection of output Change-Id: Ie291158285eeebfedb999230cf9846b802cde2cf
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