commit | 10fe0b55e774903fe37b658458053527da8b5a53 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Oct 19 14:20:17 2016 -0700 |
committer | Yifan Hong <elsk@google.com> | Wed Oct 26 13:02:32 2016 -0700 |
tree | 58d10a6bd2ef737d42ef22cb5b06552cfc4118e8 | |
parent | 3ec890ba0dfa38692a5aaff9c181669804945699 [diff] |
IHidlInterfaceBase for all autogenerated interfaces. Add an interfaceChain() method to each interface to facilitate casting between interfaces. Add ::descriptor for each interface (so that IFoo::descriptor won't fall back to IHidlInterfaceBase::descriptor. Test: hidl_test Test: cd system/tools/hidl && mma Test: cd hardware/interfaces/test && mma Bug: 32337854 Change-Id: I317b7905750db0bfefc4c5fd608a07080923c719
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