Home | History | Annotate | Download | only in hidl
      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 ```
     33