Merge "Provide a default liboemcrypto called liboemstub for devices that do not have widevine OEM integration but still build the wv libs." into honeycomb-mr1

This commit is contained in:
Jeffrey Tinker
2011-03-18 16:08:59 -07:00
committed by Android (Google) Code Review
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

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)
include $(CLEAR_VARS)
@@ -31,3 +33,4 @@ LOCAL_MODULE_TAGS := tests
include $(BUILD_EXECUTABLE)
endif

View File

@@ -1,3 +1,5 @@
ifeq ($(TARGET_ARCH),arm)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
@@ -12,11 +14,4 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)
include $(BUILD_PREBUILT)
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)
endif

View File

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

View File

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

View File

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