Makefile.am 3.28 KB
Newer Older
1
include ../globals.mk
jpbl's avatar
jpbl committed
2

Adrien Béraud's avatar
Adrien Béraud committed
3
ENABLE_VIDEO_LIBS=
4

Adrien Béraud's avatar
Adrien Béraud committed
5 6
if ENABLE_VIDEO
ENABLE_VIDEO_LIBS+=./media/video/libvideo.la
7
if HAVE_LINUX
8
if HAVE_ANDROID
Adrien Béraud's avatar
Adrien Béraud committed
9
ENABLE_VIDEO_LIBS+= \
10 11
                ./media/video/androidvideo/libandroidvideo.la
else
Adrien Béraud's avatar
Adrien Béraud committed
12
ENABLE_VIDEO_LIBS+= \
13 14
                ./media/video/v4l2/libv4l2.la
endif
15
endif
16
if HAVE_OSX
Adrien Béraud's avatar
Adrien Béraud committed
17
ENABLE_VIDEO_LIBS+= \
18 19
                ./media/video/osxvideo/libosxvideo.la
endif
20
if HAVE_IOS
Adrien Béraud's avatar
Adrien Béraud committed
21
ENABLE_VIDEO_LIBS+= \
22 23
                ./media/video/iosvideo/libiosvideo.la
endif
Edric Milaret's avatar
Edric Milaret committed
24
if HAVE_WIN32
Adrien Béraud's avatar
Adrien Béraud committed
25
ENABLE_VIDEO_LIBS+= \
Edric Milaret's avatar
Edric Milaret committed
26 27
                ./media/video/winvideo/libwinvideo.la
endif
28
endif
29

Adrien Béraud's avatar
Adrien Béraud committed
30
SUBDIRS = client media config hooks sip upnp security ringdht im $(ENABLE_VIDEO_SUBDIR)
Adrien Béraud's avatar
Adrien Béraud committed
31

Adrien Béraud's avatar
Adrien Béraud committed
32
# libring
Emmanuel Milou's avatar
Emmanuel Milou committed
33

Adrien Béraud's avatar
Adrien Béraud committed
34
lib_LTLIBRARIES = libring.la
jpbl's avatar
jpbl committed
35

Adrien Béraud's avatar
Adrien Béraud committed
36
libring_la_LIBADD = \
37
	./sip/libsiplink.la \
38
	./media/libmedia.la \
39
	./client/libclient.la \
yanmorin's avatar
 
yanmorin committed
40
	./config/libconfig.la \
41
	./hooks/libhooks.la \
42
	./security/libsecurity.la \
Stepan Salenikovich's avatar
Stepan Salenikovich committed
43
	./upnp/libupnpcontrol.la \
44 45
	./ringdht/libringacc.la \
	./im/libim.la \
Adrien Béraud's avatar
Adrien Béraud committed
46
	$(ENABLE_VIDEO_LIBS)
jpbl's avatar
jpbl committed
47

Adrien Béraud's avatar
Adrien Béraud committed
48
libring_la_LDFLAGS = \
49
		@PJPROJECT_LIBS@ \
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
50 51
		@ALSA_LIBS@ \
		@PULSEAUDIO_LIBS@ \
Tristan Matthews's avatar
Tristan Matthews committed
52
		@YAMLCPP_LIBS@ \
Alexandre Lision's avatar
Alexandre Lision committed
53
		@JSONCPP_LIBS@ \
54
		@SPEEXDSP_LIBS@ \
55
		@LIBUPNP_LIBS@ \
Edric Milaret's avatar
Edric Milaret committed
56
		@PORTAUDIO_LIBS@ \
57 58
		@GNUTLS_LIBS@ \
		@OPENDHT_LIBS@ \
Adrien Béraud's avatar
Adrien Béraud committed
59
		@SECP256K1_LIBS@ \
aviau's avatar
aviau committed
60
		@ZLIB_LIBS@ \
61 62
		@LIBSSL_LIBS@ \
		@LIBCRYPTO_LIBS@ \
63
		@LIBS@
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
64

65 66 67 68
if HAVE_WIN32
libring_la_LDFLAGS += -no-undefined -avoid-version
endif

69 70 71 72 73
if HAVE_OSX
#FIXME necessary for -lintl
libring_la_LDFLAGS += -L/usr/local/opt/gettext/lib
endif

