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:
Ying Wang
2012-06-05 14:29:27 -07:00
parent e01879128b
commit e36b59b8d3
17 changed files with 50 additions and 55 deletions

View File

@@ -3,8 +3,11 @@
# Widevine wvm static library. Sets up includes and defines the core libraries
# required.
#
include $(TOP)/vendor/widevine/proprietary/wvm/common.mk
include $(TOP)/vendor/widevine/proprietary/drmwvmplugin/oemcryptolevel.mk
include vendor/widevine/proprietary/wvm/common.mk
ifndef BOARD_WIDEVINE_OEMCRYPTO_LEVEL
$(error BOARD_WIDEVINE_OEMCRYPTO_LEVEL not defined!)
endif
LOCAL_WHOLE_STATIC_LIBRARIES := \
libwvmcommon
@@ -12,7 +15,7 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
LOCAL_SHARED_LIBRARIES := \
libstlport \
libstagefright \
libWVStreamControlAPI_L$(LOCAL_OEMCRYPTO_LEVEL) \
libWVStreamControlAPI_L$(BOARD_WIDEVINE_OEMCRYPTO_LEVEL) \
libdrmframework \
libcutils \
liblog \