commit | 5abcf0119872582fe447adf207c3fdd2f998ac0f | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Thu Feb 08 18:50:18 2018 -0800 |
committer | Steven Moreland <smoreland@google.com> | Mon Feb 12 09:59:51 2018 -0800 |
tree | 5da8d57a34b76ea79824ed559c53cc371b8f4e0e | |
parent | 771db724abd89fa8739736f4b80754f9336b3a5a [diff] |
hidl-gen knows what files its outputting. hidl-gen outputFormat data structure now looks like: - list of output targets - "-L option" value to invoke - description - where to output files - how to build directory structure for output - to generate per package, per file, or per type - list of files to output (run w/ above options) - predicate to generate or not for a specific file - file name for a specific output target - how to generate the file Also, now all output files are maintained by main.cpp. This opens up the possibilities for generating dep files. Bug: 73001417 Test: hidl's run_all_host_tests.sh Change-Id: Ie433d3e2d34dffa802c6f63b6ad030ae13d4e101
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