@@ -0,0 +1,39 @@ | |||||
language: cpp | |||||
os: linux | |||||
dist: bionic | |||||
jobs: | |||||
include: | |||||
# linux native build | |||||
- os: linux | |||||
compiler: gcc | |||||
env: | |||||
- TARGET="linux" | |||||
# linux with win32 cross-compilation | |||||
- os: linux | |||||
compiler: gcc | |||||
env: | |||||
- TARGET="win32" | |||||
# linux with win64 cross-compilation | |||||
- os: linux | |||||
compiler: gcc | |||||
env: | |||||
- TARGET="win64" | |||||
before_install: | |||||
- bash ${TRAVIS_BUILD_DIR}/.travis/before_install.sh | |||||
install: | |||||
- bash ${TRAVIS_BUILD_DIR}/.travis/install.sh | |||||
script: | |||||
- bash ${TRAVIS_BUILD_DIR}/bootstrap.sh ${TARGET} | |||||
- bash ${TRAVIS_BUILD_DIR}/build.sh ${TARGET} ${PLUGINS} | |||||
#notifications: | |||||
#email: true | |||||
#irc: "ircs://chat.freenode.net:7070/#kxstudio" |
@@ -0,0 +1,10 @@ | |||||
#!/bin/bash | |||||
set -e | |||||
sudo add-apt-repository -y ppa:kxstudio-debian/kxstudio | |||||
sudo add-apt-repository -y ppa:kxstudio-debian/toolchain | |||||
sudo apt-get update -qq | |||||
sudo apt-get install kxstudio-repos | |||||
sudo apt-get update -qq |
@@ -0,0 +1,17 @@ | |||||
#!/bin/bash | |||||
set -e | |||||
# common | |||||
sudo apt-get install -y build-essential meson | |||||
if [ "${TARGET}" = "linux" ]; then | |||||
sudo apt-get install -y pkg-config libfreetype6-dev libx11-dev libxcomposite-dev libxrender-dev libxcursor-dev libasound2-dev libgl1-mesa-dev libglu1-mesa-dev | |||||
elif [ "${TARGET}" = "win32" ]; then | |||||
sudo apt-get install -y mingw-w64 binutils-mingw-w64-i686 g++-mingw-w64-i686 wine32-development-tools | |||||
elif [ "${TARGET}" = "win64" ]; then | |||||
sudo apt-get install -y mingw-w64 binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 wine64-development-tools | |||||
fi |
@@ -0,0 +1,16 @@ | |||||
#!/bin/bash | |||||
set -e | |||||
export DESTDIR=/tmp/distrho-ports | |||||
if [ "${TARGET}" = "win32" ]; then | |||||
EXTRA_ARGS="--cross-file scripts/meson/win32.ini" | |||||
elif [ "${TARGET}" = "win64" ]; then | |||||
EXTRA_ARGS="--cross-file scripts/meson/win64.ini" | |||||
fi | |||||
echo "meson build --buildtype release ${EXTRA_ARGS}" | |||||
meson build --buildtype release ${EXTRA_ARGS} | |||||
ninja -v -C build | |||||
ninja -C build install |