commit | b0627fb40221fcd6d838d3704d270eb2b825aed8 | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Mon Oct 10 09:39:28 2016 -0700 |
committer | Andreas Huber <andih@google.com> | Mon Oct 10 09:39:28 2016 -0700 |
tree | 435caf860df3d875bc657d75afe54a1dd18e5740 | |
parent | bb5c80bdec4922aac973551b4f3cbd1008e57820 [diff] |
Optionally prefix each exported enum value (name) with a string specified in the "value_prefix" annotation parameter like so: @export(name="gralloc1_error_t", value_prefix="GRALLOC1_ERROR_") enum Error : int32_t { NONE, }; will generate enum gralloc1_error_t { GRALLOC1_ERROR_NONE, }; Bug: 31800672 Test: visual check Change-Id: I6513d814cf8a1e023445747b2d554cb97096b427
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