]> sjero.net Git - linphone/blob - build/android/Android.mk
Merge branch 'master' of git.savannah.nongnu.org:/srv/git/linphone
[linphone] / build / android / Android.mk
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
22 LOCAL_PATH:= $(call my-dir)/../../coreapi
23 include $(CLEAR_VARS)
24
25 LOCAL_MODULE := liblinphone
26
27 LOCAL_CPP_EXTENSION := .cc
28
29 LOCAL_SRC_FILES = \
30         linphonecore.c \
31         misc.c  \
32         enum.c \
33         enum.h \
34         presence.c \
35         proxy.c \
36         friend.c \
37         authentication.c \
38         lpconfig.c \
39         chat.c \
40         sipsetup.c \
41         siplogin.c \
42         address.c \
43         linphonecore_jni.cc \
44         sal.c \
45         sal_eXosip2.c \
46         sal_eXosip2_presence.c \
47         sal_eXosip2_sdp.c \
48         offeranswer.c \
49         callbacks.c
50
51 LOCAL_CFLAGS += \
52         -D_BYTE_ORDER=_LITTLE_ENDIAN \
53         -DORTP_INET6 \
54         -DENABLE_TRACE \
55         -DLINPHONE_VERSION=\"Linphone-3.3.x\" \
56         -DLINPHONE_PLUGINS_DIR=\"\\tmp\" \
57         -DLOG_DOMAIN=\"Linphone\"
58
59 LOCAL_CFLAGS += -DIN_LINPHONE
60 #LOCAL_CFLAGS += -DVIDEO_ENABLED -DIN_LINPHONE
61
62 LOCAL_C_INCLUDES += \
63         $(LOCAL_PATH) \
64         $(LOCAL_PATH)/include \
65         $(LOCAL_PATH)/../oRTP/include \
66         $(LOCAL_PATH)/../mediastreamer2/include \
67         $(LOCAL_PATH)/../../externals/exosip/include \
68         $(LOCAL_PATH)/../../externals/osip/include 
69
70 LOCAL_LDLIBS += -llog
71
72 LOCAL_STATIC_LIBRARIES := \
73         libmediastreamer2 \
74         libortp \
75         libspeex \
76         libeXosip2 \
77         libosip2 \
78         libgsm
79 ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
80    LOCAL_CFLAGS += -DHAVE_ILBC=1
81    LOCAL_STATIC_LIBRARIES += libmsilbc
82 endif
83 LOCAL_MODULE_CLASS = SHARED_LIBRARIES
84
85 include $(BUILD_SHARED_LIBRARY)
86
87
88
89
90
91