commit | e1b157e4e7dcf3ebdcb9ebef79df13cb76ee76c9 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Mar 06 14:18:32 2018 -0800 |
committer | Steven Moreland <smoreland@google.com> | Tue Mar 06 14:33:02 2018 -0800 |
tree | b80ea56c8d49123476a5568444c317cee7ab7b22 | |
parent | 255c9a11e080847555c6a36ae1f1903a9439c58d [diff] |
FQName: prepare for removing isValid Having an object which has an invalid state was a bad idea to begin with. We want this data in the type system (whenever you get an FQName). This CL adds a parse method to FQName which will become the only way to create an FQName. The follow-up for this CL will be to update all users of the CL and then remove isValid. Bug: 73774955 Test: hidl's run_all_host_tests.sh Change-Id: I9a020dae27f7c7c2d0ce1bbb80830f28c3ea34e3
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