commit | d4b068ab09b325e1a96c3b78c0c98164cc2856ff | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Mon Mar 20 06:30:51 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Mon Mar 20 06:36:56 2017 -0700 |
tree | f5ea0331c3a958e058ba09af0410ea6fb237ef9c | |
parent | 2f7abc9a96e58e693f0db7b0c7fcf59a856a4008 [diff] |
Move interface reserved cpp impl to source file. This way these methods can use all of the imported items without other libraries needing to import them directly. Test: hidl_test, visually verify generated code looks good Bug: 36162559 Change-Id: I646791f73cfb4579a3b969cf6e69b65a6325f1cd
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