[ 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
70 lines
1.6 KiB
Makefile
70 lines
1.6 KiB
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Builds libwvdrmengine_hal_test
|
|
#
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
WVCreatePluginFactories_hal_test.cpp \
|
|
WVCryptoFactory_hal_test.cpp \
|
|
WVDrmFactory_hal_test.cpp \
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
frameworks/av/include \
|
|
frameworks/native/include \
|
|
vendor/widevine/libwvdrmengine/cdm/core/include \
|
|
vendor/widevine/libwvdrmengine/include \
|
|
vendor/widevine/libwvdrmengine/mediadrm/include \
|
|
vendor/widevine/libwvdrmengine/oemcrypto/include \
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libaidlcommonsupport \
|
|
libgtest \
|
|
libgtest_main \
|
|
libjsmn \
|
|
libjsoncpp \
|
|
libcdm \
|
|
libcdm_protos \
|
|
libcdm_utils \
|
|
libwvdrmcryptoplugin_aidl \
|
|
libwvdrmdrmplugin_aidl \
|
|
libwvlevel3 \
|
|
libwv_odk \
|
|
libwvaidl \
|
|
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_foundation_headers \
|
|
|
|
LOCAL_MODULE := libwvdrmengine_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)
|