2015-02-13 02:04:28 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ! -d ext-src/cppunit ]; then
|
|
|
|
echo "Please call from root folder of project"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
pushd ext-src/cppunit
|
|
|
|
./autogen.sh
|
2015-02-13 23:36:52 +01:00
|
|
|
CWD=$(pwd)
|
|
|
|
if [ -f Makefile ]; then
|
|
|
|
make distclean
|
|
|
|
fi
|
|
|
|
./configure LD=clang LDFLAGS="-stdlib=libc++" CXX=clang++ CC=clang CXXFLAGS="-stdlib=libc++" --prefix=$CWD/../../externals/cppunit
|
2015-02-13 02:04:28 +01:00
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|