CI: Add Meson build
This uses pip to install Meson in order to get a sufficiently new version. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
dfac945c23
commit
0f9f86f4a4
@ -11,11 +11,12 @@ before_script:
|
|||||||
- chmod +x /usr/sbin/policy-rc.d
|
- chmod +x /usr/sbin/policy-rc.d
|
||||||
- echo 'deb http://deb.debian.org/debian stretch-backports main' >> /etc/apt/sources.list
|
- echo 'deb http://deb.debian.org/debian stretch-backports main' >> /etc/apt/sources.list
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get -y --no-install-recommends install build-essential automake autoconf libtool pkg-config libexpat1-dev libffi-dev libxml2-dev libpixman-1-dev libpng-dev libjpeg-dev libcolord-dev mesa-common-dev libglu1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libwayland-dev libxcb1-dev libxcb-composite0-dev libxcb-xfixes0-dev libxcb-xkb-dev libx11-xcb-dev libx11-dev libudev-dev libgbm-dev libxkbcommon-dev libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev libxcursor-dev libmtdev-dev libpam0g-dev libvpx-dev libsystemd-dev libinput-dev libwebp-dev libjpeg-dev libva-dev liblcms2-dev git libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev freerdp2-dev
|
- apt-get -y --no-install-recommends install build-essential automake autoconf libtool pkg-config libexpat1-dev libffi-dev libxml2-dev libpixman-1-dev libpng-dev libjpeg-dev libcolord-dev mesa-common-dev libglu1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libwayland-dev libxcb1-dev libxcb-composite0-dev libxcb-xfixes0-dev libxcb-xkb-dev libx11-xcb-dev libx11-dev libudev-dev libgbm-dev libxkbcommon-dev libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev libxcursor-dev libmtdev-dev libpam0g-dev libvpx-dev libsystemd-dev libinput-dev libwebp-dev libjpeg-dev libva-dev liblcms2-dev git libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev freerdp2-dev curl python3-pip python3-setuptools ninja-build
|
||||||
|
- pip3 install --user meson
|
||||||
- mkdir -p /tmp/.X11-unix
|
- mkdir -p /tmp/.X11-unix
|
||||||
- chmod 777 /tmp/.X11-unix
|
- chmod 777 /tmp/.X11-unix
|
||||||
|
|
||||||
build-native:
|
build-native-autotools:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- git clone --depth=1 git://anongit.freedesktop.org/git/wayland/wayland-protocols
|
- git clone --depth=1 git://anongit.freedesktop.org/git/wayland/wayland-protocols
|
||||||
@ -48,3 +49,36 @@ build-native:
|
|||||||
- build-*/*.log
|
- build-*/*.log
|
||||||
- build-*/logs
|
- build-*/logs
|
||||||
- prefix-*
|
- prefix-*
|
||||||
|
|
||||||
|
build-native-meson:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- git clone --depth=1 git://anongit.freedesktop.org/git/wayland/wayland-protocols
|
||||||
|
- export WAYLAND_PROTOCOLS_DIR="$(pwd)/prefix-wayland-protocols"
|
||||||
|
- export PKG_CONFIG_PATH="$WAYLAND_PROTOCOLS_DIR/share/pkgconfig:$PKG_CONFIG_PATH"
|
||||||
|
- export MAKEFLAGS="-j4"
|
||||||
|
- cd wayland-protocols
|
||||||
|
- git show -s HEAD
|
||||||
|
- mkdir build
|
||||||
|
- cd build
|
||||||
|
- ../autogen.sh --prefix="$WAYLAND_PROTOCOLS_DIR"
|
||||||
|
- make install
|
||||||
|
- cd ../../
|
||||||
|
- export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
|
||||||
|
- export BUILD_ID="weston-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
|
||||||
|
- export PREFIX="$(pwd)/prefix-$BUILD_ID"
|
||||||
|
- export BUILDDIR="$(pwd)/build-$BUILD_ID"
|
||||||
|
- export PATH=~/.local/bin:$PATH
|
||||||
|
- mkdir "$BUILDDIR" "$PREFIX"
|
||||||
|
- cd "$BUILDDIR"
|
||||||
|
- meson --prefix="$PREFIX" -Dsimple-dmabuf-drm=intel ..
|
||||||
|
- ninja -k0
|
||||||
|
- ninja install
|
||||||
|
- ninja test
|
||||||
|
- ninja clean
|
||||||
|
artifacts:
|
||||||
|
name: weston-$CI_COMMIT_SHA-$CI_JOB_ID
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- build-meson/meson-logs
|
||||||
|
- prefix-*
|
||||||
|
Loading…
Reference in New Issue
Block a user