You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 years ago | |
|---|---|---|
| .. | ||
| c2hal | 4 years ago | |
| include_hash/hidl-hash | 4 years ago | |
| test | 4 years ago | |
| utils | 4 years ago | |
| .clang-format | 4 years ago | |
| AST.cpp | 4 years ago | |
| AST.h | 4 years ago | |
| Android.bp | 4 years ago | |
| Annotation.cpp | 4 years ago | |
| Annotation.h | 4 years ago | |
| ArrayType.cpp | 4 years ago | |
| ArrayType.h | 4 years ago | |
| CompoundType.cpp | 4 years ago | |
| CompoundType.h | 4 years ago | |
| ConstantExpression.cpp | 4 years ago | |
| ConstantExpression.h | 4 years ago | |
| Coordinator.cpp | 4 years ago | |
| Coordinator.h | 4 years ago | |
| DeathRecipientType.cpp | 4 years ago | |
| DeathRecipientType.h | 4 years ago | |
| EnumType.cpp | 4 years ago | |
| EnumType.h | 4 years ago | |
| FmqType.cpp | 4 years ago | |
| FmqType.h | 4 years ago | |
| HandleType.cpp | 4 years ago | |
| HandleType.h | 4 years ago | |
| Hash.cpp | 4 years ago | |
| HidlTypeAssertion.cpp | 4 years ago | |
| HidlTypeAssertion.h | 4 years ago | |
| Interface.cpp | 4 years ago | |
| Interface.h | 4 years ago | |
| Location.h | 4 years ago | |
| MODULE_LICENSE_APACHE2 | 4 years ago | |
| MemoryType.cpp | 4 years ago | |
| MemoryType.h | 4 years ago | |
| Method.cpp | 4 years ago | |
| Method.h | 4 years ago | |
| NOTICE | 4 years ago | |
| NamedType.cpp | 4 years ago | |
| NamedType.h | 4 years ago | |
| OWNERS | 4 years ago | |
| PREUPLOAD.cfg | 4 years ago | |
| PointerType.cpp | 4 years ago | |
| PointerType.h | 4 years ago | |
| README.md | 4 years ago | |
| RefType.cpp | 4 years ago | |
| RefType.h | 4 years ago | |
| ScalarType.cpp | 4 years ago | |
| ScalarType.h | 4 years ago | |
| Scope.cpp | 4 years ago | |
| Scope.h | 4 years ago | |
| StringType.cpp | 4 years ago | |
| StringType.h | 4 years ago | |
| Type.cpp | 4 years ago | |
| Type.h | 4 years ago | |
| TypeDef.cpp | 4 years ago | |
| TypeDef.h | 4 years ago | |
| VectorType.cpp | 4 years ago | |
| VectorType.h | 4 years ago | |
| generateCpp.cpp | 4 years ago | |
| generateCppImpl.cpp | 4 years ago | |
| generateJava.cpp | 4 years ago | |
| generateVts.cpp | 4 years ago | |
| hidl-gen_l.ll | 4 years ago | |
| hidl-gen_y.yy | 4 years ago | |
| main.cpp | 4 years ago | |
| update-all-google-makefiles.sh | 4 years ago | |
| update-makefiles-helper.sh | 4 years ago | |
README.md
hidl-gen user guide
1. Build
croot
make hidl-gen
2. Run
hidl-gen -o output-path -L language (-r interface-root) fqname
output-path: directory to store the output files.
language: output file for given language. e.g.c++, vts..
fqname: fully qualified name of the input files.
For singe file input, follow the format: package@version::fileName
For directory input, follow the format: package@version
interface-root(optional): prefix and root path for fqname.
If not set, use the default prefix: android.hardware and default root path
defined in $TOP.
examples:
croot
hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal
hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0