mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
Add sample makefile
This commit is contained in:
parent
e90703356d
commit
c0d824ab7b
5 changed files with 41 additions and 8 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
@ -14,9 +14,10 @@ libtool
|
|||
ltmain.sh
|
||||
missing
|
||||
stamp-h
|
||||
compile
|
||||
|
||||
# gedit temporary files
|
||||
*.*~
|
||||
*~
|
||||
|
||||
# glue binaries/objects (FIXME: kill the glue, kthxbye)
|
||||
sources/glue/.deps/
|
||||
|
@ -31,9 +32,13 @@ sources/glue/generated.c
|
|||
doc/*
|
||||
sources/generated-stamp
|
||||
sources/gstreamer-sharp-api.xml
|
||||
sources/*.gir
|
||||
sources/AssemblyInfo.cs
|
||||
gstreamer-sharp-1.0.pc
|
||||
|
||||
# our "bin" folder when using makefile build
|
||||
out/*
|
||||
out/gstreamer-sharp.dll
|
||||
*.exe
|
||||
|
||||
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
|
||||
[Bb]in/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
SUBDIRS = sources sources/glue doc
|
||||
SUBDIRS = sources sources/glue samples doc
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = gstreamer-sharp-1.0.pc
|
||||
|
|
15
configure.ac
15
configure.ac
|
@ -73,8 +73,9 @@ AC_SUBST(GACUTIL_FLAGS)
|
|||
AC_SUBST(LIB_PREFIX)
|
||||
AC_SUBST(LIB_SUFFIX)
|
||||
|
||||
GTK_SHARP_VERSION=2.99.3
|
||||
dnl Check for glib-sharp
|
||||
PKG_CHECK_MODULES(GLIB_SHARP, glib-sharp-3.0 >= 2.99.3)
|
||||
PKG_CHECK_MODULES(GLIB_SHARP, glib-sharp-3.0 >= $GTK_SHARP_VERSION)
|
||||
AC_SUBST(GLIB_SHARP_CFLAGS)
|
||||
AC_SUBST(GLIB_SHARP_LIBS)
|
||||
gtksharp_prefix=`pkg-config --variable=prefix gtk-sharp-3.0`
|
||||
|
@ -83,12 +84,17 @@ AC_SUBST(gtksharp_prefix)
|
|||
AC_SUBST(gapidir)
|
||||
|
||||
dnl Check for gio-sharp
|
||||
PKG_CHECK_MODULES(GIO_SHARP, gio-sharp-3.0 >= 2.99.3)
|
||||
PKG_CHECK_MODULES(GIO_SHARP, gio-sharp-3.0 >= $GTK_SHARP_VERSION)
|
||||
AC_SUBST(GIO_SHARP_CFLAGS)
|
||||
AC_SUBST(GIO_SHARP_LIBS)
|
||||
|
||||
dnl Check for gtk-sharp
|
||||
PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-3.0 >= $GTK_SHARP_VERSION)
|
||||
AC_SUBST(GTK_SHARP_CFLAGS)
|
||||
AC_SUBST(GTK_SHARP_LIBS)
|
||||
|
||||
dnl Find GAPI
|
||||
PKG_CHECK_MODULES(GAPI, gapi-3.0 >= 2.99.3)
|
||||
PKG_CHECK_MODULES(GAPI, gapi-3.0 >= $GTK_SHARP_VERSION)
|
||||
|
||||
dnl Check for gapi
|
||||
AC_PATH_PROG(GAPI_PARSER, gapi3-parser, no)
|
||||
|
@ -151,7 +157,7 @@ PKG_CHECK_MODULES(GST,
|
|||
gstreamer-tag-1.0 >= $GSTREAMER_REQUIRED_VERSION
|
||||
)
|
||||
|
||||
gstreamer_prefix=/usr
|
||||
gstreamer_prefix=`pkg-config --variable=prefix gtk-sharp-3.0`
|
||||
AC_SUBST(gstreamer_prefix)
|
||||
AC_SUBST(GST_LIBS)
|
||||
AC_SUBST(GST_CFLAGS)
|
||||
|
@ -164,6 +170,7 @@ AC_CONFIG_FILES([
|
|||
Makefile
|
||||
sources/Makefile
|
||||
sources/glue/Makefile
|
||||
samples/Makefile
|
||||
sources/AssemblyInfo.cs
|
||||
gstreamer-sharp-1.0.pc
|
||||
doc/Makefile
|
||||
|
|
21
samples/Makefile.am
Normal file
21
samples/Makefile.am
Normal file
|
@ -0,0 +1,21 @@
|
|||
TARGETS = playback.exe video-overlay.exe
|
||||
|
||||
DEBUGS = $(addsuffix .mdb, $(TARGETS))
|
||||
assemblies = \
|
||||
$(top_builddir)/out/gstreamer-sharp.dll
|
||||
|
||||
references=$(addprefix -r:, $(assemblies))
|
||||
|
||||
noinst_SCRIPTS = $(TARGETS)
|
||||
CLEANFILES = $(TARGETS) $(DEBUGS)
|
||||
|
||||
playback.exe: $(srcdir)/Playback.cs $(assemblies)
|
||||
$(CSC) $(CSFLAGS) -out:playback.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/Playback.cs
|
||||
|
||||
video-overlay.exe: $(srcdir)/VideoOverlay.cs $(assemblies)
|
||||
$(CSC) $(CSFLAGS) -out:video-overlay.exe $(references) $(GTK_SHARP_LIBS) $(srcdir)/VideoOverlay.cs
|
||||
|
||||
|
||||
EXTRA_DIST = \
|
||||
Playback.cs \
|
||||
VideoOverlay.cs
|
|
@ -28,7 +28,7 @@ namespace GstreamerSharp
|
|||
Loop = new GLib.MainLoop();
|
||||
|
||||
Application.Init(ref args);
|
||||
element = Gst.Parse.ParseLaunch("playbin uri=http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.1080p.DivX_Plus_HD.mkv");
|
||||
element = Gst.Parse.Launch("playbin uri=http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.1080p.DivX_Plus_HD.mkv");
|
||||
|
||||
element.Bus.AddSignalWatch();
|
||||
element.Bus.Message += Handle;
|
||||
|
|
Loading…
Reference in a new issue