commit | 9fd2f4a2b01d301f9fa1c2dd41d08fa8c3de9552 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Jul 17 12:27:51 2018 -0700 |
committer | Yifan Hong <elsk@google.com> | Tue Jul 17 15:23:17 2018 -0700 |
tree | 77796dd6f7b3b38a1974f6dc8a214059155ec459 | |
parent | 9d9cfa0da55ce6b643e764633638a3927c8b4e85 [diff] |
Split libhidl-gen-utils to *-host-utils Test: host tests Test: device tests Fixes: 111520362 Change-Id: I8593277dcdda331d2be7f88e98e6cb95cf1e2ef2
Full documentation can be found here: https://source.android.com/devices/architecture/hidl/
hidl-gen is a compiler for the HIDL (HAL Interface Design Language) which generates C++ and Java endpoints for RPC mechanisms. The main userspace libraries which this compiler uses can be found at system/libhidl.
m hidl-gen
Note that options for hidl-gen expected to be invoked by the build system are marked with 'internal' in the help menu.
hidl-gen -h hidl-gen -o output -L c++-impl -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
Some defaults for package roots are also provided
hidl-gen -o output -L c++-impl android.hardware.nfc@1.0 hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -L hash android.hardware.nfc@1.0
Example command for vendor project
hidl-gen -L c++-impl -r vendor.foo:vendor/foo/interfaces vendor.foo.nfc@1.0
See update-makefiles-helper.sh and update-all-google-makefiles.sh for examples of how to generate HIDL makefiles (using the -Landroidbp option).
This is a helper tool to convert C headers to valid .hal files.
m c2hal && c2hal -h
This tool generates html documentation for hal interfaces.
m hidl-doc && hidl-doc -h