Provide a default liboemcrypto called liboemstub for devices that do not have widevine OEM integration but still build the wv libs.

Change-Id: Iaa577416f3996677af234738ac0cd3344bbee9bc
This commit is contained in:
Jeffrey Tinker
2011-03-18 10:55:30 -07:00
parent dac957507c
commit 55b05dab92
9 changed files with 54 additions and 14 deletions

View File

@@ -1,3 +1,5 @@
ifeq ($(TARGET_ARCH),arm)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
@@ -13,8 +15,6 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
ifeq ($(TARGET_ARCH),arm)
LOCAL_SRC_FILES:= \
src/WVMDrmPlugin.cpp \
src/WVMLogging.cpp
@@ -31,8 +31,7 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/drm
LOCAL_STATIC_LIBRARIES := \
libdrmframeworkcommon \
libwvocs \
liboemcrypto
libwvocs
LOCAL_SHARED_LIBRARIES := \
libutils \
@@ -43,9 +42,19 @@ LOCAL_SHARED_LIBRARIES := \
libWVStreamControlAPI
ifneq (,$(filter stingray wingray, $(TARGET_DEVICE)))
# stingray/wingray security lib provided by motorola for widevine
LOCAL_STATIC_LIBRARIES += \
liboemcrypto
LOCAL_SHARED_LIBRARIES += \
libtpa \
libtpa_core
else
# for devices that don't support WV drm liboemcrypto.a is not provided by the vendor
# Use liboemstub instead
LOCAL_STATIC_LIBRARIES += \
liboemstub
endif
ifeq ($(TARGET_SIMULATOR),true)
@@ -65,4 +74,7 @@ LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# invoke Android.mk files in subdirs
include $(call all-makefiles-under,$(LOCAL_PATH))
endif