2 ## Android.mk -Android build script-
5 ## Copyright (C) 2010 Belledonne Communications, Grenoble, France
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.
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.
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.
22 LOCAL_PATH:= $(call my-dir)/../../coreapi
27 LOCAL_CPP_EXTENSION := .cc
45 sal_eXosip2_presence.c \
53 MY_LOG_DOMAIN = \"Linphone\"
57 -D_BYTE_ORDER=_LITTLE_ENDIAN \
62 -DLINPHONE_VERSION=\"3.4.0\" \
63 -DLINPHONE_PLUGINS_DIR=\"\\tmp\" \
64 -DLOG_DOMAIN=$(MY_LOG_DOMAIN) \
65 -UNE_BONNE_PIPE_CA_FAIT_DU_BIEN
67 LOCAL_CFLAGS += -DIN_LINPHONE
70 ifeq ($(LINPHONE_VIDEO),1)
71 LOCAL_CFLAGS += -DVIDEO_ENABLED
72 ifeq ($(BUILD_X264),1)
73 LOCAL_CFLAGS += -DHAVE_X264
78 $(LOCAL_PATH)/include \
79 $(LOCAL_PATH)/../oRTP/include \
80 $(LOCAL_PATH)/../mediastreamer2/include \
81 $(LOCAL_PATH)/../../externals/exosip/include \
82 $(LOCAL_PATH)/../../externals/osip/include
84 LOCAL_LDLIBS += -llog -ldl
88 LOCAL_STATIC_LIBRARIES := \
96 ifneq ($(BUILD_AMR),0)
97 LOCAL_CFLAGS += -DHAVE_AMR
99 LOCAL_STATIC_LIBRARIES += \
104 ifeq ($(LINPHONE_VIDEO),1)
105 ifeq ($(BUILD_X264),1)
106 LOCAL_STATIC_LIBRARIES += \
110 LOCAL_SHARED_LIBRARIES += \
117 LOCAL_STATIC_LIBRARIES += libspeex
120 ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
121 LOCAL_CFLAGS += -DHAVE_ILBC=1
122 LOCAL_STATIC_LIBRARIES += libmsilbc
124 LOCAL_STATIC_LIBRARIES += $(LIBLINPHONE_EXTENDED_STATIC_LIBS)
125 LOCAL_SRC_FILES += $(LIBLINPHONE_EXTENDED_SRC_FILES)
126 LOCAL_C_INCLUDES += $(LIBLINPHONE_EXTENDED_C_INCLUDES)
130 LOCAL_MODULE := liblinphone
131 include $(BUILD_SHARED_LIBRARY)