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

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

smorlat's avatar
smorlat committed
8 9 10
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 \
11
	winvideo2.c msjava.c $(ANDROID_SRC_FILES)
aymeric's avatar
aymeric committed
12 13 14 15 16 17 18 19 20 21 22 23 24

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     \
25
				eventqueue.c \
aymeric's avatar
aymeric committed
26 27 28 29 30 31 32 33 34 35 36 37
				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
38
				mtu.c \
39 40 41 42 43 44
				void.c \
				dsptools.c \
				kiss_fft.c  \
				_kiss_fft_guts.h \
				kiss_fft.h \
				kiss_fftr.c \
smorlat's avatar
smorlat committed
45
				kiss_fftr.h \
46 47
				equalizer.c \
				chanadapt.c \
48
				audiomixer.c \
49 50
				itc.c \
				tonedetector.c 
aymeric's avatar
aymeric committed
51

52 53
#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
54 55 56

libmediastreamer_la_SOURCES+=audiostream.c

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

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
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
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

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

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

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

aymeric's avatar
aymeric committed
110 111 112 113

if BUILD_VIDEO

if BUILD_MACOSX
smorlat's avatar
smorlat committed
114
libmediastreamer_la_SOURCES+=msv4m.m
115 116 117
endif

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

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

if BUILD_THEORA
libmediastreamer_la_SOURCES+=theora.c
endif

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

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

if BUILD_X11_XV
libmediastreamer_la_SOURCES+=x11video.c
endif

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

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) \
173
				$(LIBPULSE_LIBS) \
aymeric's avatar
aymeric committed
174
				$(SPEEX_LIBS) \
smorlat's avatar
smorlat committed
175 176 177
				$(GSM_LIBS) \
				$(LIBV4L1_LIBS) \
				$(LIBV4L2_LIBS)
Simon Morlat's avatar
Simon Morlat committed
178 179 180

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

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

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


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

endif

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

AM_CFLAGS=	-I$(top_srcdir)  \
                $(ORTP_CFLAGS)   \
		$(SPEEX_CFLAGS)  \
		$(GSM_CFLAGS)    \
207
		$(STRICT_OPTIONS) \
208 209
		$(LIBPULSE_CFLAGS) \
		-DPACKAGE_PLUGINS_DIR=\"$(PACKAGE_PLUGINS_DIR)\"
aymeric's avatar
aymeric committed
210

211 212 213 214
AM_CXXFLAGS= 	-I$(top_srcdir)  \
                $(ORTP_CFLAGS)   \
		$(STRICT_OPTIONS)

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

smorlat's avatar
smorlat committed
219 220
AM_OBJCFLAGS=$(AM_CFLAGS)

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

img_DATA=nowebcamCIF.jpg