blob: 5040f17afe767b69bbf366537412ffcbe5a2ee2b [file] [log] [blame]
andrew@webrtc.orgb9d7d932012-01-25 19:21:13 +00001# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00002#
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
11include $(CLEAR_VARS)
12
leozwang@google.com79835d12011-08-05 21:01:02 +000013include $(LOCAL_PATH)/../../../../android-webrtc.mk
14
niklase@google.com470e71d2011-07-07 08:21:25 +000015LOCAL_ARM_MODE := arm
16LOCAL_MODULE := libwebrtc_voe_core
17LOCAL_MODULE_TAGS := optional
18LOCAL_CPP_EXTENSION := .cc
leozwang@google.com79835d12011-08-05 21:01:02 +000019LOCAL_SRC_FILES := \
20 audio_frame_operations.cc \
niklase@google.com470e71d2011-07-07 08:21:25 +000021 channel.cc \
22 channel_manager.cc \
23 channel_manager_base.cc \
24 dtmf_inband.cc \
25 dtmf_inband_queue.cc \
26 level_indicator.cc \
27 monitor_module.cc \
28 output_mixer.cc \
29 ref_count.cc \
30 shared_data.cc \
31 statistics.cc \
32 transmit_mixer.cc \
33 utility.cc \
34 voe_audio_processing_impl.cc \
35 voe_base_impl.cc \
36 voe_call_report_impl.cc \
37 voe_codec_impl.cc \
38 voe_dtmf_impl.cc \
39 voe_encryption_impl.cc \
40 voe_external_media_impl.cc \
41 voe_file_impl.cc \
42 voe_hardware_impl.cc \
43 voe_neteq_stats_impl.cc \
44 voe_network_impl.cc \
45 voe_rtp_rtcp_impl.cc \
46 voe_video_sync_impl.cc \
47 voe_volume_control_impl.cc \
48 voice_engine_impl.cc
49
50# Flags passed to both C and C++ files.
leozwang@google.com79835d12011-08-05 21:01:02 +000051LOCAL_CFLAGS := \
leozwang@google.comec5e8762011-09-20 16:41:09 +000052 $(MY_WEBRTC_COMMON_DEFS) \
53 '-DWEBRTC_ANDROID_OPENSLES'
niklase@google.com470e71d2011-07-07 08:21:25 +000054
leozwang@google.com79835d12011-08-05 21:01:02 +000055LOCAL_C_INCLUDES := \
niklase@google.com470e71d2011-07-07 08:21:25 +000056 $(LOCAL_PATH)/../interface \
leozwang@google.com79835d12011-08-05 21:01:02 +000057 $(LOCAL_PATH)/../../.. \
kjellander@webrtc.org0403ef42011-11-17 08:35:47 +000058 $(LOCAL_PATH)/../../../common_audio/resampler/include \
59 $(LOCAL_PATH)/../../../common_audio/signal_processing/include \
niklase@google.com470e71d2011-07-07 08:21:25 +000060 $(LOCAL_PATH)/../../../modules/interface \
leozwang@google.com79835d12011-08-05 21:01:02 +000061 $(LOCAL_PATH)/../../../modules/audio_coding/main/interface \
niklase@google.com470e71d2011-07-07 08:21:25 +000062 $(LOCAL_PATH)/../../../modules/audio_conference_mixer/interface \
63 $(LOCAL_PATH)/../../../modules/audio_device/main/interface \
leozwang@google.com803a5f22011-09-13 17:15:22 +000064 $(LOCAL_PATH)/../../../modules/audio_device/main/source \
andrew@webrtc.orgb9d7d932012-01-25 19:21:13 +000065 $(LOCAL_PATH)/../../../modules/audio_processing/include \
niklase@google.com470e71d2011-07-07 08:21:25 +000066 $(LOCAL_PATH)/../../../modules/media_file/interface \
67 $(LOCAL_PATH)/../../../modules/rtp_rtcp/interface \
68 $(LOCAL_PATH)/../../../modules/udp_transport/interface \
69 $(LOCAL_PATH)/../../../modules/utility/interface \
70 $(LOCAL_PATH)/../../../system_wrappers/interface
71
leozwang@google.com79835d12011-08-05 21:01:02 +000072LOCAL_SHARED_LIBRARIES := \
73 libcutils \
niklase@google.com470e71d2011-07-07 08:21:25 +000074 libdl \
75 libstlport
niklase@google.com470e71d2011-07-07 08:21:25 +000076
77ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
78LOCAL_LDLIBS += -ldl -lpthread
79endif
80
81ifneq ($(TARGET_SIMULATOR),true)
82LOCAL_SHARED_LIBRARIES += libdl
83endif
84
leozwang@google.com79835d12011-08-05 21:01:02 +000085ifndef NDK_ROOT
niklase@google.com470e71d2011-07-07 08:21:25 +000086include external/stlport/libstlport.mk
leozwang@google.com79835d12011-08-05 21:01:02 +000087endif
niklase@google.com470e71d2011-07-07 08:21:25 +000088include $(BUILD_STATIC_LIBRARY)