(This is a merge of http://go/wvgerrit/24738) The change to enable 64-bit as a possible target for Widevine Android made all the unit tests build as 64-bit on compatible platforms. Since none of these devices support 64-bit properly yet, this is a mistake. This patch restores unit test builds to being 32-bit only for now. In the future, when the switch for 64-bit-supporting devices is added, it will also switch the unit tests to 64-bit mode. Bug: 36071236 Test: Verified unit test format with "file" command. Change-Id: Ib4d3678181f3221b85fe6409f1d842dd15af3daa
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# -------------------------------------------------------------------
|
|
# Makes a unit or end to end test.
|
|
# test_name must be passed in as the base filename(without the .cpp).
|
|
#
|
|
$(call assert-not-null,test_name)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := $(test_name)
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_SRC_FILES := \
|
|
$(test_src_dir)/$(test_name).cpp \
|
|
../core/test/config_test_env.cpp \
|
|
../core/test/http_socket.cpp \
|
|
../core/test/license_request.cpp \
|
|
../core/test/test_printers.cpp \
|
|
../core/test/url_request.cpp
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
vendor/widevine/libwvdrmengine/android/cdm/test \
|
|
vendor/widevine/libwvdrmengine/cdm/core/include \
|
|
vendor/widevine/libwvdrmengine/cdm/core/test \
|
|
vendor/widevine/libwvdrmengine/cdm/include \
|
|
vendor/widevine/libwvdrmengine/cdm/metrics/include \
|
|
vendor/widevine/libwvdrmengine/oemcrypto/include \
|
|
|
|
LOCAL_C_INCLUDES += external/protobuf/src
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libcdm \
|
|
libcdm_protos \
|
|
libcdm_utils \
|
|
libcrypto_static \
|
|
libjsmn \
|
|
libgmock \
|
|
libgtest \
|
|
libgtest_main \
|
|
libwvlevel3 \
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcutils \
|
|
libdl \
|
|
liblog \
|
|
libmedia \
|
|
libprotobuf-cpp-lite \
|
|
libssl \
|
|
libstagefright_foundation \
|
|
libutils \
|
|
|
|
LOCAL_CFLAGS += -DUNIT_TEST
|
|
|
|
LOCAL_MODULE_TARGET_ARCH := arm x86 mips
|
|
|
|
include $(BUILD_EXECUTABLE)
|