commit | 4cc8bda3bb740d7ec3be6d3804a09bf46dacd39b | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Thu Jun 15 14:49:39 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu Jun 15 22:14:02 2017 +0000 |
tree | 3952fd52b7e8ba6684fe0e1226a94fa83eda6f16 | |
parent | 60864a4374fe867fc3e7f309ca8e4e7c757d7583 [diff] |
Explicitly generate _vendor library. Explicitly create '_vendor' copies of libraries so that vendor code can link against the extensions. When this is used, framework code should link against vendor.awesome.foo@1.0 and code on the vendor image should link against vendor.awesome.foo@1.0_vendor. For libraries with the below extensions, they will be available even on the generic system image. Because of this, they should always be referenced without the '_vendor' name suffix. Note: vendor_available is still outputted even though it is for the time being a no-op Bug: 35813011 Bug: 62616897 Test: system hidl lib definitions are unchanged Test: vendor hidl lib definitions include vendor definition Merged-In: I9fcc4b4b6f2093fadec7a832413ae168d1ebcfb9 Change-Id: I9fcc4b4b6f2093fadec7a832413ae168d1ebcfb9
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