diff options
| author | Zhuoyao Zhang <zhuoyao@google.com> | 2017-02-02 16:55:00 -0800 |
|---|---|---|
| committer | Zhuoyao Zhang <zhuoyao@google.com> | 2017-02-03 10:03:01 -0800 |
| commit | e9b43bbe2d58dd1ae652eeff339771b01cec7d29 (patch) | |
| tree | b7d939ee82b0b80370b0399f5d961a82882d18c2 /contexthub/1.0/Android.bp | |
| parent | ed6138f749879c868b1f1d8ae21b1bb87dcb2162 (diff) | |
| download | android_hardware_interfaces-e9b43bbe2d58dd1ae652eeff339771b01cec7d29.tar.gz android_hardware_interfaces-e9b43bbe2d58dd1ae652eeff339771b01cec7d29.tar.bz2 android_hardware_interfaces-e9b43bbe2d58dd1ae652eeff339771b01cec7d29.zip | |
Update Andriod.bp for hals.
* Add driver/profiler build rule for all hals.
Test: mma
Change-Id: I98325f7af14fec7dd1bb64b1668de8c7c20ace92
Diffstat (limited to 'contexthub/1.0/Android.bp')
| -rw-r--r-- | contexthub/1.0/Android.bp | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/contexthub/1.0/Android.bp b/contexthub/1.0/Android.bp index 57983065a..e25c70d43 100644 --- a/contexthub/1.0/Android.bp +++ b/contexthub/1.0/Android.bp @@ -62,3 +62,114 @@ cc_library_shared { "android.hidl.base@1.0", ], } + +genrule { + name: "android.hardware.contexthub.vts.driver@1.0_genc++", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/contexthub/1.0/ $(genDir)/android/hardware/contexthub/1.0/", + srcs: [ + "types.hal", + "IContexthub.hal", + "IContexthubCallback.hal", + ], + out: [ + "android/hardware/contexthub/1.0/types.vts.cpp", + "android/hardware/contexthub/1.0/Contexthub.vts.cpp", + "android/hardware/contexthub/1.0/ContexthubCallback.vts.cpp", + ], +} + +genrule { + name: "android.hardware.contexthub.vts.driver@1.0_genc++_headers", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/contexthub/1.0/ $(genDir)/android/hardware/contexthub/1.0/", + srcs: [ + "types.hal", + "IContexthub.hal", + "IContexthubCallback.hal", + ], + out: [ + "android/hardware/contexthub/1.0/types.vts.h", + "android/hardware/contexthub/1.0/Contexthub.vts.h", + "android/hardware/contexthub/1.0/ContexthubCallback.vts.h", + ], +} + +cc_library_shared { + name: "android.hardware.contexthub.vts.driver@1.0", + generated_sources: ["android.hardware.contexthub.vts.driver@1.0_genc++"], + generated_headers: ["android.hardware.contexthub.vts.driver@1.0_genc++_headers"], + export_generated_headers: ["android.hardware.contexthub.vts.driver@1.0_genc++_headers"], + shared_libs: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "liblog", + "libutils", + "libcutils", + "libvts_common", + "libvts_datatype", + "libvts_measurement", + "libvts_multidevice_proto", + "libcamera_metadata", + "libprotobuf-cpp-full", + "android.hidl.base@1.0", + "android.hardware.contexthub@1.0", + ], + export_shared_lib_headers: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "libutils", + "android.hidl.base@1.0", + ], +} + +genrule { + name: "android.hardware.contexthub@1.0-vts.profiler_genc++", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/contexthub/1.0/ $(genDir)/android/hardware/contexthub/1.0/", + srcs: [ + "types.hal", + "IContexthub.hal", + "IContexthubCallback.hal", + ], + out: [ + "android/hardware/contexthub/1.0/types.vts.cpp", + "android/hardware/contexthub/1.0/Contexthub.vts.cpp", + "android/hardware/contexthub/1.0/ContexthubCallback.vts.cpp", + ], +} + +genrule { + name: "android.hardware.contexthub@1.0-vts.profiler_genc++_headers", + tools: ["hidl-gen", "vtsc"], + cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/contexthub/1.0/ $(genDir)/android/hardware/contexthub/1.0/", + srcs: [ + "types.hal", + "IContexthub.hal", + "IContexthubCallback.hal", + ], + out: [ + "android/hardware/contexthub/1.0/types.vts.h", + "android/hardware/contexthub/1.0/Contexthub.vts.h", + "android/hardware/contexthub/1.0/ContexthubCallback.vts.h", + ], +} + +cc_library_shared { + name: "android.hardware.contexthub@1.0-vts.profiler", + generated_sources: ["android.hardware.contexthub@1.0-vts.profiler_genc++"], + generated_headers: ["android.hardware.contexthub@1.0-vts.profiler_genc++_headers"], + export_generated_headers: ["android.hardware.contexthub@1.0-vts.profiler_genc++_headers"], + shared_libs: [ + "libbase", + "libhidlbase", + "libhidltransport", + "libvts_profiling", + "libvts_multidevice_proto", + "libprotobuf-cpp-full", + "android.hidl.base@1.0", + "android.hardware.contexthub@1.0", + ], +} |
