[ Merge of http://go/wvgerrit/195850 ] Since Widevine device builds now include APEX prebuilts, shared library dependencies for the prebuilts are in are in /apex/com.google.android.widevine/lib[64] rather than /system/lib[64] or /vendor/lib[64]. When tests are run not all the dependencies are present. These changes include * Statically linking missing dependencies * Adding /apex/com.google.android.widevine/lib[64] to the shared library path * Searching for some of the test executables in /data/nativetest[64]/vendor/ Bug: 329888778 Bug: 329891889 Bug: 329891175 Bug: 329891049 Test: ./build_and_run_all_unit_tests.sh Change-Id: I067685cedc7701c4e6502bdac98b53e22b61ad1e
73 lines
1.8 KiB
Makefile
73 lines
1.8 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
# -----------------------------------------------------------------------------
|
|
# Builds libwvdrmmediacrypto_hal_test
|
|
#
|
|
include $(CLEAR_VARS)
|
|
|
|
# build unit tests for Aidl
|
|
LOCAL_SRC_FILES := \
|
|
WVCryptoPlugin_hal_test.cpp \
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
frameworks/av/include \
|
|
frameworks/native/include \
|
|
vendor/widevine/libwvdrmengine/cdm/core/include \
|
|
vendor/widevine/libwvdrmengine/cdm/include \
|
|
vendor/widevine/libwvdrmengine/cdm/metrics/include \
|
|
vendor/widevine/libwvdrmengine/cdm/util/include \
|
|
vendor/widevine/libwvdrmengine/include \
|
|
vendor/widevine/libwvdrmengine/mediacrypto/include \
|
|
vendor/widevine/libwvdrmengine/oemcrypto/include \
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libaidlcommonsupport \
|
|
libcdm \
|
|
libcdm_protos \
|
|
libcdm_utils \
|
|
libjsmn \
|
|
libjsoncpp \
|
|
libgmock \
|
|
libgmock_main \
|
|
libgtest \
|
|
libwvaidl \
|
|
libwvdrmcryptoplugin_aidl \
|
|
libwvlevel3 \
|
|
libwv_odk \
|
|
libPlatformProperties \
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
android.hardware.drm-V1-ndk \
|
|
libbase \
|
|
libbinder_ndk \
|
|
libcrypto \
|
|
libcutils \
|
|
libdl \
|
|
liblog \
|
|
libprotobuf-cpp-lite \
|
|
libutils \
|
|
wv_media_drm_flags_c_lib \
|
|
|
|
LOCAL_HEADER_LIBRARIES := \
|
|
libstagefright_headers \
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
external/protobuf/src \
|
|
|
|
LOCAL_MODULE := libwvdrmmediacrypto_hal_test
|
|
LOCAL_LICENSE_KINDS := legacy_by_exception_only legacy_proprietary
|
|
LOCAL_LICENSE_CONDITIONS := by_exception_only proprietary 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)
|