From 26a0bb27627c43b599a7807ecf5ec594a525660a Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 22 Sep 2017 14:10:47 -0700 Subject: Update makefiles for hidl adapter. Bug: 37518178 Test: manual Change-Id: I50e999907d3c64d2b039272b823971998da64d1b --- drm/1.0/Android.bp | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++- drm/Android.bp | 1 + 2 files changed, 81 insertions(+), 1 deletion(-) (limited to 'drm') diff --git a/drm/1.0/Android.bp b/drm/1.0/Android.bp index 096aa06c6..0e091db44 100644 --- a/drm/1.0/Android.bp +++ b/drm/1.0/Android.bp @@ -93,4 +93,83 @@ cc_library { ], } -subdirs = ["default"] +genrule { + name: "android.hardware.drm@1.0-adapter-helper_genc++", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.drm@1.0", + srcs: [ + ":android.hardware.drm@1.0_hal", + ], + out: [ + "android/hardware/drm/1.0/ACryptoFactory.cpp", + "android/hardware/drm/1.0/ACryptoPlugin.cpp", + "android/hardware/drm/1.0/ADrmFactory.cpp", + "android/hardware/drm/1.0/ADrmPlugin.cpp", + "android/hardware/drm/1.0/ADrmPluginListener.cpp", + ], +} + +genrule { + name: "android.hardware.drm@1.0-adapter-helper_genc++_headers", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.drm@1.0", + srcs: [ + ":android.hardware.drm@1.0_hal", + ], + out: [ + "android/hardware/drm/1.0/ACryptoFactory.h", + "android/hardware/drm/1.0/ACryptoPlugin.h", + "android/hardware/drm/1.0/ADrmFactory.h", + "android/hardware/drm/1.0/ADrmPlugin.h", + "android/hardware/drm/1.0/ADrmPluginListener.h", + ], +} + + +cc_library { + name: "android.hardware.drm@1.0-adapter-helper", + defaults: ["hidl-module-defaults"], + generated_sources: ["android.hardware.drm@1.0-adapter-helper_genc++"], + generated_headers: ["android.hardware.drm@1.0-adapter-helper_genc++_headers"], + export_generated_headers: ["android.hardware.drm@1.0-adapter-helper_genc++_headers"], + vendor_available: true, + shared_libs: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "liblog", + "libutils", + "libcutils", + "libhidladapter", + "android.hardware.drm@1.0", + "android.hidl.base@1.0-adapter-helper", + ], + export_shared_lib_headers: [ + "libhidlbase", + "libhidltransport", + "libhwbinder", + "libutils", + "libhidladapter", + "android.hardware.drm@1.0", + "android.hidl.base@1.0-adapter-helper", + ], +} + +genrule { + name: "android.hardware.drm@1.0-adapter_genc++", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.drm@1.0", + out: ["main.cpp"]} + +cc_test { + name: "android.hardware.drm@1.0-adapter", + shared_libs: [ + "libhidladapter", + "libhidlbase", + "libhidltransport", + "libutils", + "android.hardware.drm@1.0", + "android.hardware.drm@1.0-adapter-helper", + ], + generated_sources: ["android.hardware.drm@1.0-adapter_genc++"], +} diff --git a/drm/Android.bp b/drm/Android.bp index 33f70ebae..ed19a3703 100644 --- a/drm/Android.bp +++ b/drm/Android.bp @@ -1,5 +1,6 @@ // This is an autogenerated file, do not edit. subdirs = [ "1.0", + "1.0/default", "1.0/vts/functional", ] -- cgit v1.2.3