commit | 3d6e7beee4f180a1cd442775f550059f09d5f7ab | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Sep 26 10:02:57 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Tue Sep 26 10:12:25 2017 -0700 |
tree | 1f527c60c2f6dce14c68da03a143598113260f0b | |
parent | 80ba1740e70fa6c792414b93cfc79398ea19f7b7 [diff] |
Add test for -Lexport-header. Statically verify output is valid and that generation works so that we don't accidentally break this functionality. Test: run_all_host_tests.sh Change-Id: Ia425dfb463a3ac0a932212ce7bdfc64d31ade9c5
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 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0