Name | Date | Size | |
---|---|---|---|
.. | 11-Jun-2018 | 4 KiB | |
.clang-format | 11-Jun-2018 | 781 | |
Android.bp | 11-Jun-2018 | 2.9 KiB | |
Annotation.cpp | 11-Jun-2018 | 3.3 KiB | |
Annotation.h | 11-Jun-2018 | 1.9 KiB | |
ArrayType.cpp | 11-Jun-2018 | 13.9 KiB | |
ArrayType.h | 11-Jun-2018 | 4.2 KiB | |
AST.cpp | 11-Jun-2018 | 16.7 KiB | |
AST.h | 11-Jun-2018 | 10 KiB | |
c2hal/ | 11-Jun-2018 | 4 KiB | |
CompoundType.cpp | 11-Jun-2018 | 30.8 KiB | |
CompoundType.h | 11-Jun-2018 | 4.8 KiB | |
ConstantExpression.cpp | 11-Jun-2018 | 18.3 KiB | |
ConstantExpression.h | 11-Jun-2018 | 3.9 KiB | |
Coordinator.cpp | 11-Jun-2018 | 18.5 KiB | |
Coordinator.h | 11-Jun-2018 | 5.4 KiB | |
DeathRecipientType.cpp | 11-Jun-2018 | 2.6 KiB | |
DeathRecipientType.h | 11-Jun-2018 | 1.6 KiB | |
EnumType.cpp | 11-Jun-2018 | 23.7 KiB | |
EnumType.h | 11-Jun-2018 | 6 KiB | |
FmqType.cpp | 11-Jun-2018 | 4.6 KiB | |
FmqType.h | 11-Jun-2018 | 2.1 KiB | |
generateCpp.cpp | 11-Jun-2018 | 73.4 KiB | |
generateCppImpl.cpp | 11-Jun-2018 | 5.7 KiB | |
generateJava.cpp | 11-Jun-2018 | 19.2 KiB | |
generateVts.cpp | 11-Jun-2018 | 3.6 KiB | |
HandleType.cpp | 11-Jun-2018 | 4.3 KiB | |
HandleType.h | 11-Jun-2018 | 2 KiB | |
Hash.cpp | 11-Jun-2018 | 4.4 KiB | |
hidl-gen_l.ll | 11-Jun-2018 | 5.9 KiB | |
hidl-gen_y.yy | 11-Jun-2018 | 32.5 KiB | |
HidlTypeAssertion.cpp | 11-Jun-2018 | 1.5 KiB | |
HidlTypeAssertion.h | 11-Jun-2018 | 1.3 KiB | |
include_hash/ | 11-Jun-2018 | 4 KiB | |
Interface.cpp | 11-Jun-2018 | 29.2 KiB | |
Interface.h | 11-Jun-2018 | 4.9 KiB | |
Location.h | 11-Jun-2018 | 2.5 KiB | |
main.cpp | 11-Jun-2018 | 45.7 KiB | |
MemoryType.cpp | 11-Jun-2018 | 4.1 KiB | |
MemoryType.h | 11-Jun-2018 | 2 KiB | |
Method.cpp | 11-Jun-2018 | 7 KiB | |
Method.h | 11-Jun-2018 | 4 KiB | |
MODULE_LICENSE_APACHE2 | 11-Jun-2018 | 0 | |
NamedType.cpp | 11-Jun-2018 | 1.7 KiB | |
NamedType.h | 11-Jun-2018 | 1.7 KiB | |
NOTICE | 11-Jun-2018 | 11.1 KiB | |
OWNERS | 11-Jun-2018 | 89 | |
PointerType.cpp | 11-Jun-2018 | 1.9 KiB | |
PointerType.h | 11-Jun-2018 | 1.6 KiB | |
PREUPLOAD.cfg | 11-Jun-2018 | 76 | |
README.md | 11-Jun-2018 | 1.1 KiB | |
RefType.cpp | 11-Jun-2018 | 6.8 KiB | |
RefType.h | 11-Jun-2018 | 2.3 KiB | |
ScalarType.cpp | 11-Jun-2018 | 7 KiB | |
ScalarType.h | 11-Jun-2018 | 2.9 KiB | |
Scope.cpp | 11-Jun-2018 | 5.1 KiB | |
Scope.h | 11-Jun-2018 | 2.6 KiB | |
StringType.cpp | 11-Jun-2018 | 5.5 KiB | |
StringType.h | 11-Jun-2018 | 2.5 KiB | |
test/ | 11-Jun-2018 | 4 KiB | |
Type.cpp | 11-Jun-2018 | 11.1 KiB | |
Type.h | 11-Jun-2018 | 8.7 KiB | |
TypeDef.cpp | 11-Jun-2018 | 1.7 KiB | |
TypeDef.h | 11-Jun-2018 | 1.3 KiB | |
update-all-google-makefiles.sh | 11-Jun-2018 | 439 | |
update-makefiles-helper.sh | 11-Jun-2018 | 3.5 KiB | |
utils/ | 11-Jun-2018 | 4 KiB | |
VectorType.cpp | 11-Jun-2018 | 19.2 KiB | |
VectorType.h | 11-Jun-2018 | 5.2 KiB |
README.md
1# hidl-gen user guide 2 3## 1. Build 4 5``` 6croot 7make hidl-gen 8``` 9 10## 2. Run 11 12``` 13hidl-gen -o output-path -L language (-r interface-root) fqname 14 15output-path: directory to store the output files. 16language: output file for given language. e.g.c++, vts.. 17 18fqname: fully qualified name of the input files. 19For singe file input, follow the format: package@version::fileName 20For directory input, follow the format: package@version 21 22interface-root(optional): prefix and root path for fqname. 23If not set, use the default prefix: android.hardware and default root path 24defined in $TOP. 25 26examples: 27 28croot 29hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal 30hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 31hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 32hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 33``` 34