Makefile.am 4.4 KB
Newer Older
aymeric's avatar
aymeric committed
1

2

3 4 5
ANDROID_SRC_FILES= \
	msandroid.cpp \
	android-display.c \
Simon Morlat's avatar
Simon Morlat committed
6
	android-display-bad.cpp \
7 8
	msandroidvideo.cpp

smorlat's avatar
smorlat committed
9 10 11
EXTRA_DIST= winsnd2.c winsnd.c winvideo.c  \
	winvideods.c wincevideods.c dxfilter.h dxfilter.cpp \
	msfileplayer_win.c msfilerec_win.c winsndds.cpp nowebcamCIF.jpg winsnd3.c vfw-missing.h \
12
	winvideo2.c msjava.c $(ANDROID_SRC_FILES)
aymeric's avatar
aymeric committed
13 14 15 16 17 18 19 20 21 22 23 24 25

BUILT_SOURCES=alldescs.h

CLEANFILES=alldescs.h filterdescs.txt

INCLUDES=-I$(top_srcdir)/include/

lib_LTLIBRARIES=libmediastreamer.la

libmediastreamer_la_SOURCES=	mscommon.c     \
				msfilter.c     \
				msqueue.c      \
				msticker.c     \
26
				eventqueue.c \
aymeric's avatar
aymeric committed
27 28 29 30 31 32 33 34 35 36 37 38
				alaw.c 	       \
				ulaw.c         \
				mssndcard.c    \
				msrtp.c	       \
				dtmfgen.c      \
				ice.c          \
				tee.c          \
				msconf.c       \
				msjoin.c       \
				g711common.h \
				msvolume.c \
				mswebcam.c \
smorlat's avatar
smorlat committed
39
				mtu.c \
40 41 42 43 44 45
				void.c \
				dsptools.c \
				kiss_fft.c  \
				_kiss_fft_guts.h \
				kiss_fft.h \
				kiss_fftr.c \
smorlat's avatar
smorlat committed
46
				kiss_fftr.h \
47 48
				equalizer.c \
				chanadapt.c \
49
				audiomixer.c \
50 51
				itc.c \
				tonedetector.c 
aymeric's avatar
aymeric committed
52

53 54
#dummy c++ file to force libtool to use c++ linking (because of msdscap-mingw.cc)
nodist_EXTRA_libmediastreamer_la_SOURCES = dummy.cxx
aymeric's avatar
aymeric committed
55 56 57

libmediastreamer_la_SOURCES+=audiostream.c

58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74

if BUILD_SPEEX
libmediastreamer_la_SOURCES+=msspeex.c speexec.c
endif

if BUILD_GSM
libmediastreamer_la_SOURCES+=gsm.c
endif

if BUILD_WIN32
libmediastreamer_la_SOURCES+=	winsnd3.c \
				msfileplayer_win.c msfilerec_win.c
else
libmediastreamer_la_SOURCES+=	msfileplayer.c \
				msfilerec.c    
endif

aymeric's avatar
aymeric committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
if BUILD_RESAMPLE
libmediastreamer_la_SOURCES+=msresample.c
endif

if BUILD_ALSA
libmediastreamer_la_SOURCES+=alsa.c
endif

if BUILD_OSS
libmediastreamer_la_SOURCES+=oss.c
endif

if BUILD_ARTS
libmediastreamer_la_SOURCES+=arts.c
endif

if BUILD_PORTAUDIO
libmediastreamer_la_SOURCES+=pasnd.c
endif

if BUILD_MACSND
libmediastreamer_la_SOURCES+=macsnd.c
endif

99 100 101 102
if BUILD_MACIOUNIT
libmediastreamer_la_SOURCES+=msiounit.c
endif

aymeric's avatar
aymeric committed
103 104 105 106
if BUILD_MACAQSND
libmediastreamer_la_SOURCES+=aqsnd.c
endif

107 108 109 110
if BUILD_PULSEAUDIO
libmediastreamer_la_SOURCES+=pulseaudio.c
endif

aymeric's avatar
aymeric committed
111 112 113 114

if BUILD_VIDEO

if BUILD_MACOSX
115
libmediastreamer_la_SOURCES+=msv4m.m
116 117 118
endif

if BUILD_V4L
aymeric's avatar
aymeric committed
119 120 121
libmediastreamer_la_SOURCES+=msv4l.c msv4l2.c
endif

122
if BUILD_WIN32
123
libmediastreamer_la_SOURCES+=msdscap-mingw.cc drawdib-display.c
124 125 126 127 128 129
endif

if BUILD_THEORA
libmediastreamer_la_SOURCES+=theora.c
endif

