Change gtk to use git, always pass --export-dynamic for glib

This commit is contained in:
Wildan M 2026-06-09 20:46:09 +07:00
parent 57aa833983
commit 112ff5f653
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
3 changed files with 21 additions and 14 deletions

View File

@ -1,8 +1,8 @@
#TODO promote #TODO promote
[source] [source]
tar = "https://download.gnome.org/sources/gtk+/3.24/gtk%2B-3.24.43.tar.xz" git = "https://gitlab.redox-os.org/redox-os/gtk"
blake3 = "5feab2bad81e6b5906895f70ddce6227cf96a6a14b16af0ef72c79991a48ddf4" branch = "redox-3.24.43"
patches = ["redox.patch"] shallow_clone = true
[build] [build]
dependencies = [ dependencies = [
@ -21,20 +21,21 @@ dependencies = [
"libffi", "libffi",
"libiconv", "libiconv",
"libjpeg", "libjpeg",
"liborbital",
"libpng", "libpng",
"libpthread-stubs", "libpthread-stubs",
"libwayland", "libwayland",
"libx11", # "libx11",
"libxau", # "libxau",
"libxkbcommon", "libxkbcommon",
"libxcb", # "libxcb",
"libxext", # "libxext",
"libxfixes", # "libxfixes",
"libxi", # "libxi",
"libxrandr", # "libxrandr",
"libxrender", # "libxrender",
"libxxf86vm", # "libxxf86vm",
"mesa-x11", "mesa",
"pango", "pango",
"pcre2", "pcre2",
"pixman", "pixman",
@ -49,6 +50,7 @@ DYNAMIC_INIT
CFLAGS="${CFLAGS} -DM_SQRT2=1.41421356237309504880" CFLAGS="${CFLAGS} -DM_SQRT2=1.41421356237309504880"
cookbook_meson \ cookbook_meson \
-Dexamples=false \ -Dexamples=false \
-Dx11_backend=false \
-Dintrospection=false \ -Dintrospection=false \
-Dtests=false -Dtests=false
""" """

View File

@ -24,3 +24,8 @@ cookbook_meson \
-Denable-wayland=false \ -Denable-wayland=false \
-Denable-x11=true -Denable-x11=true
""" """
[package]
dependencies = [
"xkeyboard-config"
]

View File

@ -34,7 +34,7 @@ function DYNAMIC_INIT {
) )
# TODO: check paths for spaces # TODO: check paths for spaces
export LDFLAGS="${USER_LDFLAGS}-Wl,-rpath-link,${COOKBOOK_SYSROOT}/lib -L${COOKBOOK_SYSROOT}/lib" export LDFLAGS="${USER_LDFLAGS}-Wl,-rpath-link,${COOKBOOK_SYSROOT}/lib -L${COOKBOOK_SYSROOT}/lib -Wl,--export-dynamic"
export RUSTFLAGS="-C target-feature=-crt-static -L native=${COOKBOOK_SYSROOT}/lib -C link-arg=-Wl,-rpath-link,${COOKBOOK_SYSROOT}/lib" export RUSTFLAGS="-C target-feature=-crt-static -L native=${COOKBOOK_SYSROOT}/lib -C link-arg=-Wl,-rpath-link,${COOKBOOK_SYSROOT}/lib"
export COOKBOOK_DYNAMIC=1 export COOKBOOK_DYNAMIC=1