commit | e429a26799db6b01843e2dee59377f18037ee05a | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Nov 15 09:54:32 2016 -0800 |
committer | Steven Moreland <smoreland@google.com> | Tue Nov 15 09:57:49 2016 -0800 |
tree | 91989db9a1dab3afaad7e239ea2bf1fc5722c94b | |
parent | 91eac8c8173b7862a4541e1c50a985519b6579ee [diff] |
Prevent errors in compilation of c++-impl. Added hidl_array in using statement alongside hidl_vec and hidl_string. Also added better error messages for the -L flag. I keep on typing 'cpp-impl' instaed of 'c++-impl'. Bug: 32579492 Test: created vendor implementation for tests.vendor@1.0 and it compiles. Change-Id: I2064a8299ff9cada1890f076efd472af39e9c791
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