commit | b06cc82425d035b14e4d86a50d5980b836f067fd | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Mon Sep 26 14:36:15 2016 -0700 |
committer | Yifan Hong <elsk@google.com> | Tue Sep 27 12:01:06 2016 -0700 |
tree | 43822e1306f67c0940ab43d52412ba1562d02252 | |
parent | 121db55b1eb7da8265e89715e5e41fbbfbdf2dee [diff] |
Use 4 spaces of indentation for hidl-gen and c2hal. c2hal: HIDL requires 4 spaces for indentations as per HIDL Code Style Guideline. hidl-gen: generated C++ should have 4 spaces for indentation as per Android Framework C++ Code Style Guideline. Bug: 31546082 Need a HIDL style guide and c2hal to observe it Test: `mma` Change-Id: Ia825327e63e1a4a36e7e7758d55cc7796a73cc5b
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: hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0