commit | 77edae1e24c27b7d78a2033e6f841053b7462399 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Feb 11 14:46:15 2020 -0800 |
committer | Chih-Hung Hsieh <chh@google.com> | Tue Feb 11 14:46:15 2020 -0800 |
tree | 083371ea447e78c2ee6e5d13fa223024974ef97f | |
parent | 5d0b2e317e6d3d0376ca13f2aae1e1598fe39a74 [diff] |
Fix clang-tidy performance-faster-string-find warnings Bug: 30411878 Test: build with WITH_TIDY=1 Change-Id: Ief9d6cc1bfaad6f8b27b1de5780d20a078a7d805
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