commit | 27e85db4f2a8740d24aa5b200edc9cbd4d7de8a9 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Nov 09 15:45:52 2016 -0800 |
committer | Yifan Hong <elsk@google.com> | Thu Nov 10 14:21:52 2016 -0800 |
tree | 30112de116ebc23251dcb4d8790403deecd0ab06 | |
parent | 8fb0acbd820ad9aa2b35990ead81f938727359d7 [diff] |
Disallow invalid identifiers. Bug: 31527497 Test: `hidl-gen -Lc++ -r tests:system/tools/hidl/test -o ~/temp tests.errors.syntax@1.0::IIdentifier1` correctly reports the error. Test: mma Test: on master, cd hardware/interfaces && mma Change-Id: Ib012fda3ef6d15c4b363bfc7af3370d5b5093370
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