5 ( cd `dirname $0`; rm -rf *.cxx *.snk *.so *.o *.exe *.dll mlt.i ../.cs src_swig )
9 path=`which mcs 2> /dev/null`
17 swig -c++ -I../../mlt++ -I../.. -csharp -dllimport libmltsharp -outdir src_swig -namespace Mlt mlt.i || exit $?
20 g++ -fPIC -D_GNU_SOURCE ${CXXFLAGS} -c -rdynamic -pthread -I../.. mlt_wrap.cxx || exit $?
23 g++ ${CXXFLAGS} -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o libmltsharp.so || exit $?
25 # Compile the library assembly
26 mcs -out:mlt-sharp.dll -target:library src_swig/*.cs
27 # uncomment the below if you want to sign the assembly
29 # mcs -out:mlt-sharp.dll -target:library -keyfile:mlt-sharp.snk src_swig/*.cs
32 mcs -r:mlt-sharp.dll play.cs
35 echo Mono C# compiler not installed.