sfizz/.travis/script_mingw.sh

31 lines
1.2 KiB
Bash
Raw Normal View History

2020-03-08 22:47:26 +01:00
#!/bin/bash
set -ex
2020-03-10 20:08:38 +01:00
. .travis/docker_container.sh
2020-03-08 22:47:26 +01:00
# need to convert some includes to lower case (as of VST 3.7.1)
find vst/external/VST_SDK -type d -name source -exec \
find {} -type f -name '*.[hc]' -o -name '*.[hc]pp' -print0 \; | \
xargs -0 sed -i 's/<Windows.h>/<windows.h>/'
2020-03-08 22:47:26 +01:00
mkdir -p build/${INSTALL_DIR} && cd build
if [[ ${CROSS_COMPILE} == "mingw32" ]]; then
buildenv i686-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=Release \
-DENABLE_LTO=OFF \
-DSFIZZ_JACK=OFF \
-DSFIZZ_VST=ON \
2020-08-29 04:54:18 +02:00
-DSFIZZ_STATIC_DEPENDENCIES=ON \
-DCMAKE_CXX_STANDARD=17 \
..
2020-10-12 20:22:48 +02:00
buildenv make -j2
2020-03-08 22:47:26 +01:00
elif [[ ${CROSS_COMPILE} == "mingw64" ]]; then
buildenv x86_64-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=Release \
-DENABLE_LTO=OFF \
-DSFIZZ_JACK=OFF \
-DSFIZZ_VST=ON \
2020-08-29 04:54:18 +02:00
-DSFIZZ_STATIC_DEPENDENCIES=ON \
-DCMAKE_CXX_STANDARD=17 \
..
2020-10-12 20:22:48 +02:00
buildenv make -j2
2020-03-08 22:47:26 +01:00
fi