commit | 86167e9c46b121f4eb5155288c24f939ec095a40 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Thu Jun 20 13:18:47 2019 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu Jun 20 13:22:06 2019 -0700 |
tree | d3a2fcef7193265d6cedf1e29e2e3a629ad41034 | |
parent | 6448d01bcc0addbeb01d3e565c24283b4a178344 [diff] |
Remove hidl-doc. This no longer works on all interfaces (no safe_union support) and future/existing efforts are focusing on making the hidl-gen output itself more usable for existing tools. For instance, here are some of the things being done or which have already been done: - copy comments from HIDL files to their generated outputs - adding comments to HIDL-generated code Using these mechanisms, we may consider something like doxygen (or just increased usages of tools in the tree that directly look at the generated files, e.g. using compdb, AIDEgen, or other technologies). Bug: N/A Test: N/A Change-Id: Ibd5e7c04d9c2ff0d6425100ea79a0a66d1b9a49e
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