diff --git a/.travis.yml b/.travis.yml index b3ffeeb2c..317239b36 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,12 @@ language: cpp compiler: gcc +matrix: + include: + - env: TARGET_OS=win32 + - env: TARGET_OS=win64 before_install: - sh ${TRAVIS_BUILD_DIR}/.travis/${TRAVIS_OS_NAME}.${TARGET_OS}.before_install.sh install: - sh ${TRAVIS_BUILD_DIR}/.travis/${TRAVIS_OS_NAME}.${TARGET_OS}.install.sh -before_script: - - make features script: - sh ${TRAVIS_BUILD_DIR}/.travis/${TRAVIS_OS_NAME}.${TARGET_OS}.script.sh - - make EXPERIMENTAL_PLUGINS=true -j4 diff --git a/.travis/linux..before_install.sh b/.travis/linux..before_install.sh index 433b96426..7bdd3daaf 100644 --- a/.travis/linux..before_install.sh +++ b/.travis/linux..before_install.sh @@ -1,4 +1,4 @@ -sudo add-apt-repository ppa:kxstudio-debian/kxstudio -y; -sudo apt-get update -qq; +sudo add-apt-repository ppa:kxstudio-debian/kxstudio -y +sudo apt-get update -qq sudo apt-get install kxstudio-repos sudo apt-get update -qq diff --git a/.travis/linux..script.sh b/.travis/linux..script.sh index e69de29bb..0cf5d762e 100644 --- a/.travis/linux..script.sh +++ b/.travis/linux..script.sh @@ -0,0 +1,5 @@ +export PATH=/opt/kxstudio/bin:$PATH +export PKG_CONFIG_PATH=/opt/kxstudio/lib/pkgconfig:$PKG_CONFIG_PATH + +make features +make EXPERIMENTAL_PLUGINS=true -j4 diff --git a/.travis/linux.win32.before_install.sh b/.travis/linux.win32.before_install.sh new file mode 100644 index 000000000..73c14aedd --- /dev/null +++ b/.travis/linux.win32.before_install.sh @@ -0,0 +1,2 @@ +sudo add-apt-repository ppa:tobydox/mingw-x-precise -y +sudo apt-get update -qq diff --git a/.travis/linux.win32.install.sh b/.travis/linux.win32.install.sh new file mode 100644 index 000000000..81bc4fea7 --- /dev/null +++ b/.travis/linux.win32.install.sh @@ -0,0 +1,6 @@ +sudo apt-get install -y pkg-config \ + mingw32-x-gcc + +# mingw32-x-gcc mingw32-x-pkgconfig +# mingw32-x-liblo mingw32-x-fftw3 mingw32-x-mxml mingw32-x-zlib +# mingw32-x-fluidsynth mingw32-x-linuxsampler diff --git a/.travis/linux.win32.script.sh b/.travis/linux.win32.script.sh new file mode 100644 index 000000000..2e21faf5d --- /dev/null +++ b/.travis/linux.win32.script.sh @@ -0,0 +1,21 @@ +export PATH=/opt/mingw64/bin:/opt/mingw64/x86_64-w64-mingw32/bin:$PATH +export AR=x86_64-w64-mingw32-ar +export CC=x86_64-w64-mingw32-gcc +export CXX=x86_64-w64-mingw32-g++ +export MOC=x86_64-w64-mingw32-moc +export RCC=x86_64-w64-mingw32-rcc +export UIC=x86_64-w64-mingw32-uic +export STRIP=x86_64-w64-mingw32-strip +export WINDRES=x86_64-w64-mingw32-windres + +export PKGCONFIG=x86_64-w64-mingw32-pkg-config +export PKG_CONFIG_PATH=/opt/mingw64/lib/pkgconfig + +export CFLAGS="-DBUILDING_CARLA_FOR_WINDOWS -DPTW32_STATIC_LIB -I/opt/mingw64/include" +export CXXFLAGS="$CFLAGS -DFLUIDSYNTH_NOT_A_DLL" + +export WIN32=true +export WIN64=true + +make features +make -j4 diff --git a/.travis/linux.win64.before_install.sh b/.travis/linux.win64.before_install.sh new file mode 100644 index 000000000..a598ff1ca --- /dev/null +++ b/.travis/linux.win64.before_install.sh @@ -0,0 +1 @@ +sh .travis/linux.win32.before_install.sh diff --git a/.travis/linux.win64.install.sh b/.travis/linux.win64.install.sh new file mode 100644 index 000000000..fe4cc4580 --- /dev/null +++ b/.travis/linux.win64.install.sh @@ -0,0 +1,6 @@ +sudo apt-get install -y pkg-config \ + mingw64-x-gcc + +# mingw64-x-gcc mingw64-x-pkgconfig +# mingw64-x-liblo mingw64-x-fftw3 mingw64-x-mxml mingw64-x-zlib +# mingw64-x-fluidsynth mingw64-x-linuxsampler diff --git a/.travis/linux.win64.script.sh b/.travis/linux.win64.script.sh new file mode 100644 index 000000000..518ca6b19 --- /dev/null +++ b/.travis/linux.win64.script.sh @@ -0,0 +1,20 @@ +export PATH=/opt/mingw32/bin:/opt/mingw32/i686-w64-mingw32/bin:$PATH +export AR=i686-w64-mingw32-ar +export CC=i686-w64-mingw32-gcc +export CXX=i686-w64-mingw32-g++ +export MOC=i686-w64-mingw32-moc +export RCC=i686-w64-mingw32-rcc +export UIC=i686-w64-mingw32-uic +export STRIP=i686-w64-mingw32-strip +export WINDRES=i686-w64-mingw32-windres + +export PKGCONFIG=i686-w64-mingw32-pkg-config +export PKG_CONFIG_PATH=/opt/mingw32/lib/pkgconfig + +export CFLAGS="-DBUILDING_CARLA_FOR_WINDOWS -DPTW32_STATIC_LIB -I/opt/mingw32/include" +export CXXFLAGS="$CFLAGS -DFLUIDSYNTH_NOT_A_DLL" + +export WIN32=true + +make features +make -j4