1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
.build_template: &build_definition
script:
# Build gulkan
- mkdir deps
- cd deps
- git clone --depth 1 https://gitlab.freedesktop.org/xrdesktop/gulkan.git
- cd gulkan
- CC=clang meson build --prefix /usr
- ninja -C build install
- cd ..
# Build OpenXR loader
- git clone --depth 1 https://github.com/KhronosGroup/OpenXR-SDK-Source.git
- cd OpenXR-SDK-Source
- cmake . -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DDYNAMIC_LOADER=ON
- ninja -C . install
- cd ..
# OpenVR
- git clone --depth 1 https://github.com/ValveSoftware/openvr.git
- cd openvr
- cmake . -G Ninja -DBUILD_SHARED=1 -DCMAKE_INSTALL_PREFIX=/usr/
- ninja -C . install
- cd ..
# Build gxr
- cd ..
- CC=clang meson build --prefix /usr
- ninja -C build install
- meson test -C build/ --no-suite gxr:xr
build:arch:
image: archlinux/base:latest
before_script:
- pacman -Sy --noconfirm pkgconf meson git cmake clang # generic build deps
- pacman -Sy --noconfirm gdk-pixbuf2 vulkan-headers vulkan-icd-loader graphene cairo glslang # gulkan deps
- pacman -Sy --noconfirm gtk3 # gxr deps
<<: *build_definition
build:ubuntu19.10:
image: ubuntu:19.10
before_script:
- apt update
- apt -y install meson clang pkg-config cmake git # generic build deps
- apt -y install libglib2.0-dev libgdk-pixbuf2.0-dev libvulkan-dev libgraphene-1.0-dev libcairo2-dev glslang-tools # gulkan deps
- apt -y install libgtk-3-dev libjson-glib-dev # gxr deps
<<: *build_definition
build:ubuntu18.04:
image: ubuntu:18.04
before_script:
- apt update
- apt -y install software-properties-common
- add-apt-repository -y ppa:graphics-drivers/ppa # for glslang-tools
- apt -y full-upgrade
- apt -y install clang ninja-build pkg-config cmake git # generic build deps
- apt -y install libglib2.0-dev libgdk-pixbuf2.0-dev libvulkan-dev libgraphene-1.0-dev libcairo2-dev glslang-tools # gulkan deps
- apt -y install libgtk-3-dev libjson-glib-dev # gxr deps
- apt -y install python3-pip # to get recent meson on ubuntu 18.04
- pip3 install meson
<<: *build_definition
|