Android.mk 2.61 KB
Newer Older
Yann Diorcet's avatar
Yann Diorcet committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
##
## Android.mk -Android build script-
##
##
## Copyright (C) 2013  Belledonne Communications, Grenoble, France
##
##  This program is free software; you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation; either version 2 of the License, or
##  (at your option) any later version.
##
##  This program is distributed in the hope that it will be useful,
##  but WITHOUT ANY WARRANTY; without even the implied warranty of
##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##  GNU General Public License for more details.
##
##  You should have received a copy of the GNU General Public License
##  along with this program; if not, write to the Free Software
##  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##

LOCAL_PATH:= $(call my-dir)/../../src
include $(CLEAR_VARS)

LOCAL_MODULE := libbellesip

LOCAL_CFLAGS += \
28
	-DHAVE_CONFIG_H -DHAVE_ZLIB=1 \
29
	-DBELLESIP_VERSION=\"$(BELLESIP_VERSION)\"
Yann Diorcet's avatar
Yann Diorcet committed
30 31

LOCAL_C_INCLUDES += \
Yann Diorcet's avatar
Yann Diorcet committed
32
	$(LOCAL_PATH)/../../externals/antlr3/runtime/C/include \
Yann Diorcet's avatar
Yann Diorcet committed
33
	$(LOCAL_PATH)/../include \
34
	$(LOCAL_PATH)/../build/android 
Yann Diorcet's avatar
Yann Diorcet committed
35 36 37 38 39

LOCAL_SRC_FILES := \
	auth_event.c \
	auth_helper.c \
	belle_sdp_impl.c \
40 41 42 43
	http-listener.c \
	http-provider.c \
	http-message.c \
	generic-uri.c \
Yann Diorcet's avatar
Yann Diorcet committed
44 45
	belle_sip_headers_impl.c \
	belle_sip_loop.c \
46 47 48 49
	grammars/belle_sip_messageLexer.c \
	grammars/belle_sip_messageParser.c \
	grammars/belle_sdpLexer.c \
	grammars/belle_sdpParser.c \
Yann Diorcet's avatar
Yann Diorcet committed
50
	belle_sip_object.c \
Simon Morlat's avatar
Simon Morlat committed
51
	belle_sip_dict.c \
Yann Diorcet's avatar
Yann Diorcet committed
52 53 54 55 56 57 58
	belle_sip_parameters.c \
	belle_sip_resolver.c \
	belle_sip_uri_impl.c \
	belle_sip_utils.c \
	channel.c \
	clock_gettime.c \
	dialog.c \
Yann Diorcet's avatar
Yann Diorcet committed
59
	dns.c \
Yann Diorcet's avatar
Yann Diorcet committed
60 61 62 63 64 65 66 67 68 69 70 71 72
	ict.c \
	ist.c \
	listeningpoint.c \
	md5.c \
	message.c \
	nict.c \
	nist.c \
	port.c \
	provider.c \
	refresher.c \
	siplistener.c \
	sipstack.c \
	transaction.c \
Simon Morlat's avatar
Simon Morlat committed
73
	bodyhandler.c \
Yann Diorcet's avatar
Yann Diorcet committed
74 75
	transports/stream_channel.c \
	transports/stream_listeningpoint.c \
76 77
	transports/tls_channel.c \
	transports/tls_listeningpoint.c \
Yann Diorcet's avatar
Yann Diorcet committed
78
	transports/udp_channel.c \
François Grisez's avatar
François Grisez committed
79 80
	transports/udp_listeningpoint.c \
	wakelock.c
Yann Diorcet's avatar
Yann Diorcet committed
81

82 83 84 85 86 87 88 89 90
ifeq ($(BUILD_TUNNEL), 1)
LOCAL_CFLAGS += -DHAVE_TUNNEL
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../tunnel/include
LOCAL_SRC_FILES += \
	transports/tunnel_listeningpoint.c \
	transports/tunnel_channel.c \
	transports/tunnel_wrapper.cc
endif

91 92 93 94
ifeq ($(BUILD_RTP_MAP),1)
LOCAL_CFLAGS += -DBELLE_SDP_FORCE_RTP_MAP
endif

95 96 97 98
ifeq ($(BUILD_DONT_CHECK_HEADERS_IN_MESSAGE),1)
LOCAL_CFLAGS += -DBELLE_SIP_DONT_CHECK_HEADERS_IN_MESSAGE
endif

Yann Diorcet's avatar
Yann Diorcet committed
99
LOCAL_STATIC_LIBRARIES := \
100
	antlr3
101

102 103
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../bctoolbox/include
LOCAL_STATIC_LIBRARIES += bctoolbox
Yann Diorcet's avatar
Yann Diorcet committed
104 105

include $(BUILD_STATIC_LIBRARY)