diff options
Diffstat (limited to 'drm')
| -rw-r--r-- | drm/1.0/Android.bp | 81 |
1 files changed, 80 insertions, 1 deletions
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++"], +} |
