commit | 0b496529524468f8e324d0d7c8a362a4e1f3b302 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Mar 06 18:39:35 2018 -0800 |
committer | Yifan Hong <elsk@google.com> | Wed Mar 07 13:16:18 2018 -0800 |
tree | 278c4a7620e8c2c9f2b77c2981c7a25c6aeb4900 | |
parent | e1b157e4e7dcf3ebdcb9ebef79df13cb76ee76c9 [diff] |
Fix indirect linkage to gIBaseFqName globals Do not create a static variable in each sources. This fix a linkage error for FQName(string) when libhidl-gen-utils is not used directly, but FQName.h is included in sources. Test: links Change-Id: Ie154d7c6e07d4d1143d67b05aeaa85521836c0eb
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 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0