]> git.sesse.net Git - mlt/blob - src/swig/php/build
Further integrate swig into build system.
[mlt] / src / swig / php / build
1 #!/bin/sh
2
3 if [ "$1" = "clean" ]
4 then
5         ( cd `dirname $0`; rm -f *.cpp *.so mlt.i ../.php mlt.php *.h )
6         exit 0
7 fi
8
9
10 ln -sf ../mlt.i
11 swig -c++ -I../../mlt++ -I../.. -php5 -noproxy mlt.i
12 g++ -fPIC -DPIC -D_GNU_SOURCE -c -rdynamic -pthread -I../.. `php-config --includes` mlt_wrap.cpp
13 gcc -shared mlt_wrap.o -L../../mlt++ -lmlt++ -o mlt.so || exit $?