Use board config variable BOARD_WIDEVINE_OEMCRYPTO_LEVEL
Instead of grepping out the oemcrypto level from PRODUCT_PACKAGES, which is very fragile. Change-Id: I1ac5b8ace25dd4798d3383304f01496f12193526
This commit is contained in:
@@ -3,13 +3,16 @@
|
||||
# Widevine DRM plugin. Sets up includes and defines the core libraries
|
||||
# required to build the plugin.
|
||||
#
|
||||
include $(TOP)/vendor/widevine/proprietary/drmwvmplugin/common.mk
|
||||
include $(TOP)/vendor/widevine/proprietary/drmwvmplugin/oemcryptolevel.mk
|
||||
include vendor/widevine/proprietary/drmwvmplugin/common.mk
|
||||
|
||||
ifndef BOARD_WIDEVINE_OEMCRYPTO_LEVEL
|
||||
$(error BOARD_WIDEVINE_OEMCRYPTO_LEVEL not defined!)
|
||||
endif
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := \
|
||||
libdrmframeworkcommon \
|
||||
libdrmwvmcommon \
|
||||
libwvocs_L$(LOCAL_OEMCRYPTO_LEVEL)
|
||||
libwvocs_L$(BOARD_WIDEVINE_OEMCRYPTO_LEVEL)
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libbinder \
|
||||
@@ -17,6 +20,6 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
libcutils \
|
||||
libstlport \
|
||||
libz \
|
||||
libwvdrm_L$(LOCAL_OEMCRYPTO_LEVEL) \
|
||||
libWVStreamControlAPI_L$(LOCAL_OEMCRYPTO_LEVEL) \
|
||||
libwvdrm_L$(BOARD_WIDEVINE_OEMCRYPTO_LEVEL) \
|
||||
libWVStreamControlAPI_L$(BOARD_WIDEVINE_OEMCRYPTO_LEVEL) \
|
||||
libdl
|
||||
|
||||
Reference in New Issue
Block a user