-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild-mesa
More file actions
executable file
·48 lines (39 loc) · 930 Bytes
/
build-mesa
File metadata and controls
executable file
·48 lines (39 loc) · 930 Bytes
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
#!/bin/bash -e
#
# Mesa
# https://gitlab.freedesktop.org/mesa/mesa.git
#
# Homebrew dependencies:
# libclc spirv-llvm-translator
#
cd "$(dirname "$0")"
set -a; . .env; set +a
pkgname="mesa"
pkgdir="${STOWDIR}/${pkgname}"
srcdir="src/mesa"
builddir="${TMPDIR:-/tmp}/build.${pkgname}"
echo "::group::$0"
rm -rf "${builddir}"
meson setup "${builddir}" "${srcdir}" \
--prefix="${pkgdir}" \
--native-file=meson/native/llvm.ini \
-Dwrap_mode=nodownload \
-Dbuildtype=release \
-Dplatforms=macos \
-Dvulkan-drivers=kosmickrisp \
-Dvulkan-icd-dir="${pkgdir}/etc/vulkan/icd.d" \
-Dgallium-drivers=[] \
-Dvideo-codecs=all \
-Dopengl=false \
-Dgles1=disabled \
-Dgles2=disabled \
-Dglx=disabled \
-Dxmlconfig=disabled \
-Dzstd=disabled \
"$@"
meson compile -C "${builddir}"
rm -rf "${pkgdir}"
meson install -C "${builddir}"
stow -Rd "${STOWDIR}" "${pkgname}"
rm -rf "${builddir}"
echo "::endgroup::"