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.
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
if [ "${cmake_command}" == "" ]; then
|
|
|
|
|
if [ "$APPVEYOR" != "" ]; then
|
|
|
|
|
if [ "$PLATFORM" == "x64" ]; then
|
|
|
|
|
mingw="mingw64"
|
|
|
|
|
else
|
|
|
|
|
mingw="mingw32"
|
|
|
|
|
fi
|
|
|
|
|
cmake_command="cmake -G\"MSYS Makefiles\" -DCMAKE_INSTALL_PREFIX=/${mingw} -DENABLE_TESTING=1 -DCMAKE_CXX_FLAGS=-Werror .."
|
|
|
|
|
else
|
|
|
|
|
cmake_command="cmake -DENABLE_TESTING=1 -DCMAKE_CXX_FLAGS=-Werror .."
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "${make_command}" == "" ]; then
|
|
|
|
|
make_command="make -j 2"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cd jucipp || (echo "Can't cd into jucipp"; return 1)
|
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
mkdir -p build && cd build || (echo "Error making build directory"; return 1)
|
|
|
|
|
sh -c "${cmake_command}" || (echo "Cmake configuration failed"; return 1)
|
|
|
|
|
exec sh -c "${make_command}"
|