commit | b90d327e82303b3e7abaa5fca6a83e168598a162 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri May 26 10:02:39 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Tue May 30 16:33:56 2017 -0700 |
tree | b7a8ab4bc264efea11db566e8804066e92140ff6 | |
parent | fbb5a094d3f323b79c00a4025d2a2566d7fc405d [diff] |
hidl-gen: work as expected with various path args Add root path to paths only if non-absolute Test: all of these pass and provide expected results: hidl-gen -Lhash -p ~/android/aosp/ android.hardware.nfc@1.0 hidl-gen -Lhash -p /usr/local/google/home/smoreland/android/aosp/ android.hardware.nfc@1.0 hidl-gen -Lhash -p /usr/local/google/home/smoreland/android \ -randroid.hidl:master/system/libhidl/transport \ -randroid.hardware:aosp/hardware/interfaces android.hardware.nfc@1.0 hidl-gen -Lhash android.hardware.nfc@1.0 hidl-gen -Lhash -randroid.hidl:/usr/local/google/home/smoreland/android/master/system/libhidl/transport \ -randroid.hardware:/usr/local/google/home/smoreland/android/master/hardware/interfaces \ android.hardware.nfc@1.0 hidl-gen -Lhash -randroid.hidl:system/libhidl/transport \ -randroid.hardware:/usr/local/google/home/smoreland/android/aosp/hardware/interfaces \ android.hardware.nfc@1.0 Fixes: 62106647 Change-Id: Ibfce35f68e6b2ac0eaecc08fed3c78701464f1d6
croot make hidl-gen
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