Revert "feat(mesa): dynamic"

This reverts commit c284034cff0dcefd7fc8ac2983e231ec4c23af5c.
This commit is contained in:
Anhad Singh 2025-01-13 13:49:55 +11:00
parent 75e944f6a5
commit 80c7e5a438

View File

@ -11,13 +11,12 @@ dependencies = [
"zlib",
]
script = """
DYNAMIC_INIT
#TODO: do this in cook instead
unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP
export CFLAGS="-I${COOKBOOK_SYSROOT}/include -DHAVE_PTHREAD=1"
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include -DHAVE_PTHREAD=1"
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib"
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib --static"
export LLVM_CONFIG="${TARGET}-llvm-config"
# TODO: Fix this annoying shite
@ -47,23 +46,18 @@ meson "${COOKBOOK_SOURCE}" . \
--cross-file cross_file.txt \
--buildtype release \
--strip \
-Ddefault_library=shared \
-Ddefault_library=static \
-Dglx=disabled \
-Dllvm=enabled \
-Dshared-llvm=enabled \
-Dosmesa=true \
-Dplatforms= \
-Dshader-cache=disabled \
-Dshared-llvm=disabled \
-Dshared-glapi=disabled
ninja -j${COOKBOOK_MAKE_JOBS}
ninja -v
DESTDIR="${COOKBOOK_STAGE}" ninja install
# Hack to add LLVM libs
#TODO: only add necessary LLVM libs, not all of them
sed -i "s/ -lOSMesa / -lOSMesa $("${TARGET}-llvm-config" --libs) -lstdc++ /" "${COOKBOOK_STAGE}/lib/pkgconfig/osmesa.pc"
"""
[package]
dependencies = [
"libgcc",
"zlib",
"llvm18",
"expat"
]