blob: cfb9d670fc65d5841ce84e1fc948491dfb77ddc8 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9LOCAL_PATH:= $(call my-dir)
10
11# voice engine test app
12
13include $(CLEAR_VARS)
14
leozwang@google.com79835d12011-08-05 21:01:02 +000015include $(LOCAL_PATH)/../../../../../android-webrtc.mk
16
niklase@google.com470e71d2011-07-07 08:21:25 +000017LOCAL_MODULE_TAGS := tests
18LOCAL_CPP_EXTENSION := .cc
19LOCAL_SRC_FILES:= \
kma@webrtc.orgb61c4102011-11-10 18:10:25 +000020 automated_mode.cc \
niklase@google.com470e71d2011-07-07 08:21:25 +000021 voe_cpu_test.cc \
22 voe_standard_test.cc \
23 voe_stress_test.cc \
24 voe_unit_test.cc \
kma@webrtc.orgb61c4102011-11-10 18:10:25 +000025 voe_extended_test.cc \
26 voe_standard_integration_test.cc
leozwang@google.com79835d12011-08-05 21:01:02 +000027
niklase@google.com470e71d2011-07-07 08:21:25 +000028# Flags passed to both C and C++ files.
29LOCAL_CFLAGS := \
30 '-DWEBRTC_TARGET_PC' \
31 '-DWEBRTC_LINUX' \
leozwang@google.com79835d12011-08-05 21:01:02 +000032 '-DWEBRTC_ANDROID'
33
niklase@google.com470e71d2011-07-07 08:21:25 +000034LOCAL_C_INCLUDES := \
niklase@google.com470e71d2011-07-07 08:21:25 +000035 $(LOCAL_PATH)/../../interface \
36 $(LOCAL_PATH)/../../../.. \
leozwang@google.coma5700872011-09-16 20:38:31 +000037 $(LOCAL_PATH)/../../../../modules/audio_device/main/interface \
leozwang@google.com90eff6c2011-09-21 18:02:03 +000038 $(LOCAL_PATH)/../../../../modules/interface \
leozwang@google.com79835d12011-08-05 21:01:02 +000039 $(LOCAL_PATH)/../../../../system_wrappers/interface \
kma@webrtc.org4bb14102011-11-02 16:38:22 +000040 $(LOCAL_PATH)/../../../../../test \
leozwang@google.com79835d12011-08-05 21:01:02 +000041 external/gtest/include \
niklase@google.com470e71d2011-07-07 08:21:25 +000042
43LOCAL_SHARED_LIBRARIES := \
44 libutils \
45 libstlport \
46 libwebrtc
47
48LOCAL_MODULE:= webrtc_voe_autotest
49
leozwang@google.com79835d12011-08-05 21:01:02 +000050ifdef NDK_ROOT
niklase@google.com470e71d2011-07-07 08:21:25 +000051include $(BUILD_EXECUTABLE)
leozwang@google.com79835d12011-08-05 21:01:02 +000052else
53include external/stlport/libstlport.mk
54include $(BUILD_NATIVE_TEST)
55endif
56