Skip to content

Commit 3c3586f

Browse files
committed
Code Cleanup
1 parent 16e5b7f commit 3c3586f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ source /dev/stdin <<< "$(curl -s https://raw.githubusercontent.com/pytgcalls/bui
33
require rust
44
require venv
55

6+
import patch-mesa.sh
67
import libraries.properties
78
import libraries.properties from "github.com/pytgcalls/libx11"
89
import mako from python3
@@ -36,8 +37,7 @@ build_and_install "libva" meson
3637
build_and_install "libpciaccess" meson
3738

3839
build_and_install "drm" meson-static -Dintel=enabled
39-
build_and_install "mesa" meson-static \
40-
--setup-commands="find src -type f -name 'meson.build' ! -path 'src/nouveau/*' -exec sed -i 's/shared_library/library/g' {} +"
40+
build_and_install "mesa" meson-static --setup-commands="patch_mesa"
4141

4242
copy_libs "drm" "artifacts"
4343
copy_libs "mesa" "artifacts" "gbm"

patch-mesa.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function patch_mesa() {
2+
find src -type f -name 'meson.build' ! -path 'src/nouveau/*' -exec sed -i 's/shared_library/library/g' {} +
3+
}

0 commit comments

Comments
 (0)