You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mltpp/swig/tcl/build

22 lines
436 B

#!/bin/sh
path=`which tclsh 2>/dev/null`
if [ "$path" != "" ]
then
ln -sf ../mltpp.i .
# Invoke swig
swig -c++ -I../../src `mlt-config --cflags` -tcl mltpp.i || exit 1
# Compile the wrapper
g++ -D_GNU_SOURCE -c -rdynamic -pthread -I../../src `mlt-config --cflags` mltpp_wrap.cxx || exit 1
# Create the module
ld -shared mltpp_wrap.o -L../../src -lmlt++ -o mltpp.so || exit 1
else
echo "Unable to locate tclsh."
exit 1
fi