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) LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
@@ -13,8 +15,6 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS) include $(CLEAR_VARS)
ifeq ($(TARGET_ARCH),arm)
LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= \
src/WVMDrmPlugin.cpp \ src/WVMDrmPlugin.cpp \
src/WVMLogging.cpp src/WVMLogging.cpp
@@ -31,8 +31,7 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/drm
LOCAL_STATIC_LIBRARIES := \ LOCAL_STATIC_LIBRARIES := \
libdrmframeworkcommon \ libdrmframeworkcommon \
libwvocs \ libwvocs
liboemcrypto
LOCAL_SHARED_LIBRARIES := \ LOCAL_SHARED_LIBRARIES := \
libutils \ libutils \
@@ -43,9 +42,19 @@ LOCAL_SHARED_LIBRARIES := \
libWVStreamControlAPI libWVStreamControlAPI
ifneq (,$(filter stingray wingray, $(TARGET_DEVICE))) ifneq (,$(filter stingray wingray, $(TARGET_DEVICE)))
# stingray/wingray security lib provided by motorola for widevine
LOCAL_STATIC_LIBRARIES += \
liboemcrypto
LOCAL_SHARED_LIBRARIES += \ LOCAL_SHARED_LIBRARIES += \
libtpa \ libtpa \
libtpa_core 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 endif
ifeq ($(TARGET_SIMULATOR),true) ifeq ($(TARGET_SIMULATOR),true)
@@ -65,4 +74,7 @@ LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)
# invoke Android.mk files in subdirs
include $(call all-makefiles-under,$(LOCAL_PATH))
endif endif

View File

@@ -0,0 +1,25 @@
ifeq ($(TARGET_ARCH),arm)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
include $(CLEAR_VARS)
LOCAL_MODULE := libwvocs
LOCAL_SRC_FILES := \
libwvocs.a
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := .a
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := liboemstub
LOCAL_SRC_FILES := \
liboemstub.a
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := .a
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
include $(BUILD_PREBUILT)
endif

Binary file not shown.

View File

@@ -1,3 +1,5 @@
ifeq ($(TARGET_ARCH),arm)
LOCAL_PATH:= $(call my-dir) LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
@@ -31,3 +33,4 @@ LOCAL_MODULE_TAGS := tests
include $(BUILD_EXECUTABLE) include $(BUILD_EXECUTABLE)
endif

View File

@@ -1,3 +1,5 @@
ifeq ($(TARGET_ARCH),arm)
LOCAL_PATH:= $(call my-dir) LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
@@ -12,11 +14,4 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES) OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)
include $(BUILD_PREBUILT) include $(BUILD_PREBUILT)
include $(CLEAR_VARS) endif
LOCAL_MODULE := libwvocs
LOCAL_SRC_FILES := \
libwvocs.a
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := .a
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
include $(BUILD_PREBUILT)

View File

@@ -1,6 +1,7 @@
ifeq ($(TARGET_ARCH),arm) ifeq ($(TARGET_ARCH),arm)
LOCAL_PATH:= $(call my-dir) LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= \

View File

@@ -1,9 +1,9 @@
ifeq ($(TARGET_ARCH),arm)
LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
ifeq ($(TARGET_ARCH),arm)
LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= \
WVMLogging.cpp \ WVMLogging.cpp \
WVMExtractorImpl.cpp \ WVMExtractorImpl.cpp \

View File

@@ -1,4 +1,7 @@
ifeq ($(TARGET_ARCH),arm)
LOCAL_PATH:= $(call my-dir) LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= \
@@ -25,3 +28,4 @@ LOCAL_MODULE_TAGS := tests
include $(BUILD_EXECUTABLE) include $(BUILD_EXECUTABLE)
endif