commit | a018ed53b332ed0d184ae4c53e89a2036f117b58 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Dec 13 16:35:08 2016 -0800 |
committer | Yifan Hong <elsk@google.com> | Fri Dec 16 12:32:30 2016 -0800 |
tree | 2fd34432c5b412b6e6e5cc7086e150f8d1b76a53 | |
parent | 33223ca2a9b8126d357e0986905fa35c0970a30e [diff] |
Add a chain style to formatter. It is now valid to do, for example: out.sIf("condition", [&] { out << "statement1;" << "\n" << "statement2;" << "\n"; }).endl(); Test: compiles Test: hidl_test Change-Id: Iab104644a005ac8386813a0f249a87ebd0284837
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