Use wine paths by default even if non-existent
[carla.git] / .travis / script-win64.sh
blob6e2754cbf00e1c38778fb78954079710c0c8d907
1 #!/bin/bash
3 set -e
5 # Preparation
6 _FLAGS="-DFLUIDSYNTH_NOT_A_DLL -DPTW32_STATIC_LIB -Werror -DBUILDING_FOR_CI"
7 _PREFIX=x86_64-w64-mingw32
8 export AR=${_PREFIX}-ar
9 export CC=${_PREFIX}-gcc
10 export CXX=${_PREFIX}-g++
11 export CFLAGS="${_FLAGS}"
12 export CXXFLAGS="${_FLAGS}"
13 export PATH=/opt/mingw64/${_PREFIX}/bin:/opt/mingw64/bin:${PATH}
14 export PKG_CONFIG_PATH=/opt/mingw64/lib/pkgconfig:${PKG_CONFIG_PATH}
15 export CROSS_COMPILING=true
17 MAKE_ARGS="BUILDING_FOR_WINDOWS=true CROSS_COMPILING=true USING_JUCE=false USING_JUCE_AUDIO_DEVICES=false"
18 MAKE_ARGS="${MAKE_ARGS} HAVE_FLUIDSYNTH=false HAVE_LIBLO=false HAVE_QT5=false HAVE_SNDFILE=false NEEDS_WINE=false"
20 # Start clean
21 make distclean >/dev/null
23 # Print available features
24 make ${MAKE_ARGS} features
26 # Build native stuff
27 make ${MAKE_ARGS}