Remove autotools

It is not up to date anyway.
This commit is contained in:
Thibault Saunier 2017-10-12 00:20:38 +02:00
parent 0bd077718c
commit 7548c54234
10 changed files with 229 additions and 557 deletions

309
.gitignore vendored
View file

@ -1,77 +1,62 @@
# AutoTools stuff (or should I call it autohell?)
INSTALL
autom4te.cache
Makefile.in
Makefile
aclocal.m4
config.guess
config.status
config.sub
configure
depcomp
install-sh
libtool
ltmain.sh
missing
stamp-h
compile
build/
subprojects/
# gedit temporary files
*~
#Mac OS files
.DS_Store
.AppleDouble
.LSOverride
# glue binaries/objects (FIXME: kill the glue, kthxbye)
sources/glue/.deps/
sources/glue/*.o
sources/glue/*.lo
sources/glue/*.la
sources/glue/.libs/
# generated by the generator (we don't want anyone to commit these to the repo)
sources/generated/*/*.cs
sources/glue/generated.c
doc/*
sources/generated-stamp
sources/gstreamer-sharp-api.xml
sources/*.gir
sources/AssemblyInfo.cs
sources/gstreamer-sharp.snk
gstreamer-sharp-1.0.pc
# tarball
*.tar.gz
# our "bin" folder when using makefile build
out/gstreamer-sharp.dll
out/gstreamer-sharp.dll.mdb
*.exe
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/
[Oo]bj/
# mstest test results
TestResults
## Ignore IDE temporary files, build results, and
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
@ -85,35 +70,80 @@ x64/
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
*.ncrunch*
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# Installshield output folder
[Ee]xpress
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
@ -126,36 +156,153 @@ DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish
publish/
# Publish Web Output
*.Publish.xml
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# NuGet Packages Directory
packages
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# Windows Azure Build Output
csx
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Windows Store app package directory
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
# Others
[Bb]in
[Oo]bj
sql
TestResults
[Tt]est[Rr]esult*
*.Cache
ClientBin
[Ss]tyle[Cc]op.*
ClientBin/
~$*
*~
*.dbmdl
Generated_Code #added for RIA/Silverlight projects
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Typescript v1 declaration files
typings/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# JetBrains Rider
.idea/
*.sln.iml
# CodeRush
.cr/
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/

View file

@ -1,25 +0,0 @@
PROJECTFILES = gstreamer-sharp.sln gstreamer-sharp.csproj
SUBDIRS = sources sources/glue samples doc
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gstreamer-sharp-1.0.pc
EXTRA_DIST = gstreamer-sharp-1.0.pc.in out/gstreamer-sharp.dll.config gstreamer-sharp.snk $(PROJECTFILES)
DISTCLEANFILES = gstreamer-sharp-1.0.pc
MAINTAINERCLEANFILES = \
compile \
INSTALL \
aclocal.m4 \
ltmain.sh \
Makefile.in \
depcomp \
missing \
install-sh \
configure \
config.sub \
config.guess
regenerate:
bindinate --name=gstreamer --regenerate=true --merge-with=GstApp-1.0,GstAudio-1.0,GstBase-1.0,GstController-1.0,GstFft-1.0,GstNet-1.0,GstPbutils-1.0,GstRiff-1.0,GstRtp-1.0,GstRtsp-1.0,GstSdp-1.0,GstTag-1.0,GstVideo-1.0 --gir=Gst-1.0

View file

@ -1 +0,0 @@
1.12.0

View file

@ -1,13 +0,0 @@
#!/bin/sh
which autoreconf > /dev/null
if [ $? -ne 0 ] ; then
echo "Please install autoconf" && exit 1;
fi
which libtool > /dev/null 2>&1
if [ $? -ne 0 ] ; then
echo "Please install libtool" && exit 1;
fi
mkdir -p m4
autoreconf -i --force --warnings=none -I . -I m4 && \
./configure --enable-maintainer-mode $*

View file

@ -1,200 +0,0 @@
AC_INIT(gstreamer-sharp, m4_esyscmd([tr -d '\n' < VERSION]))
AC_CONFIG_SRCDIR([README])
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
AC_PROG_INSTALL
AC_PROG_CC
LT_INIT
dnl Package settings
ASSEMBLY_VERSION=`cat VERSION`
ASSEMBLY_COMPANY=""
ASSEMBLY_COPYRIGHT="GStreamerSharp Contributors"
ASSEMBLY_DESCRIPTION="Gst-1.12 bindings for Mono"
ASSEMBLY_NAME="gstreamer-sharp"
ASSEMBLY_NAMESPACE="Gst"
ASSEMBLY_PC="gstreamer-sharp-1.0"
ASSEMBLY_SHORTNAME="gstreamer"
ASSEMBLY_TITLE="Gst#"
AC_SUBST([ACLOCAL_AMFLAGS], ["-I m4 \${ACLOCAL_FLAGS}"])
AC_SUBST(ASSEMBLY_NAME)
AC_SUBST(ASSEMBLY_VERSION)
AC_SUBST(ASSEMBLY_NAMESPACE)
AC_SUBST(ASSEMBLY_SHORTNAME)
AC_SUBST(ASSEMBLY_TITLE)
AC_SUBST(ASSEMBLY_DESCRIPTION)
AC_SUBST(ASSEMBLY_COMPANY)
AC_SUBST(ASSEMBLY_COPYRIGHT)
AC_SUBST(ASSEMBLY_PC)
dnl Check for pkg-config
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR(['pkg-config' is not in your PATH.])
fi
dnl Check for Mono
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= 1.0, has_mono=true, has_mono=false)
if test "x$has_mono" = "xtrue"; then
AC_PATH_PROG(RUNTIME, mono, no)
AC_PATH_PROG(CSC, mcs, no)
LIB_PREFIX=.so
LIB_SUFFIX=
else
AC_PATH_PROG(CSC, csc.exe, no)
if test x$CSC = "xno"; then
AC_MSG_ERROR([You need to install either mono or .Net])
else
RUNTIME=
LIB_PREFIX=
LIB_SUFFIX=.dylib
fi
fi
CS="C#"
if test "x$CSC" = "xno" ; then
AC_MSG_ERROR([No $CS compiler found])
fi
AC_PATH_PROG(GACUTIL, gacutil, no)
if test "x$GACUTIL" = "xno" ; then
AC_MSG_ERROR([No gacutil tool found])
fi
GACUTIL_FLAGS="/package $ASSEMBLY_NAME /root "'$(DESTDIR)$(prefix)/lib'
AC_SUBST(RUNTIME)
AC_SUBST(CSC)
AC_SUBST(GACUTIL)
AC_SUBST(GACUTIL_FLAGS)
AC_SUBST(LIB_PREFIX)
AC_SUBST(LIB_SUFFIX)
GTK_SHARP_VERSION=3.22.6
dnl Check for glib-sharp
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`
gapidir=`pkg-config --variable=gapidir gtk-sharp-3.0`
AC_SUBST(gtksharp_prefix)
AC_SUBST(gapidir)
dnl Check for gio-sharp
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 >= $GTK_SHARP_VERSION)
dnl Check for gapi
AC_PATH_PROG(GAPI_PARSER, gapi3-parser, no)
if test "x$GAPI_PARSER" = "xno"; then
AC_MSG_CHECKING(for gapi3-parser.exe)
GAPI_PARSER=`which gapi3-parser.exe 2> /dev/null`
if test "x$GAPI_PARSER" = "xno" ; then
AC_MSG_ERROR(['gapi3_parser'/'gapi3-parser.exe' not found.])
fi
AC_MSG_RESULT($GAPI_PARSER)
GAPI_PARSER="$MONO $GAPI_PARSER"
fi
AC_SUBST(GAPI_PARSER)
AC_PATH_PROG(GAPI_FIXUP, gapi3-fixup, no)
if test "x$GAPI_FIXUP" = "xno"; then
AC_MSG_CHECKING(for gapi3-fixup.exe)
GAPI_FIXUP=`which gapi3-fixup.exe 2> /dev/null`
if test "x$GAPI_FIXUP" = "xno" ; then
AC_MSG_ERROR(['gapi3_fixup'/'gapi3-fixup.exe' not found.])
fi
AC_MSG_RESULT($GAPI_FIXUP)
GAPI_FIXUP="$MONO $GAPI_FIXUP"
fi
AC_SUBST(GAPI_FIXUP)
AC_PATH_PROG(GAPI_CODEGEN, gapi3-codegen, no)
if test "x$GAPI_CODEGEN" = "xno"; then
AC_MSG_CHECKING(for gapi3_codegen.exe)
GAPI_CODEGEN=`which gapi3_codegen.exe 2> /dev/null`
if test "x$GAPI_CODEGEN" = "xno" ; then
AC_MSG_ERROR(['gapi3-codegen'/'gapi3_codegen.exe' not found.])
fi
AC_MSG_RESULT([$GAPI_CODEGEN])
GAPI_CODEGEN="$MONO $GAPI_CODEGEN"
fi
AC_SUBST(GAPI_CODEGEN)
dnl Check for monodoc
AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
AC_PATH_PROG(MONODOCER, monodocer, no)
AC_PATH_PROG(MONODOCS2HTML, monodocs2html, no)
if test "x$MONODOCER" = "xno" -o "x$MDASSEMBLER" = "xno"; then
enable_monodoc=no
doc_sources_dir=
else
enable_monodoc=yes
doc_sources_dir="`pkg-config --variable=sourcesdir monodoc`"
fi
AC_SUBST(MDASSEMBLER)
AC_SUBST(MONODOCER)
AC_SUBST(MONODOCS2HTML)
AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_monodoc" = "xyes")
dnl Check for Gst
GSTREAMER_REQUIRED_VERSION=1.12.0
PKG_CHECK_MODULES(GST,
gstreamer-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-app-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-audio-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-base-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-controller-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-fft-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-net-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-pbutils-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-riff-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-rtp-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-rtsp-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-sdp-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-tag-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-video-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-plugins-bad-1.0 >= $GSTREAMER_REQUIRED_VERSION
gstreamer-plugins-base-1.0 >= $GSTREAMER_REQUIRED_VERSION
)
gstreamer_prefix=`pkg-config --variable=prefix gtk-sharp-3.0`
AC_SUBST(gstreamer_prefix)
AC_SUBST(GST_LIBS)
AC_SUBST(GST_CFLAGS)
GST_INCLUDEDIR=`pkg-config gstreamer-1.0 --variable=includedir`
AC_SUBST(GST_INCLUDEDIR)
AC_CONFIG_FILES([
Makefile
sources/Makefile
samples/Makefile
sources/AssemblyInfo.cs
gstreamer-sharp-1.0.pc
doc/Makefile
])
AC_OUTPUT
echo ""
echo "Configuration summary"
echo "---------------------"
echo ""
echo " * Installation prefix: $prefix"
echo " * compiler: $CSC"
echo " * Documentation: ($MONODOC)"
echo ""

View file

@ -1,46 +0,0 @@
if ENABLE_MONODOC
TARGETS = $(ASSEMBLY_NAME)-docs.source $(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree
docsdir = $(prefix)/lib/monodoc/sources
docs_DATA = $(TARGETS)
else
TARGETS =
docsdir = $(datadir)
docs_DATA =
endif
ASSEMBLIES = $(top_srcdir)/out/$(ASSEMBLY_NAME).dll
UPDATE_ASSEMBLIES = $(addprefix -assembly:, $(ASSEMBLIES))
all: $(TARGETS)
update:
$(MONODOCER) $(UPDATE_ASSEMBLIES) -path:en
html: $(srcdir)/en/*/*.xml $(srcdir)/en/*.xml
$(MONODOCS2HTML) -source:$(srcdir)/en -dest:html
$(srcdir)/en/*/*.xml $(srcdir)/en/*.xml:
$(MONODOCER) $(UPDATE_ASSEMBLIES) -path:en
$(ASSEMBLY_NAME)-docs.source:
@echo "Generating $@"
@echo "<?xml version=\"1.0\"?>" > $@
@echo "<monodoc>" >> $@
@echo " <source provider=\"ecma\" basefile=\"$(ASSEMBLY_NAME)-docs\" path=\"classlib-$(ASSEMBLY_SHORTNAME)\"/>" >> $@
@echo "</monodoc>" >> $@
$(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree: $(srcdir)/en/*/*.xml $(srcdir)/en/*.xml
$(MDASSEMBLER) --ecma $(srcdir)/en -o $(ASSEMBLY_NAME)-docs
CLEANFILES = $(TARGETS)
NAMESPACES=$(ASSEMBLY_NAMESPACE) Gst.App Gst.Audio Gst.Base Gst.Controller Gst.FFT Gst.Net Gst.PbUtils Gst.Riff Gst.Rtp Gst.Rtsp Gst.Sdp Gst.Tags Gst.Video GtkSharp.GstreamerSharp
dist-hook:
mkdir -p $(distdir)/en
cp $(srcdir)/en/*.xml $(distdir)/en/
for i in $(NAMESPACES); do \
mkdir -p $(distdir)/en/$$i; \
cp $(srcdir)/en/$$i/*.xml $(distdir)/en/$$i; \
done

View file

@ -1,97 +0,0 @@
TARGETS = playback.exe video-overlay.exe basic-tutorial-1.exe basic-tutorial-2.exe basic-tutorial-3.exe basic-tutorial-4.exe basic-tutorial-5.exe basic-tutorial-6.exe basic-tutorial-7.exe basic-tutorial-8.exe basic-tutorial-9.exe basic-tutorial-12.exe basic-tutorial-13.exe playback-tutorial-1.exe playback-tutorial-2.exe playback-tutorial-3.exe playback-tutorial-4.exe playback-tutorial-5.exe playback-tutorial-6.exe playback-tutorial-7.exe example-volume.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
basic-tutorial-1.exe: $(srcdir)/BasicTutorial1.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-1.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial1.cs
basic-tutorial-2.exe: $(srcdir)/BasicTutorial2.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-2.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial2.cs
basic-tutorial-3.exe: $(srcdir)/BasicTutorial3.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-3.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial3.cs
basic-tutorial-4.exe: $(srcdir)/BasicTutorial4.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-4.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial4.cs
basic-tutorial-5.exe: $(srcdir)/BasicTutorial5.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-5.exe $(references) $(GTK_SHARP_LIBS) $(srcdir)/BasicTutorial5.cs
basic-tutorial-6.exe: $(srcdir)/BasicTutorial6.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-6.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial6.cs
basic-tutorial-7.exe: $(srcdir)/BasicTutorial7.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-7.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial7.cs
basic-tutorial-8.exe: $(srcdir)/BasicTutorial8.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-8.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial8.cs
basic-tutorial-9.exe: $(srcdir)/BasicTutorial9.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-9.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial9.cs
basic-tutorial-12.exe: $(srcdir)/BasicTutorial12.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-12.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial12.cs
basic-tutorial-13.exe: $(srcdir)/BasicTutorial13.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:basic-tutorial-13.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/BasicTutorial13.cs
example-volume.exe: $(srcdir)/ExampleVolume.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:example-volume.exe -unsafe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/ExampleVolume.cs
playback-tutorial-1.exe: $(srcdir)/PlaybackTutorial1.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:playback-tutorial-1.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/PlaybackTutorial1.cs
playback-tutorial-2.exe: $(srcdir)/PlaybackTutorial2.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:playback-tutorial-2.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/PlaybackTutorial2.cs
playback-tutorial-3.exe: $(srcdir)/PlaybackTutorial3.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:playback-tutorial-3.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/PlaybackTutorial3.cs
playback-tutorial-4.exe: $(srcdir)/PlaybackTutorial4.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:playback-tutorial-4.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/PlaybackTutorial4.cs
playback-tutorial-5.exe: $(srcdir)/PlaybackTutorial5.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:playback-tutorial-5.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/PlaybackTutorial5.cs
playback-tutorial-6.exe: $(srcdir)/PlaybackTutorial6.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:playback-tutorial-6.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/PlaybackTutorial6.cs
playback-tutorial-7.exe: $(srcdir)/PlaybackTutorial7.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:playback-tutorial-7.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/PlaybackTutorial7.cs
EXTRA_DIST = \
Playback.cs \
VideoOverlay.cs \
BasicTutorial1.cs \
BasicTutorial2.cs \
BasicTutorial3.cs \
BasicTutorial4.cs \
BasicTutorial5.cs \
BasicTutorial6.cs \
BasicTutorial7.cs \
BasicTutorial8.cs \
BasicTutorial9.cs \
BasicTutorial12.cs \
BasicTutorial13.cs \
ExampleVolume.cs \
PlaybackTutorial1.cs \
PlaybackTutorial2.cs \
PlaybackTutorial3.cs \
PlaybackTutorial4.cs \
PlaybackTutorial5.cs \
PlaybackTutorial6.cs \
PlaybackTutorial7.cs

View file

@ -1,93 +0,0 @@
RAW_API = $(ASSEMBLY_NAME)-api.raw
API = $(ASSEMBLY_NAME)-api.xml
METADATA = $(ASSEMBLY_NAME).metadata
DLL = ../out/$(ASSEMBLY_NAME).dll
DLLMAP = ../out/$(ASSEMBLY_NAME).dll.config
MDB = $(DLL).mdb
GLUEDIR = glue
KEYFILE = $(ASSEMBLY_NAME).snk
GLUEINCLUDES = gst/gst.h,gst/app/app.h,gst/audio/audio.h,gst/base/base.h,gst/controller/controller.h,gst/fft/fft.h,gst/net/net.h\,gst/pbutils/gstaudiovisualizer.h,gst/pbutils/pbutils.h,gst/rtp/rtp.h,gst/rtsp/rtsp.h,gst/sdp/sdp.h,gst/tag/tag.h,gst/video/video.h
COMMA =,
SPACE = $(eval)
glue_list = gst/gst.h$(addprefix $(COMMA), $(GLUEINCLUDES))
sources = \
Adapter.cs \
Application.cs \
AppSink.cs \
AppSrc.cs \
AudioFilter.cs \
Bin.cs \
Buffer.cs \
Bus.cs \
Caps.cs \
DeviceProvider.cs \
DynamicSignal.cs \
Element.cs \
FFTF32.cs \
Iterator.cs \
MapInfo.cs \
Message.cs \
MiniObject.cs \
NavigationAdapter.cs \
Object.cs \
Pad.cs \
Pipeline.cs \
TagList.cs \
Value.cs \
Version.cs \
VideoGLUploadMeta.cs
build_sources = AssemblyInfo.cs $(addprefix $(srcdir)/custom/, $(sources))
CLEANFILES = $(DLL) $(MDB) generated-stamp generated/*/*.cs $(API) $(KEYFILE)
DISTCLEANFILES = AssemblyInfo.cs $(DLLMAP) $(DLL)
MAINTAINERCLEANFILES = \
Makefile.in
noinst_DATA = $(DLL)
gapi_DATA = $(API)
EXTRA_DIST = \
$(RAW_API) \
$(addprefix $(srcdir)/custom/, $(sources)) \
$(METADATA) \
AssemblyInfo.cs.in \
gstreamer-sharp-api.xml
all: generated-stamp $(ASSEMBLY)
$(API): $(srcdir)/$(RAW_API) $(srcdir)/$(METADATA)
cp $(srcdir)/$(RAW_API) $(API)
chmod u+w $(API)
$(GAPI_FIXUP) --api=$(srcdir)/$(API) --metadata=$(srcdir)/$(METADATA)
generated-stamp: $(API)
rm -rf generated/* && \
$(GAPI_CODEGEN) --generate $(srcdir)/$(API) $(GLIB_SHARP_CFLAGS) $(GIO_SHARP_CFLAGS) \
--outdir=generated \
--glue-filename=$(GLUEDIR)/generated.c --gluelib-name=libgstreamersharpglue-1.0.0.dll \
--abi-includes=$(glue_list) \
--assembly-name=$(ASSEMBLY_NAME) && touch generated-stamp
$(KEYFILE): $(top_srcdir)/gstreamer-sharp.snk
cp $(top_srcdir)/gstreamer-sharp.snk .
$(DLL): $(build_sources) generated-stamp $(KEYFILE)
test -d ../out || mkdir ../out
$(CSC) -debug -nowarn:169 -nowarn:108 -nowarn:114 -unsafe -target:library $(GLIB_SHARP_LIBS) $(GIO_SHARP_LIBS) \
$(build_sources) generated/*/*.cs -out:$(DLL)
install-data-local:
echo "$(GACUTIL) /i $(DLL) /f $(GACUTIL_FLAGS)"; \
$(GACUTIL) /i $(DLL) /f $(GACUTIL_FLAGS) || exit 1;
uninstall-local:
echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1;
clean-local:
rm -rf generated/*

View file

@ -59,6 +59,6 @@ else
endif
configure_file(
input: '../out/gstreamer-sharp.dll.config',
input: 'gstreamer-sharp.dll.config',
output: 'gstreamer-sharp.dll.config',
configuration: configuration_data())