Turn off mips64 library

Merge from widevine repo of http://go/wvgerrit/17223

This CL turns off the mips64 bit build for widevine.  This is because
the level 3 mips32 library does not build and run correctly for a 64
bit target.

b/27786231

Change-Id: I3388d9ebc80ae3cf477a8a54adfd1f22dfac4dda
This commit is contained in:
Fred Gylys-Colwell
2016-03-22 20:55:33 -07:00
parent f886f7fc3d
commit 19cd8db256
3 changed files with 5 additions and 299 deletions

View File

@@ -1,18 +1,5 @@
LOCAL_PATH:= $(call my-dir)
ifeq "$(TARGET_ARCH)" "mips64" # stub out mips64 because it doesn't link correctly.
$(warning Widevine Level 3 library disabled for mips 64 devices.)
include $(CLEAR_VARS)
LOCAL_MODULE := libwvlevel3
LOCAL_C_INCLUDES := vendor/widevine/libwvdrmengine/oemcrypto/include
LOCAL_SRC_FILES := level3_stubs.cpp
LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_OWNER := widevine
LOCAL_MODULE_TARGET_ARCH := mips64
include $(BUILD_STATIC_LIBRARY)
else # for 32 bit mips.
include $(CLEAR_VARS)
LOCAL_MODULE := libwvlevel3
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
@@ -22,6 +9,6 @@ LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_OWNER := widevine
LOCAL_MODULE_TARGET_ARCH := mips
# mips 32 bit library does not run on 64 bit chips.
LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH := mips64
include $(BUILD_PREBUILT)
endif