| 1 | |
|---|
| 2 | EXTRA_DIST= winsnd2.c winsnd.c winvideo.c \ |
|---|
| 3 | winvideods.c wincevideods.c dxfilter.h dxfilter.cpp \ |
|---|
| 4 | msfileplayer_win.c msfilerec_win.c winsndds.cpp nowebcamCIF.jpg winsnd3.c vfw-missing.h \ |
|---|
| 5 | winvideo2.c |
|---|
| 6 | |
|---|
| 7 | BUILT_SOURCES=alldescs.h |
|---|
| 8 | |
|---|
| 9 | CLEANFILES=alldescs.h filterdescs.txt |
|---|
| 10 | |
|---|
| 11 | INCLUDES=-I$(top_srcdir)/include/ |
|---|
| 12 | |
|---|
| 13 | lib_LTLIBRARIES=libmediastreamer.la |
|---|
| 14 | |
|---|
| 15 | libmediastreamer_la_SOURCES= mscommon.c \ |
|---|
| 16 | msfilter.c \ |
|---|
| 17 | msqueue.c \ |
|---|
| 18 | msticker.c \ |
|---|
| 19 | eventqueue.c \ |
|---|
| 20 | alaw.c \ |
|---|
| 21 | ulaw.c \ |
|---|
| 22 | mssndcard.c \ |
|---|
| 23 | msrtp.c \ |
|---|
| 24 | dtmfgen.c \ |
|---|
| 25 | ice.c \ |
|---|
| 26 | tee.c \ |
|---|
| 27 | msconf.c \ |
|---|
| 28 | msjoin.c \ |
|---|
| 29 | g711common.h \ |
|---|
| 30 | msvolume.c \ |
|---|
| 31 | mswebcam.c \ |
|---|
| 32 | mtu.c \ |
|---|
| 33 | void.c \ |
|---|
| 34 | dsptools.c \ |
|---|
| 35 | kiss_fft.c \ |
|---|
| 36 | _kiss_fft_guts.h \ |
|---|
| 37 | kiss_fft.h \ |
|---|
| 38 | kiss_fftr.c \ |
|---|
| 39 | kiss_fftr.h \ |
|---|
| 40 | equalizer.c \ |
|---|
| 41 | chanadapt.c \ |
|---|
| 42 | audiomixer.c \ |
|---|
| 43 | itc.c |
|---|
| 44 | |
|---|
| 45 | #dummy c++ file to force libtool to use c++ linking (because of msdscap-mingw.cc) |
|---|
| 46 | nodist_EXTRA_libmediastreamer_la_SOURCES = dummy.cxx |
|---|
| 47 | |
|---|
| 48 | libmediastreamer_la_SOURCES+=audiostream.c |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | if BUILD_SPEEX |
|---|
| 52 | libmediastreamer_la_SOURCES+=msspeex.c speexec.c |
|---|
| 53 | endif |
|---|
| 54 | |
|---|
| 55 | if BUILD_GSM |
|---|
| 56 | libmediastreamer_la_SOURCES+=gsm.c |
|---|
| 57 | endif |
|---|
| 58 | |
|---|
| 59 | if BUILD_WIN32 |
|---|
| 60 | libmediastreamer_la_SOURCES+= winsnd3.c \ |
|---|
| 61 | msfileplayer_win.c msfilerec_win.c |
|---|
| 62 | else |
|---|
| 63 | libmediastreamer_la_SOURCES+= msfileplayer.c \ |
|---|
| 64 | msfilerec.c |
|---|
| 65 | endif |
|---|
| 66 | |
|---|
| 67 | if BUILD_RESAMPLE |
|---|
| 68 | libmediastreamer_la_SOURCES+=msresample.c |
|---|
| 69 | endif |
|---|
| 70 | |
|---|
| 71 | if BUILD_ALSA |
|---|
| 72 | libmediastreamer_la_SOURCES+=alsa.c |
|---|
| 73 | endif |
|---|
| 74 | |
|---|
| 75 | if BUILD_OSS |
|---|
| 76 | libmediastreamer_la_SOURCES+=oss.c |
|---|
| 77 | endif |
|---|
| 78 | |
|---|
| 79 | if BUILD_ARTS |
|---|
| 80 | libmediastreamer_la_SOURCES+=arts.c |
|---|
| 81 | endif |
|---|
| 82 | |
|---|
| 83 | if BUILD_PORTAUDIO |
|---|
| 84 | libmediastreamer_la_SOURCES+=pasnd.c |
|---|
| 85 | endif |
|---|
| 86 | |
|---|
| 87 | if BUILD_MACSND |
|---|
| 88 | libmediastreamer_la_SOURCES+=macsnd.c |
|---|
| 89 | endif |
|---|
| 90 | |
|---|
| 91 | if BUILD_MACIOUNIT |
|---|
| 92 | libmediastreamer_la_SOURCES+=msiounit.c |
|---|
| 93 | endif |
|---|
| 94 | |
|---|
| 95 | if BUILD_MACAQSND |
|---|
| 96 | libmediastreamer_la_SOURCES+=aqsnd.c |
|---|
| 97 | endif |
|---|
| 98 | |
|---|
| 99 | if BUILD_PULSEAUDIO |
|---|
| 100 | libmediastreamer_la_SOURCES+=pulseaudio.c |
|---|
| 101 | endif |
|---|
| 102 | |
|---|
| 103 | |
|---|
| 104 | if BUILD_VIDEO |
|---|
| 105 | |
|---|
| 106 | if BUILD_MACOSX |
|---|
| 107 | libmediastreamer_la_SOURCES+=msv4m.m |
|---|
| 108 | endif |
|---|
| 109 | |
|---|
| 110 | if BUILD_V4L |
|---|
| 111 | libmediastreamer_la_SOURCES+=msv4l.c msv4l2.c |
|---|
| 112 | endif |
|---|
| 113 | |
|---|
| 114 | if BUILD_WIN32 |
|---|
| 115 | libmediastreamer_la_SOURCES+=msdscap-mingw.cc drawdib-display.c |
|---|
| 116 | endif |
|---|
| 117 | |
|---|
| 118 | if BUILD_THEORA |
|---|
| 119 | libmediastreamer_la_SOURCES+=theora.c |
|---|
| 120 | endif |
|---|
| 121 | |
|---|
| 122 | if BUILD_FFMPEG |
|---|
| 123 | libmediastreamer_la_SOURCES+= videoenc.c \ |
|---|
| 124 | videodec.c \ |
|---|
| 125 | pixconv.c \ |
|---|
| 126 | sizeconv.c \ |
|---|
| 127 | nowebcam.c nowebcam.h \ |
|---|
| 128 | swscale.h ffmpeg-priv.h \ |
|---|
| 129 | h264dec.c \ |
|---|
| 130 | jpegwriter.c |
|---|
| 131 | endif |
|---|
| 132 | |
|---|
| 133 | if BUILD_SDL |
|---|
| 134 | libmediastreamer_la_SOURCES+=videoout.c |
|---|
| 135 | endif |
|---|
| 136 | |
|---|
| 137 | if BUILD_X11_XV |
|---|
| 138 | libmediastreamer_la_SOURCES+=x11video.c |
|---|
| 139 | endif |
|---|
| 140 | |
|---|
| 141 | libmediastreamer_la_SOURCES+= rfc2429.h \ |
|---|
| 142 | msvideo.c \ |
|---|
| 143 | rfc3984.c \ |
|---|
| 144 | mire.c \ |
|---|
| 145 | extdisplay.c \ |
|---|
| 146 | layouts.c layouts.h |
|---|
| 147 | |
|---|
| 148 | libmediastreamer_la_SOURCES+=videostream.c |
|---|
| 149 | |
|---|
| 150 | endif |
|---|
| 151 | |
|---|
| 152 | |
|---|
| 153 | |
|---|
| 154 | |
|---|
| 155 | alldescs.h: Makefile.am $(libmediastreamer_la_SOURCES) |
|---|
| 156 | builddir=`pwd` && cd $(srcdir) && \ |
|---|
| 157 | awk 'BEGIN { FS="[()]" ; }; /^\t*MS_FILTER_DESC_EXPORT/{ printf("%s\n", $$2) } ' > $$builddir/filterdescs.txt $(libmediastreamer_la_SOURCES) && \ |
|---|
| 158 | awk 'BEGIN { print("#include \"mediastreamer2/msfilter.h\"\n") } { printf("extern MSFilterDesc %s;\n",$$1) } ' $$builddir/filterdescs.txt > $$builddir/$@ && \ |
|---|
| 159 | awk 'BEGIN { print("MSFilterDesc * ms_filter_descs[]={") } { printf("&%s,\n",$$1) } END{ print("NULL\n};\n") } ' $$builddir/filterdescs.txt >> $$builddir/$@ |
|---|
| 160 | |
|---|
| 161 | |
|---|
| 162 | libmediastreamer_la_LIBADD= $(ORTP_LIBS) \ |
|---|
| 163 | $(PORTAUDIO_LIBS) \ |
|---|
| 164 | $(ALSA_LIBS) \ |
|---|
| 165 | $(ARTS_LIBS) \ |
|---|
| 166 | $(LIBPULSE_LIBS) \ |
|---|
| 167 | $(SPEEX_LIBS) \ |
|---|
| 168 | $(GSM_LIBS) \ |
|---|
| 169 | $(LIBV4L1_LIBS) \ |
|---|
| 170 | $(LIBV4L2_LIBS) |
|---|
| 171 | if !BUILD_WIN32 |
|---|
| 172 | libmediastreamer_la_LDFLAGS=-rdynamic |
|---|
| 173 | else |
|---|
| 174 | libmediastreamer_la_LDFLAGS=-no-undefined |
|---|
| 175 | endif |
|---|
| 176 | |
|---|
| 177 | if BUILD_VIDEO |
|---|
| 178 | libmediastreamer_la_LIBADD+= $(VIDEO_LIBS) \ |
|---|
| 179 | $(THEORA_LIBS) |
|---|
| 180 | |
|---|
| 181 | |
|---|
| 182 | if BUILD_WIN32 |
|---|
| 183 | libmediastreamer_la_LIBADD+= -lole32 \ |
|---|
| 184 | -loleaut32\ |
|---|
| 185 | -lwinmm \ |
|---|
| 186 | -luuid |
|---|
| 187 | |
|---|
| 188 | endif |
|---|
| 189 | |
|---|
| 190 | endif |
|---|
| 191 | if BUILD_WIN32_WCE |
|---|
| 192 | libmediastreamer_la_LIBADD+= -lmmtimer |
|---|
| 193 | endif |
|---|
| 194 | |
|---|
| 195 | AM_CFLAGS= -I$(top_srcdir) \ |
|---|
| 196 | $(ORTP_CFLAGS) \ |
|---|
| 197 | $(SPEEX_CFLAGS) \ |
|---|
| 198 | $(GSM_CFLAGS) \ |
|---|
| 199 | $(STRICT_OPTIONS) \ |
|---|
| 200 | $(LIBPULSE_CFLAGS) |
|---|
| 201 | |
|---|
| 202 | AM_CXXFLAGS= -I$(top_srcdir) \ |
|---|
| 203 | $(ORTP_CFLAGS) \ |
|---|
| 204 | $(STRICT_OPTIONS) |
|---|
| 205 | |
|---|
| 206 | if BUILD_VIDEO |
|---|
| 207 | AM_CFLAGS+=$(VIDEO_CFLAGS) |
|---|
| 208 | endif |
|---|
| 209 | |
|---|
| 210 | AM_OBJCFLAGS=$(AM_CFLAGS) |
|---|
| 211 | |
|---|
| 212 | imgdir=$(datadir)/images/ |
|---|
| 213 | |
|---|
| 214 | img_DATA=nowebcamCIF.jpg |
|---|
| 215 | |
|---|