The tests are using vendor only libs such as libcdm and libwvlevel3, thus marked as LOCAL_PROPRIETARY_MODULE to use the libs. In addition, the dependency to libmedia is changed to libmedia_omx since libmedia is not available to vendor modules. UniquePtr is replaced with std::unique_ptr since UniquePtr.h in /libnativehelper is not available to vendors (and will not be completely removed in a near future). Bug: 37342627 Test: BOARD_VNDK_VERSION=current m -j tests Change-Id: I4e9d3267b20c1d52f57664b89f15330e2ebd953d
39 lines
828 B
Makefile
39 lines
828 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
ifeq ($(filter mips mips64, $(TARGET_ARCH)),)
|
|
# Tests need to be compatible with devices that do not support gnu hash-style
|
|
LOCAL_LDFLAGS+=-Wl,--hash-style=both
|
|
endif
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
oec_device_features.cpp \
|
|
oec_session_util.cpp \
|
|
oemcrypto_test.cpp \
|
|
oemcrypto_test_android.cpp \
|
|
oemcrypto_test_main.cpp \
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
$(LOCAL_PATH)/../include \
|
|
$(LOCAL_PATH)/../mock/src \
|
|
vendor/widevine/libwvdrmengine/cdm/core/include \
|
|
vendor/widevine/libwvdrmengine/third_party/stringencoders/src \
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libcdm \
|
|
libcdm_utils \
|
|
libcrypto_static \
|
|
libgtest \
|
|
libgtest_main \
|
|
libwvlevel3 \
|
|
libcdm_utils \
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcutils \
|
|
libdl \
|
|
liblog \
|
|
libmedia_omx \
|
|
libstagefright_foundation \
|
|
libutils \
|
|
libz \
|
|
|