source: mediastreamer2/build/android/Android.mk @ 1174:ab92fc287975

Last change on this file since 1174:ab92fc287975 was 1174:ab92fc287975, checked in by Simon Morlat <simon.morlat@…>, 3 years ago

android audio refinements

File size: 3.0 KB
Line 
1##
2## Android.mk -Android build script-
3##
4##
5## Copyright (C) 2010  Belledonne Communications, Grenoble, France
6##
7##  This program is free software; you can redistribute it and/or modify
8##  it under the terms of the GNU General Public License as published by
9##  the Free Software Foundation; either version 2 of the License, or
10##  (at your option) any later version.
11##
12##  This program is distributed in the hope that it will be useful,
13##  but WITHOUT ANY WARRANTY; without even the implied warranty of
14##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15##  GNU Library General Public License for more details.
16##
17##  You should have received a copy of the GNU General Public License
18##  along with this program; if not, write to the Free Software
19##  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20##
21
22LOCAL_PATH:= $(call my-dir)/../../src
23include $(CLEAR_VARS)
24
25LOCAL_MODULE := libmediastreamer2
26
27
28#LOCAL_CPP_EXTENSION := .cc
29
30LOCAL_SRC_FILES = \
31        mscommon.c \
32        msfilter.c \
33        msqueue.c \
34        msticker.c \
35        alaw.c \
36        ulaw.c \
37        mssndcard.c \
38        msfileplayer.c \
39        msrtp.c \
40        dtmfgen.c \
41        msfilerec.c \
42        ice.c \
43        tee.c \
44        msconf.c \
45        msjoin.c \
46        msvolume.c \
47        mtu.c \
48        msresample.c \
49        mswebcam.c \
50        equalizer.c \
51        dsptools.c \
52        kiss_fft.c \
53        kiss_fftr.c \
54        void.c \
55        msandroid.cpp \
56        eventqueue.c   
57
58LOCAL_SRC_FILES += audiostream.c
59
60##if BUILD_RESAMPLE
61#LOCAL_SRC_FILES += msresample.c
62
63##if BUILD_ALSA
64ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
65LOCAL_SRC_FILES += alsa.c
66LOCAL_CFLAGS += -D__ALSA_ENABLED__
67endif
68
69##if BUILD_OSS
70#LOCAL_SRC_FILES += oss.c
71
72##if BUILD_ARTS
73#LOCAL_SRC_FILES += arts.c
74
75##if BUILD_PORTAUDIO
76#LOCAL_SRC_FILES += pasnd.c
77
78##if BUILD_MACSND
79#LOCAL_SRC_FILES += macsnd.c
80
81##if BUILD_MACAQSND
82#LOCAL_SRC_FILES += aqsnd.c
83
84ifeq ($(LINPHONE_VIDEO),1)
85
86LOCAL_CFLAGS += -DVIDEO_ENABLED
87
88LOCAL_SRC_FILES += \
89        videoenc.c \
90        videodec.c \
91        pixconv.c  \
92        sizeconv.c \
93        nowebcam.c \
94        msvideo.c \
95        h264dec.c \
96        rfc3984.c \
97        mire.c \
98        videostream.c
99
100endif
101
102#LOCAL_SRC_FILES += videostream.c
103#
104##if BUILD_THEORA
105#LOCAL_SRC_FILES += theora.c
106
107#if BUILD_SPEEX
108LOCAL_SRC_FILES += \
109        msspeex.c \
110        speexec.c
111
112##if BUILD_GSM
113LOCAL_SRC_FILES += gsm.c
114
115LOCAL_CFLAGS += \
116        -UHAVE_CONFIG_H \
117        -include $(LOCAL_PATH)/../build/android/libmediastreamer2_AndroidConfig.h \
118        -D_POSIX_SOURCE
119
120
121ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
122        LOCAL_CFLAGS += -DUSE_HARDWARE_RATE=1
123endif
124
125
126#LOCAL_CFLAGS += -DDEBUG
127
128LOCAL_C_INCLUDES += \
129        $(LOCAL_PATH)/../build/android \
130        $(LOCAL_PATH)/../include \
131        $(LOCAL_PATH)/../../oRTP \
132        $(LOCAL_PATH)/../../oRTP/include \
133        $(LOCAL_PATH)/../../../externals/speex/include \
134        $(LOCAL_PATH)/../../../externals/build/speex \
135        $(LOCAL_PATH)/../../../externals/gsm/inc \
136        $(LOCAL_PATH)/../../../externals/ffmpeg \
137        $(LOCAL_PATH)/../../../externals/ \
138        $(LOCAL_PATH)/../../../externals/build/ffmpeg
139
140LOCAL_STATIC_LIBRARIES := \
141        libortp \
142        libspeex
143
144
145ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
146LOCAL_SHARED_LIBRARIES += libasound
147endif
148
149
150
151include $(BUILD_STATIC_LIBRARY)
152
Note: See TracBrowser for help on using the repository browser.