Home | History | Annotate | only in /system/tools/hidl
Up to higher level directory
NameDateSize
.clang-format21-Aug-2018781
Android.bp21-Aug-20183.5K
Annotation.cpp21-Aug-20185.3K
Annotation.h21-Aug-20182.8K
ArrayType.cpp21-Aug-201816.3K
ArrayType.h21-Aug-20184.6K
AST.cpp21-Aug-201825.1K
AST.h21-Aug-201812.2K
build/21-Aug-2018
c2hal/21-Aug-2018
CleanSpec.mk21-Aug-20182.1K
CompoundType.cpp21-Aug-201833K
CompoundType.h21-Aug-20185K
ConstantExpression.cpp21-Aug-201826.5K
ConstantExpression.h21-Aug-20187.9K
Coordinator.cpp21-Aug-201829.7K
Coordinator.h21-Aug-20187.3K
DeathRecipientType.cpp21-Aug-20182.5K
DeathRecipientType.h21-Aug-20181.6K
DocComment.cpp21-Aug-20181.8K
DocComment.h21-Aug-20181.3K
docs/21-Aug-2018
EnumType.cpp21-Aug-201828.7K
EnumType.h21-Aug-20187.1K
FmqType.cpp21-Aug-20184.6K
FmqType.h21-Aug-20182.2K
generateCpp.cpp21-Aug-201861.6K
generateCppAdapter.cpp21-Aug-20186.6K
generateCppImpl.cpp21-Aug-20184.7K
generateJava.cpp21-Aug-201819.3K
generateVts.cpp21-Aug-20182.8K
HandleType.cpp21-Aug-20184.4K
HandleType.h21-Aug-20182.1K
Hash.cpp21-Aug-20184.7K
hidl-gen_l.h21-Aug-2018943
hidl-gen_l.ll21-Aug-20187.7K
hidl-gen_y.yy21-Aug-201833.5K
HidlTypeAssertion.cpp21-Aug-20181.5K
HidlTypeAssertion.h21-Aug-20181.3K
include_hash/21-Aug-2018
Interface.cpp21-Aug-201832K
Interface.h21-Aug-20185.9K
Location.cpp21-Aug-20183.2K
Location.h21-Aug-20182.2K
main.cpp21-Aug-201846.8K
MemoryType.cpp21-Aug-20184.2K
MemoryType.h21-Aug-20182K
Method.cpp21-Aug-20189.1K
Method.h21-Aug-20184.5K
MODULE_LICENSE_APACHE221-Aug-20180
NamedType.cpp21-Aug-20181.5K
NamedType.h21-Aug-20181.5K
NOTICE21-Aug-201811.1K
OWNERS21-Aug-201889
PointerType.cpp21-Aug-20182K
PointerType.h21-Aug-20181.7K
PREUPLOAD.cfg21-Aug-201876
README.md21-Aug-20181.1K
Reference.h21-Aug-20183.9K
RefType.cpp21-Aug-20187K
RefType.h21-Aug-20182.6K
ScalarType.cpp21-Aug-20187K
ScalarType.h21-Aug-20183K
Scope.cpp21-Aug-20187.3K
Scope.h21-Aug-20183.4K
scripts/21-Aug-2018
StringType.cpp21-Aug-20185.6K
StringType.h21-Aug-20182.6K
test/21-Aug-2018
Type.cpp21-Aug-201821K
Type.h21-Aug-201813K
TypeDef.cpp21-Aug-20182K
TypeDef.h21-Aug-20181.5K
update-all-google-makefiles.sh21-Aug-2018435
update-makefiles-helper.sh21-Aug-20182.3K
utils/21-Aug-2018
VectorType.cpp21-Aug-201819.7K
VectorType.h21-Aug-20185.5K

README.md

      1 # hidl-gen user guide
      2 
      3 ## 1. Build
      4 
      5 ```
      6 croot
      7 make hidl-gen
      8 ```
      9 
     10 ## 2. Run
     11 
     12 ```
     13 hidl-gen -o output-path -L language (-r interface-root) fqname
     14 
     15 output-path: directory to store the output files.
     16 language: output file for given language. e.g.c++, vts..
     17 
     18 fqname: fully qualified name of the input files.
     19 For singe file input, follow the format: package@version::fileName
     20 For directory input, follow the format: package@version
     21 
     22 interface-root(optional): prefix and root path for fqname.
     23 If not set, use the default prefix: android.hardware and default root path
     24 defined in $TOP.
     25 
     26 examples:
     27 
     28 croot
     29 hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc (a] 1.0::INfc.hal
     30 hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc (a] 1.0
     31 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc (a] 1.0
     32 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc (a] 1.0
     33 ```
     34