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.4 KiB
Makefile
64 lines
1.4 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
WVDrmPlugin_test.cpp \
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
external/gtest/include \
|
|
frameworks/av/include \
|
|
frameworks/native/include \
|
|
vendor/widevine/libwvdrmengine/cdm/core/include \
|
|
vendor/widevine/libwvdrmengine/cdm/include \
|
|
vendor/widevine/libwvdrmengine/include \
|
|
vendor/widevine/libwvdrmengine/mediadrm/include \
|
|
vendor/widevine/libwvdrmengine/oemcrypto/include \
|
|
vendor/widevine/libwvdrmengine/test/gmock/include \
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libcdm \
|
|
libcdm_protos \
|
|
libcdm_utils \
|
|
libgmock \
|
|
libgmock_main \
|
|
libgtest_ndk \
|
|
libwvlevel3 \
|
|
libprotobuf-cpp-2.3.0-lite \
|
|
libwvdrmdrmplugin \
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libcrypto \
|
|
libcutils \
|
|
libdl \
|
|
liblog \
|
|
libutils \
|
|
|
|
# Needed to use gMock 1.7.0 on Android
|
|
LOCAL_CFLAGS += \
|
|
-DGTEST_HAS_TR1_TUPLE \
|
|
-DGTEST_USE_OWN_TR1_TUPLE \
|
|
|
|
# CDM's protobuffers are not part of the library
|
|
PROTO_SRC_DIR := $(proto_generated_cc_sources_dir)/$(LOCAL_PATH)/core/src
|
|
|
|
LOCAL_SRC_FILES += \
|
|
$(PROTO_SRC_DIR)/license_protocol.pb.cc \
|
|
|
|
LOCAL_C_INCLUDES += \
|
|
$(proto_generated_cc_sources_dir)/$(LOCAL_PATH)/core/src \
|
|
external/protobuf/src \
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(proto_generated_headers)
|
|
|
|
# End protobuf section
|
|
|
|
LOCAL_MODULE := libwvdrmdrmplugin_test
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_MODULE_TARGET_ARCH := arm mips x86
|
|
|
|
LOCAL_CXX_STL := stlport
|
|
|
|
include $(BUILD_EXECUTABLE)
|