This merges the following changes from the Widevine CDM repository: 1a72a7e Combine utility code into single library on Android Combines several previously-separate files into a static library, libcdm_utils, so that it can easily be used by both CDM and OEMCrypto. 8c4d04d Install Keybox If the keybox has not been installed, install it from /factory/wv.keys. Bug: 9972451 Change-Id: I8688ecd0adcf321e0c7d0faf55dd10f3910c12ec
43 lines
864 B
Makefile
43 lines
864 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
# THIS IS FOR THE MOCK TESTS:
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
oemcrypto_test.cpp
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
# Define CAN_INSTALL_KEYBOX and the unit test will install a known keybox and test decryption.
|
|
LOCAL_CFLAGS += -DCAN_INSTALL_KEYBOX
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
bionic \
|
|
external/gtest/include \
|
|
external/openssl/include \
|
|
external/stlport/stlport \
|
|
$(LOCAL_PATH)/../include \
|
|
$(LOCAL_PATH)/../mock/src \
|
|
vendor/widevine/libwvdrmengine/cdm/core/include \
|
|
vendor/widevine/libwvdrmengine/third_party/stringencoders/src \
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libgtest \
|
|
libgtest_main \
|
|
libwvwrapper \
|
|
libwvlevel3 \
|
|
libcdm_utils \
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcrypto \
|
|
libcutils \
|
|
libdl \
|
|
liblog \
|
|
libstlport \
|
|
libutils \
|
|
libz \
|
|
|
|
LOCAL_MODULE:=oemcrypto_test
|
|
|
|
include $(BUILD_EXECUTABLE)
|