1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#! /bin/bash -e
if [[ $(uname) == Darwin ]]; then
#On Darwin build a Jack internal client
for f in $@; do
faust -i -a jack-internal.cpp $f -o $f.cpp || exit
${CXX=g++} ${CXXFLAGS=-O3} $FAUSTTOOLSFLAGS `pkg-config --cflags jack` $f.cpp -I/usr/local/include -L/usr/local/lib -ljackserver -fPIC -lOSCFaust -bundle -o ${f%.dsp}.so || exit
done
else
#On Linux build a Jack internal client
for f in $@; do
faust -i -a jack-internal.cpp $f -o $f.cpp || exit
${CXX=g++} ${CXXFLAGS=-O3} $FAUSTTOOLSFLAGS `pkg-config --cflags jack` $f.cpp -ljackserver -fPIC -shared -o ${f%.dsp}.so || exit
done
fi
echo ${f%.dsp}.so
|