Merge from widevine of http://go/wvgerrit/23283 This CL adds some big usage table functionality to the oemcrypto mock and unit tests. Still missing are: backwards compatibility, defragging the table, haystack code, and lots of new unit tests. The haystack now reports it doesn't support usage tables, so that the unit tests will pass. This will be fixed in a future CL. b/31458046 b/32554171 b/34173776 b/34174907 Change-Id: I6e08e76f7612ffb77e413151e00f830339298c62
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
src/keys.cpp \
|
|
src/oemcrypto_auth_mock.cpp \
|
|
src/oemcrypto_engine_device_properties.cpp \
|
|
src/oemcrypto_engine_mock.cpp \
|
|
src/oemcrypto_key_mock.cpp \
|
|
src/oemcrypto_keybox_mock.cpp \
|
|
src/oemcrypto_keybox_testkey.cpp \
|
|
src/oemcrypto_logging.cpp \
|
|
src/oemcrypto_mock.cpp \
|
|
src/oemcrypto_rsa_key_shared.cpp \
|
|
src/oemcrypto_usage_table_mock.cpp \
|
|
src/wvcrc.cpp \
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
$(LOCAL_PATH)/../include \
|
|
$(LOCAL_PATH)/src \
|
|
vendor/widevine/libwvdrmengine/cdm/core/include \
|
|
vendor/widevine/libwvdrmengine/third_party/stringencoders/src \
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcutils \
|
|
libdl \
|
|
liblog \
|
|
libutils \
|
|
libz \
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libcdm_utils \
|
|
libcrypto_static \
|
|
|
|
# Proprietary modules are put in vendor/lib instead of /system/lib.
|
|
LOCAL_PROPRIETARY_MODULE := true
|
|
LOCAL_MODULE := liboemcrypto
|
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|