Adrien Béraud's avatar
Adrien Béraud committed
74
libring_la_CFLAGS = \
75
		@PJPROJECT_CFLAGS@ \
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
76 77
		@ALSA_CFLAGS@ \
		@PULSEAUDIO_CFLAGS@ \
78
		@LIBUPNP_CFLAGS@ \
79
		@SPEEXDSP_CFLAGS@ \
Edric Milaret's avatar
Edric Milaret committed
80
		@PORTAUDIO_CFLAGS@ \
81
		@GNUTLS_CFLAGS@ \
Adrien Béraud's avatar
Adrien Béraud committed
82
		@OPENDHT_CFLAGS@
Alexandre Savard's avatar
[#3561]  
Alexandre Savard committed
83

84 85
libring_la_CXXFLAGS = @JSONCPP_CFLAGS@

Guillaume Roguez's avatar
Guillaume Roguez committed
86 87 88 89 90
if HAVE_LINUX
#needed to compile the .so
libring_la_CXXFLAGS += -fPIC
endif

91 92 93
libring_la_SOURCES = \
		buildinfo.cpp \
		conference.cpp \
94
		account_factory.cpp \
Guillaume Roguez's avatar
Guillaume Roguez committed
95
		call_factory.cpp \
96
		preferences.cpp \
97
		manager.cpp \
98 99
		call.cpp \
		account.cpp \
Guillaume Roguez's avatar
Guillaume Roguez committed
100
		logger.cpp \
101
		fileutils.cpp \
102
		archiver.cpp \
103
		threadloop.cpp \
Adrien Béraud's avatar
Adrien Béraud committed
104
		thread_pool.cpp \
Tristan Matthews's avatar
Tristan Matthews committed
105
		ip_utils.h \
106
		ip_utils.cpp \
107
		utf8_utils.cpp \
108 109
		ice_transport.cpp \
		ice_transport.h \
110
		threadloop.h \
Adrien Béraud's avatar
Adrien Béraud committed
111
		thread_pool.h \
112
		conference.h \
Tristan Matthews's avatar
Tristan Matthews committed
113 114
		account_factory.h \
		call_factory.h \
115 116 117 118 119 120
		preferences.h \
		manager.h \
		account.h \
		call.h \
		logger.h \
		fileutils.h \
121
		archiver.h \
122
		noncopyable.h \
123
		utf8_utils.h \
124
		ring_types.h \
125
		compiler_intrinsics.h \
126 127
		array_size.h \
		account_schema.h \
128
		registration_states.h \
129
		map_utils.h \
130
		string_utils.h \
131
		string_utils.cpp \
Tristan Matthews's avatar
Tristan Matthews committed
132
		rw_mutex.h \
133
		ring_api.cpp \
Gasuleg's avatar
Gasuleg committed
134 135
		rational.h \
		smartools.cpp \
136
		smartools.h \
137 138 139 140 141 142 143 144 145 146 147
		base64.h \
		base64.cpp \
		turn_transport.h \
		turn_transport.cpp \
		channel.h \
		peer_connection.cpp \
		peer_connection.h \
		data_transfer.cpp \
		data_transfer.h \
		ftp_server.cpp \
		ftp_server.h \
148 149 150
		generic_io.h \
		scheduled_executor.h \
		scheduled_executor.cpp
151

Edric Milaret's avatar
Edric Milaret committed
152 153 154 155 156 157
if HAVE_WIN32
libring_la_SOURCES += \
		dlfcn.c \
		winsyslog.c
endif

158
nobase_include_HEADERS= dring/dring.h \
159
		dring/security_const.h \
160 161 162
		dring/callmanager_interface.h \
		dring/configurationmanager_interface.h \
		dring/presencemanager_interface.h \
Guillaume Roguez's avatar
Guillaume Roguez committed
163
		dring/datatransfer_interface.h \
164
		dring/account_const.h \
Éloi Bail's avatar
Éloi Bail committed
165
		dring/call_const.h \
166
		dring/presence_const.h \
167 168
		dring/media_const.h \
		dring/def.h
169

Adrien Béraud's avatar
Adrien Béraud committed
170
if ENABLE_VIDEO
171 172 173
nobase_include_HEADERS+= \
		dring/videomanager_interface.h
endif