Debian Codegraph @

.gitlab-ci/container/build-wayland.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 # shellcheck disable=SC2086 # we want word splitting
3
4 set -uex
5
6 section_start wayland "Building Wayland"
7
8 # When changing this file, you need to bump the following
9 # .gitlab-ci/image-tags.yml tags:
10 # ALPINE_X86_64_BUILD_TAG
11 # FEDORA_X86_64_BUILD_TAG
12
13 export LIBWAYLAND_VERSION="1.24.0"
14 export WAYLAND_PROTOCOLS_VERSION="1.41"
15
16 gitscip-shell system . . git. clone https://gitlab.freedesktop.org/wayland/wayland
17 cd wayland
18 gitscip-shell system . . git. checkout "$LIBWAYLAND_VERSION"
19
20 # Build the native library and scanner first in case we're a cross build.
21 # Note the lack of EXTRA_MESON_ARGS here.
22 mesonscip-shell system . . meson. setup -Dtests=false -Ddocumentation=false -Ddtd_validation=false -Dlibraries=true -Dscanner=true _build
23 mesonscip-shell system . . meson. install -C _build
24
25 # Now build cross libwayland using the native scanner
26 mesonscip-shell system . . meson. setup -Dtests=false -Ddocumentation=false -Ddtd_validation=false -Dlibraries=true -Dscanner=false _cross ${EXTRA_MESON_ARGS:-}
27 mesonscip-shell system . . meson. install -C _cross
28 cd ..
29 rmscip-shell system . . rm. -rf wayland
30
31 gitscip-shell system . . git. clone https://gitlab.freedesktop.org/wayland/wayland-protocols
32 cd wayland-protocols
33 gitscip-shell system . . git. checkout "$WAYLAND_PROTOCOLS_VERSION"
34 mesonscip-shell system . . meson. setup -Dtests=false _build ${EXTRA_MESON_ARGS:-}
35 mesonscip-shell system . . meson. install -C _build
36 cd ..
37 rmscip-shell system . . rm. -rf wayland-protocols
38
39 section_end wayland