Clone this repo:
  1. a43dad6 Merge 7d2369a8ce2ecf9d505908924c9d940d10f0ae31 on remote branch by Linux Build Service Account · 6 years ago pie
  2. c8b1a6c Build HIDL Java targets with SystemApi by Lalit Kansara · 6 years ago
  3. 7d2369a Snap for 4940482 from da2a9122293643252747a7556fd160877cc5aad7 to p-keystone-qcom-release by Android Build Role Account android-build-prod · 6 years ago
  4. da2a912 Build HIDL Java targets with SystemApi. by Lalit Kansara · 6 years ago
  5. 361b140 Merge 5c5602794c72d8493215b50c454de72470cbb64f on remote branch by Linux Build Service Account · 6 years ago

hidl-gen user guide

1. Build

croot
make hidl-gen

2. Run

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:

croot
hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal
hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0