commit | c7cf2de237598c34afd794066208e91155d1dfbe | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Thu Mar 29 11:19:37 2018 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu Apr 19 17:42:42 2018 -0700 |
tree | ffca706c433f06dfd72a0019b142f4f3648ab607 | |
parent | f43bb1e46c2922ac186c94e2fe16e16d86932856 [diff] |
Additional test for SystemApi. That hidl-generated libs don't use non-SystemApi. Test: m hidl_system_api_test (build-time test) Change-Id: I437eb4d4b9db3ec18f1e4efd6cc3f73bcdfd8bdc Merged-In: I437eb4d4b9db3ec18f1e4efd6cc3f73bcdfd8bdc
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