This project is still using stlport (without telling the build system about it), which was causing (broken) stlport headers to override libc++ headers, leading to a broken copy of std::enable_if, which in turn caused <atomic> to fail to compile. Since this project has prebuilts that will need to be updated before this project can actually move away from stlport, tell the build system that it is still using stlport for now. Bug: 18433002 Change-Id: I38b356428977ed2184eb28a07bd5e7424a4ace8d
64 lines
1.5 KiB
Makefile
64 lines
1.5 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 := \
|
|
external/gtest/include \
|
|
external/openssl/include \
|
|
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/oemcrypto/include \
|
|
vendor/widevine/libwvdrmengine/test/gmock/include
|
|
|
|
LOCAL_C_INCLUDES += external/protobuf/src
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(cdm_proto_gen_headers)
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libcdm \
|
|
libcdm_protos \
|
|
libgmock \
|
|
libgtest_ndk \
|
|
libgtest_main_ndk \
|
|
libwvlevel3 \
|
|
libcdm_utils \
|
|
libprotobuf-cpp-2.3.0-lite
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcrypto \
|
|
libcutils \
|
|
libdl \
|
|
liblog \
|
|
libssl \
|
|
libutils
|
|
|
|
LOCAL_CFLAGS += -DUNIT_TEST
|
|
|
|
# Needed to use gMock 1.7.0 on Android
|
|
LOCAL_CFLAGS += \
|
|
-DGTEST_HAS_TR1_TUPLE \
|
|
-DGTEST_USE_OWN_TR1_TUPLE \
|
|
|
|
LOCAL_MODULE_TARGET_ARCH := arm mips x86
|
|
|
|
LOCAL_CXX_STL := stlport
|
|
|
|
include $(BUILD_EXECUTABLE)
|