summaryrefslogtreecommitdiff
path: root/src/video/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/Makefile.am')
-rw-r--r--src/video/Makefile.am50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/video/Makefile.am b/src/video/Makefile.am
new file mode 100644
index 0000000..a48d1f6
--- /dev/null
+++ b/src/video/Makefile.am
@@ -0,0 +1,50 @@
+AM_CPPFLAGS = -I.. @XML2_CFLAGS@ @PTHREAD_CFLAGS@ @GDK_PIXBUF_CFLAGS@
+
+if APPLE
+ X_LIBS =
+else
+if ENABLE_RPI
+ X_LIBS = -lX11 -lGLESv2 -lEGL
+else
+if ENABLE_EGL
+ X_LIBS = -lXxf86vm -lX11 -lGLESv2 -lEGL
+else
+ X_LIBS = -lXxf86vm -lX11
+endif
+endif
+endif
+
+ALL_H = FFMpegDemuxer.h VideoDemuxerThread.h VideoDecoder.h \
+ VideoDecoderThread.h AudioDecoderThread.h VideoMsg.h FFMpegFrameDecoder.h \
+ AsyncVideoDecoder.h VideoDecoderThread.h SyncVideoDecoder.h \
+ VideoInfo.h WrapFFMpeg.h
+
+if USE_VDPAU_SRC
+ ALL_H += VDPAUDecoder.h VDPAUHelper.h
+endif
+
+TESTS = testvideo
+
+EXTRA_DIST = $(wildcard baseline/*.png)
+
+noinst_LTLIBRARIES = libvideo.la
+noinst_PROGRAMS = testvideo
+
+libvideo_la_SOURCES = FFMpegDemuxer.cpp VideoDemuxerThread.cpp VideoDecoder.cpp \
+ VideoDecoderThread.cpp AudioDecoderThread.cpp VideoMsg.cpp \
+ AsyncVideoDecoder.cpp VideoInfo.cpp SyncVideoDecoder.cpp \
+ FFMpegFrameDecoder.cpp \
+ $(ALL_H)
+
+if USE_VDPAU_SRC
+ libvideo_la_SOURCES += VDPAUDecoder.cpp VDPAUHelper.cpp
+endif
+
+libvideo_la_LIBADD = @LIBVIDEO_LDADD@
+
+testvideo_SOURCES = testvideo.cpp $(ALL_H)
+testvideo_LDADD = ./libvideo.la ../audio/libaudio.la ../graphics/libgraphics.la \
+ ../base/libbase.la ../base/triangulate/libtriangulate.la -ldl \
+ @GL_LIBS@ @GLU_LIBS@ @SDL_LIBS@ @XML2_LIBS@ \
+ @BOOST_THREAD_LIBS@ @PTHREAD_LIBS@ @LIBFFMPEG@ @LIBAVRESAMPLE@ @GDK_PIXBUF_LIBS@ \
+ $(X_LIBS)