glfw/glfw@5595fa3ae6 implements a proper fix for the macOS Mojave problem of OpenGL windows not being rendered until moved or manually updated. Pull in the current master and rebase the three patches we have on top: - two commits we have for reuse of the GLFW CMake build system for Wayland It hasn't yet to be acknowledged upstream. - one commit removing #include <windows.h> in glfw3native.h to avoid duplicate declarations. Fixes #655 and #665.
78 lines
2.3 KiB
YAML
78 lines
2.3 KiB
YAML
language: c
|
|
compiler: clang
|
|
branches:
|
|
only:
|
|
- ci
|
|
- master
|
|
sudo: false
|
|
dist: trusty
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- cmake
|
|
- libxrandr-dev
|
|
- libxinerama-dev
|
|
- libxcursor-dev
|
|
- libxi-dev
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
env:
|
|
- BUILD_SHARED_LIBS=ON
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
env:
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
sudo: required
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libwayland-dev
|
|
- libxkbcommon-dev
|
|
- libegl1-mesa-dev
|
|
env:
|
|
- USE_WAYLAND=ON
|
|
- BUILD_SHARED_LIBS=ON
|
|
- CFLAGS=-Werror
|
|
- os: linux
|
|
sudo: required
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libwayland-dev
|
|
- libxkbcommon-dev
|
|
- libegl1-mesa-dev
|
|
env:
|
|
- USE_WAYLAND=ON
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- CFLAGS=-Werror
|
|
- os: osx
|
|
env:
|
|
- BUILD_SHARED_LIBS=ON
|
|
- CFLAGS=-Werror
|
|
- os: osx
|
|
env:
|
|
- BUILD_SHARED_LIBS=OFF
|
|
- CFLAGS=-Werror
|
|
script:
|
|
- if grep -Inr '\s$' src include docs tests examples CMake *.md .gitattributes .gitignore; then echo Trailing whitespace found, aborting.; exit 1; fi
|
|
- mkdir build
|
|
- cd build
|
|
- if test -n "${USE_WAYLAND}";
|
|
then wget https://mirrors.kernel.org/ubuntu/pool/universe/e/extra-cmake-modules/extra-cmake-modules_5.38.0a-0ubuntu1_amd64.deb;
|
|
sudo dpkg -i extra-cmake-modules_5.38.0a-0ubuntu1_amd64.deb;
|
|
git clone git://anongit.freedesktop.org/wayland/wayland-protocols;
|
|
pushd wayland-protocols;
|
|
git checkout 1.15 && ./autogen.sh --prefix=/usr && make && sudo make install;
|
|
popd;
|
|
fi
|
|
- cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DGLFW_USE_WAYLAND=${USE_WAYLAND} ..
|
|
- cmake --build .
|
|
notifications:
|
|
email:
|
|
recipients:
|
|
- ci@glfw.org
|
|
on_success: never
|
|
on_failure: always
|