blob: 3dc3c36be5601d59230629cb62d66d3f107152e9 [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 \
niklase@google.com470e71d2011-07-07 08:21:25 +000023 dtmf_inband.cc \
24 dtmf_inband_queue.cc \
25 level_indicator.cc \
26 monitor_module.cc \
27 output_mixer.cc \
28 ref_count.cc \
29 shared_data.cc \
30 statistics.cc \
31 transmit_mixer.cc \
32 utility.cc \
33 voe_audio_processing_impl.cc \
34 voe_base_impl.cc \
35 voe_call_report_impl.cc \
36 voe_codec_impl.cc \
37 voe_dtmf_impl.cc \
niklase@google.com470e71d2011-07-07 08:21:25 +000038 voe_external_media_impl.cc \
39 voe_file_impl.cc \
40 voe_hardware_impl.cc \
41 voe_neteq_stats_impl.cc \
42 voe_network_impl.cc \
43 voe_rtp_rtcp_impl.cc \
44 voe_video_sync_impl.cc \
45 voe_volume_control_impl.cc \
46 voice_engine_impl.cc
47
48# Flags passed to both C and C++ files.
leozwang@google.com79835d12011-08-05 21:01:02 +000049LOCAL_CFLAGS := \
leozwang@google.comec5e8762011-09-20 16:41:09 +000050 $(MY_WEBRTC_COMMON_DEFS) \
51 '-DWEBRTC_ANDROID_OPENSLES'
niklase@google.com470e71d2011-07-07 08:21:25 +000052
leozwang@google.com79835d12011-08-05 21:01:02 +000053LOCAL_C_INCLUDES := \
niklase@google.com470e71d2011-07-07 08:21:25 +000054 $(LOCAL_PATH)/../interface \
leozwang@google.com79835d12011-08-05 21:01:02 +000055 $(LOCAL_PATH)/../../.. \
kjellander@webrtc.org0403ef42011-11-17 08:35:47 +000056 $(LOCAL_PATH)/../../../common_audio/resampler/include \
57 $(LOCAL_PATH)/../../../common_audio/signal_processing/include \
niklase@google.com470e71d2011-07-07 08:21:25 +000058 $(LOCAL_PATH)/../../../modules/interface \
leozwang@google.com79835d12011-08-05 21:01:02 +000059 $(LOCAL_PATH)/../../../modules/audio_coding/main/interface \
niklase@google.com470e71d2011-07-07 08:21:25 +000060 $(LOCAL_PATH)/../../../modules/audio_conference_mixer/interface \
61 $(LOCAL_PATH)/../../../modules/audio_device/main/interface \
leozwang@google.com803a5f22011-09-13 17:15:22 +000062 $(LOCAL_PATH)/../../../modules/audio_device/main/source \
andrew@webrtc.orgb9d7d932012-01-25 19:21:13 +000063 $(LOCAL_PATH)/../../../modules/audio_processing/include \
niklase@google.com470e71d2011-07-07 08:21:25 +000064 $(LOCAL_PATH)/../../../modules/media_file/interface \
65 $(LOCAL_PATH)/../../../modules/rtp_rtcp/interface \
66 $(LOCAL_PATH)/../../../modules/udp_transport/interface \
67 $(LOCAL_PATH)/../../../modules/utility/interface \
solenberg@webrtc.orga0792332014-02-18 11:27:22 +000068 $(LOCAL_PATH)/../../../system_wrappers/interface
niklase@google.com470e71d2011-07-07 08:21:25 +000069
leozwang@google.com79835d12011-08-05 21:01:02 +000070LOCAL_SHARED_LIBRARIES := \
71 libcutils \
niklase@google.com470e71d2011-07-07 08:21:25 +000072 libdl \
solenberg@webrtc.orga0792332014-02-18 11:27:22 +000073 libstlport
niklase@google.com470e71d2011-07-07 08:21:25 +000074
75ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
76LOCAL_LDLIBS += -ldl -lpthread
77endif
78
79ifneq ($(TARGET_SIMULATOR),true)
80LOCAL_SHARED_LIBRARIES += libdl
81endif
82
leozwang@google.com79835d12011-08-05 21:01:02 +000083ifndef NDK_ROOT
niklase@google.com470e71d2011-07-07 08:21:25 +000084include external/stlport/libstlport.mk
leozwang@google.com79835d12011-08-05 21:01:02 +000085endif
niklase@google.com470e71d2011-07-07 08:21:25 +000086include $(BUILD_STATIC_LIBRARY)