[ Merged from http://go/wvgerrit/148451 ] This step is a prelude in adding Widevine unit tests that use AIDL interface. Test: ./build_and_run_all_unit_tests.sh Bug: 217247987 Change-Id: I449050819e6c9b0261066997dd45a6103b3a9a7a
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Builds libwvdrmengine_hal_test
|
|
#
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
WVCreatePluginFactories_test.cpp \
|
|
WVCryptoFactory_test.cpp \
|
|
WVDrmFactory_test.cpp \
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
frameworks/av/include \
|
|
frameworks/native/include \
|
|
vendor/widevine/libwvdrmengine/include_hidl \
|
|
vendor/widevine/libwvdrmengine/include \
|
|
vendor/widevine/libwvdrmengine/mediadrm/include_hidl \
|
|
vendor/widevine/libwvdrmengine/oemcrypto/include \
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libgtest \
|
|
libgtest_main \
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
android.hardware.drm@1.0 \
|
|
android.hardware.drm@1.1 \
|
|
android.hardware.drm@1.2 \
|
|
android.hardware.drm@1.3 \
|
|
android.hardware.drm@1.4 \
|
|
libbase \
|
|
libcrypto \
|
|
libdl \
|
|
libhidlbase \
|
|
libhidlmemory \
|
|
liblog \
|
|
libutils \
|
|
libwvhidl \
|
|
|
|
LOCAL_HEADER_LIBRARIES := \
|
|
libstagefright_foundation_headers \
|
|
|
|
LOCAL_MODULE := libwvdrmengine_hal_test
|
|
LOCAL_LICENSE_KINDS := legacy_by_exception_only
|
|
LOCAL_LICENSE_CONDITIONS := by_exception_only
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_MODULE_OWNER := widevine
|
|
LOCAL_PROPRIETARY_MODULE := true
|
|
|
|
# When built, explicitly put it in the DATA/nativetest directory.
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest
|
|
|
|
ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
|
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
|
endif
|
|
|
|
include $(BUILD_EXECUTABLE)
|