Enable unit_test for android
Review URL: http://webrtc-codereview.appspot.com/95002 git-svn-id: http://webrtc.googlecode.com/svn/trunk@250 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
a39ffa90d5
commit
3a2be19453
@ -15,35 +15,33 @@ include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := tests
|
||||
LOCAL_CPP_EXTENSION := .cc
|
||||
LOCAL_SRC_FILES:= \
|
||||
unit_test.cc
|
||||
unit_test.cc \
|
||||
audio_processing_unittest_android.pb.cc
|
||||
|
||||
# Flags passed to both C and C++ files.
|
||||
LOCAL_CFLAGS := \
|
||||
'-DWEBRTC_TARGET_PC' \
|
||||
'-DWEBRTC_LINUX' \
|
||||
'-DWEBRTC_THREAD_RR' \
|
||||
'-DWEBRTC_ANDROID' \
|
||||
'-DANDROID'
|
||||
$(MY_WEBRTC_COMMON_DEFS)
|
||||
|
||||
LOCAL_CPPFLAGS :=
|
||||
LOCAL_LDFLAGS :=
|
||||
LOCAL_C_INCLUDES := \
|
||||
external/gtest/include \
|
||||
$(LOCAL_PATH)/../../../../../system_wrappers/interface \
|
||||
$(LOCAL_PATH)/../../../../../common_audio/signal_processing_library/main/interface \
|
||||
$(LOCAL_PATH)/../../interface \
|
||||
$(LOCAL_PATH)/../../../../interface \
|
||||
$(LOCAL_PATH)/../../../../..
|
||||
$(LOCAL_PATH)/../../../../.. \
|
||||
$(LOCAL_PATH)/../../../../../system_wrappers/interface \
|
||||
$(LOCAL_PATH)/../../../../../common_audio/signal_processing_library/main/interface \
|
||||
external/gtest/include \
|
||||
external/protobuf/src
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libgtest
|
||||
libgtest \
|
||||
libprotobuf-cpp-2.3.0-lite
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libutils \
|
||||
libstlport \
|
||||
libwebrtc_audio_preprocessing
|
||||
|
||||
LOCAL_MODULE:= webrtc_apm_unit_test
|
||||
|
||||
ifndef NDK_ROOT
|
||||
include external/stlport/libstlport.mk
|
||||
endif
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
|
||||
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
||||
#include "audio_processing_unittest.pb.h"
|
||||
#include "audio_processing_unittest_android.pb.h"
|
||||
#include <google/protobuf/stubs/once.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
|
@ -13,7 +13,11 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "audio_processing.h"
|
||||
#ifdef WEBRTC_ANDROID
|
||||
#include "audio_processing_unittest_android.pb.h"
|
||||
#else
|
||||
#include "audio_processing_unittest.pb.h"
|
||||
#endif
|
||||
#include "event_wrapper.h"
|
||||
#include "module_common_types.h"
|
||||
#include "thread_wrapper.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user