130
if BUILD_FFMPEG
smorlat's avatar
smorlat committed
131
libmediastreamer_la_SOURCES+=	videoenc.c \
aymeric's avatar
aymeric committed
132 133 134 135
				videodec.c \
				pixconv.c  \
				sizeconv.c \
				nowebcam.c nowebcam.h \
136
				swscale.h ffmpeg-priv.h \
137 138
				h264dec.c \
				jpegwriter.c
139 140
endif

Simon Morlat's avatar
Simon Morlat committed
141 142 143 144 145 146 147 148
if BUILD_SDL
libmediastreamer_la_SOURCES+=videoout.c 
endif

if BUILD_X11_XV
libmediastreamer_la_SOURCES+=x11video.c
endif

149
libmediastreamer_la_SOURCES+= rfc2429.h \
aymeric's avatar
aymeric committed
150 151
				msvideo.c \
				rfc3984.c \
152
				mire.c \
Simon Morlat's avatar
Simon Morlat committed
153 154
				extdisplay.c \
				layouts.c layouts.h
aymeric's avatar
aymeric committed
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173

libmediastreamer_la_SOURCES+=videostream.c

endif




alldescs.h:	Makefile.am $(libmediastreamer_la_SOURCES)
	builddir=`pwd` && cd $(srcdir) && \
	awk 'BEGIN { FS="[()]" ; }; /^\t*MS_FILTER_DESC_EXPORT/{ printf("%s\n", $$2) } '  > $$builddir/filterdescs.txt $(libmediastreamer_la_SOURCES) && \
	awk 'BEGIN { print("#include \"mediastreamer2/msfilter.h\"\n") } { printf("extern MSFilterDesc %s;\n",$$1) } ' $$builddir/filterdescs.txt > $$builddir/$@ && \
	awk 'BEGIN { print("MSFilterDesc * ms_filter_descs[]={") } { printf("&%s,\n",$$1) } END{ print("NULL\n};\n") } ' $$builddir/filterdescs.txt >> $$builddir/$@


libmediastreamer_la_LIBADD=	$(ORTP_LIBS) \
				$(PORTAUDIO_LIBS) \
				$(ALSA_LIBS) \
				$(ARTS_LIBS) \
174
				$(LIBPULSE_LIBS) \
aymeric's avatar
aymeric committed
175
				$(SPEEX_LIBS) \
smorlat's avatar
smorlat committed
176 177 178
				$(GSM_LIBS) \
				$(LIBV4L1_LIBS) \
				$(LIBV4L2_LIBS)
Simon Morlat's avatar
Simon Morlat committed
179 180 181

libmediastreamer_la_LDFLAGS= -no-undefined -version-info $(LIBMEDIASTREAMER_SO_VERSION) 

182
if !BUILD_WIN32
Simon Morlat's avatar
Simon Morlat committed
183
libmediastreamer_la_LDFLAGS+=-rdynamic
184
endif
aymeric's avatar
aymeric committed
185 186

if BUILD_VIDEO
187 188 189 190 191 192 193 194 195 196 197 198
libmediastreamer_la_LIBADD+=	$(VIDEO_LIBS) \
				$(THEORA_LIBS)


if BUILD_WIN32
libmediastreamer_la_LIBADD+=	-lole32 \
				-loleaut32\
				-lwinmm \
				-luuid

endif

aymeric's avatar
aymeric committed
199
endif
Jehan Monnier's avatar
Jehan Monnier committed
200 201 202
if BUILD_WIN32_WCE
libmediastreamer_la_LIBADD+=	-lmmtimer
endif
aymeric's avatar
aymeric committed
203

Simon Morlat's avatar
Simon Morlat committed
204
AM_CFLAGS= $(ORTP_CFLAGS)   \
aymeric's avatar
aymeric committed
205 206
		$(SPEEX_CFLAGS)  \
		$(GSM_CFLAGS)    \
207
		$(STRICT_OPTIONS) \
Simon Morlat's avatar
Simon Morlat committed
208 209
		$(LIBPULSE_CFLAGS) 
		
aymeric's avatar
aymeric committed
210

Simon Morlat's avatar
Simon Morlat committed
211
AM_CXXFLAGS= $(ORTP_CFLAGS)   \
212 213
		$(STRICT_OPTIONS)

Simon Morlat's avatar
Simon Morlat committed
214 215
DEFS=@DEFS@  -DPACKAGE_PLUGINS_DIR=\"$(PACKAGE_PLUGINS_DIR)\" -DLOCALEDIR=\"$(localedir)\" -DMS2_INTERNAL

aymeric's avatar
aymeric committed
216 217 218 219
if BUILD_VIDEO
AM_CFLAGS+=$(VIDEO_CFLAGS)
endif

220 221
AM_OBJCFLAGS=$(AM_CFLAGS)

aymeric's avatar
aymeric committed
222 223 224 225
imgdir=$(datadir)/images/

img_DATA=nowebcamCIF.jpg