1bf215546Sopenharmony_ci#!/bin/bash
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_ciset -e
4bf215546Sopenharmony_ciset -o xtrace
5bf215546Sopenharmony_ci
6bf215546Sopenharmony_ci
7bf215546Sopenharmony_ciEPHEMERAL="
8bf215546Sopenharmony_ci        autoconf
9bf215546Sopenharmony_ci        automake
10bf215546Sopenharmony_ci        bzip2
11bf215546Sopenharmony_ci        git
12bf215546Sopenharmony_ci        libtool
13bf215546Sopenharmony_ci        pkgconfig(epoxy)
14bf215546Sopenharmony_ci        pkgconfig(gbm)
15bf215546Sopenharmony_ci        unzip
16bf215546Sopenharmony_ci        wget
17bf215546Sopenharmony_ci        xz
18bf215546Sopenharmony_ci        "
19bf215546Sopenharmony_ci
20bf215546Sopenharmony_cidnf install -y --setopt=install_weak_deps=False \
21bf215546Sopenharmony_ci    bison \
22bf215546Sopenharmony_ci    ccache \
23bf215546Sopenharmony_ci    clang-devel \
24bf215546Sopenharmony_ci    flex \
25bf215546Sopenharmony_ci    gcc \
26bf215546Sopenharmony_ci    gcc-c++ \
27bf215546Sopenharmony_ci    gettext \
28bf215546Sopenharmony_ci    glslang \
29bf215546Sopenharmony_ci    kernel-headers \
30bf215546Sopenharmony_ci    llvm-devel \
31bf215546Sopenharmony_ci    clang-devel \
32bf215546Sopenharmony_ci    meson \
33bf215546Sopenharmony_ci    "pkgconfig(dri2proto)" \
34bf215546Sopenharmony_ci    "pkgconfig(expat)" \
35bf215546Sopenharmony_ci    "pkgconfig(glproto)" \
36bf215546Sopenharmony_ci    "pkgconfig(libclc)" \
37bf215546Sopenharmony_ci    "pkgconfig(libelf)" \
38bf215546Sopenharmony_ci    "pkgconfig(libglvnd)" \
39bf215546Sopenharmony_ci    "pkgconfig(libomxil-bellagio)" \
40bf215546Sopenharmony_ci    "pkgconfig(libselinux)" \
41bf215546Sopenharmony_ci    "pkgconfig(libva)" \
42bf215546Sopenharmony_ci    "pkgconfig(pciaccess)" \
43bf215546Sopenharmony_ci    "pkgconfig(vdpau)" \
44bf215546Sopenharmony_ci    "pkgconfig(vulkan)" \
45bf215546Sopenharmony_ci    "pkgconfig(x11)" \
46bf215546Sopenharmony_ci    "pkgconfig(x11-xcb)" \
47bf215546Sopenharmony_ci    "pkgconfig(xcb)" \
48bf215546Sopenharmony_ci    "pkgconfig(xcb-dri2)" \
49bf215546Sopenharmony_ci    "pkgconfig(xcb-dri3)" \
50bf215546Sopenharmony_ci    "pkgconfig(xcb-glx)" \
51bf215546Sopenharmony_ci    "pkgconfig(xcb-present)" \
52bf215546Sopenharmony_ci    "pkgconfig(xcb-randr)" \
53bf215546Sopenharmony_ci    "pkgconfig(xcb-sync)" \
54bf215546Sopenharmony_ci    "pkgconfig(xcb-xfixes)" \
55bf215546Sopenharmony_ci    "pkgconfig(xdamage)" \
56bf215546Sopenharmony_ci    "pkgconfig(xext)" \
57bf215546Sopenharmony_ci    "pkgconfig(xfixes)" \
58bf215546Sopenharmony_ci    "pkgconfig(xrandr)" \
59bf215546Sopenharmony_ci    "pkgconfig(xshmfence)" \
60bf215546Sopenharmony_ci    "pkgconfig(xxf86vm)" \
61bf215546Sopenharmony_ci    "pkgconfig(zlib)" \
62bf215546Sopenharmony_ci    python-unversioned-command \
63bf215546Sopenharmony_ci    python3-devel \
64bf215546Sopenharmony_ci    python3-mako \
65bf215546Sopenharmony_ci    python3-devel \
66bf215546Sopenharmony_ci    python3-mako \
67bf215546Sopenharmony_ci    vulkan-headers \
68bf215546Sopenharmony_ci    spirv-tools-devel \
69bf215546Sopenharmony_ci    spirv-llvm-translator-devel \
70bf215546Sopenharmony_ci    $EPHEMERAL
71bf215546Sopenharmony_ci
72bf215546Sopenharmony_ci
73bf215546Sopenharmony_ci. .gitlab-ci/container/container_pre_build.sh
74bf215546Sopenharmony_ci
75bf215546Sopenharmony_ci
76bf215546Sopenharmony_ci# dependencies where we want a specific version
77bf215546Sopenharmony_ciexport              XORG_RELEASES=https://xorg.freedesktop.org/releases/individual
78bf215546Sopenharmony_ci
79bf215546Sopenharmony_ciexport         XORGMACROS_VERSION=util-macros-1.19.0
80bf215546Sopenharmony_ci
81bf215546Sopenharmony_ciwget $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2
82bf215546Sopenharmony_citar -xvf $XORGMACROS_VERSION.tar.bz2 && rm $XORGMACROS_VERSION.tar.bz2
83bf215546Sopenharmony_cicd $XORGMACROS_VERSION; ./configure; make install; cd ..
84bf215546Sopenharmony_cirm -rf $XORGMACROS_VERSION
85bf215546Sopenharmony_ci
86bf215546Sopenharmony_ci. .gitlab-ci/container/build-libdrm.sh
87bf215546Sopenharmony_ci
88bf215546Sopenharmony_ci. .gitlab-ci/container/build-wayland.sh
89bf215546Sopenharmony_ci
90bf215546Sopenharmony_cipushd /usr/local
91bf215546Sopenharmony_cigit clone https://gitlab.freedesktop.org/mesa/shader-db.git --depth 1
92bf215546Sopenharmony_cirm -rf shader-db/.git
93bf215546Sopenharmony_cicd shader-db
94bf215546Sopenharmony_cimake
95bf215546Sopenharmony_cipopd
96bf215546Sopenharmony_ci
97bf215546Sopenharmony_ci
98bf215546Sopenharmony_ci############### Uninstall the build software
99bf215546Sopenharmony_ci
100bf215546Sopenharmony_cidnf remove -y $EPHEMERAL
101bf215546Sopenharmony_ci
102bf215546Sopenharmony_ci. .gitlab-ci/container/container_post_build.sh
103