commit | b4f5acdf37fc4f90d9a8ef46a0578eb920c8c112 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Thu May 21 20:16:38 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu May 21 20:16:38 2020 +0000 |
tree | b9bb1f6e0fb4b28df8caf75d0bcb60add04fad2e | |
parent | ceb416c01f930ca22027092cb9643861e4962fdf [diff] | |
parent | 82bf335a78747e57c0f7f52a57a413cc2a9d48f4 [diff] |
Add min_sdk_version(30) when generating cc modules am: 82bf335a78 Change-Id: I142ba2f541fd8f23430fd572a45fced1f58b36cf
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