Add update-makefiles-helper.sh

This simplifies the setup of makefiles directories until they are
integrated into soong.

Bug: 35870521
Test: update-makefiles.sh in directories that now use this
Change-Id: I9ee70274683a8f464a4bdfa3292e3f8effa6c40c
1 file changed
tree: b16a42543c6fd1f8e1911fa8fac2cd0591f50165
  1. AST.cpp
  2. AST.h
  3. Android.bp
  4. Annotation.cpp
  5. Annotation.h
  6. ArrayType.cpp
  7. ArrayType.h
  8. CompoundType.cpp
  9. CompoundType.h
  10. ConstantExpression.cpp
  11. ConstantExpression.h
  12. Coordinator.cpp
  13. Coordinator.h
  14. DeathRecipientType.cpp
  15. DeathRecipientType.h
  16. EnumType.cpp
  17. EnumType.h
  18. FmqType.cpp
  19. FmqType.h
  20. HandleType.cpp
  21. HandleType.h
  22. Interface.cpp
  23. Interface.h
  24. Location.h
  25. MODULE_LICENSE_APACHE2
  26. MemoryType.cpp
  27. MemoryType.h
  28. Method.cpp
  29. Method.h
  30. NOTICE
  31. NamedType.cpp
  32. NamedType.h
  33. PointerType.cpp
  34. PointerType.h
  35. README.md
  36. RefType.cpp
  37. RefType.h
  38. ScalarType.cpp
  39. ScalarType.h
  40. Scope.cpp
  41. Scope.h
  42. StringType.cpp
  43. StringType.h
  44. Type.cpp
  45. Type.h
  46. TypeDef.cpp
  47. TypeDef.h
  48. VectorType.cpp
  49. VectorType.h
  50. c2hal/
  51. generateCpp.cpp
  52. generateCppImpl.cpp
  53. generateJava.cpp
  54. generateVts.cpp
  55. hidl-gen_l.ll
  56. hidl-gen_y.yy
  57. main.cpp
  58. test/
  59. update-makefiles-helper.sh
  60. utils/
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