Enable gtk3 x11 again

This commit is contained in:
Wildan M 2026-06-11 17:18:53 +07:00
parent 112ff5f653
commit 3a9b48db9c
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
8 changed files with 30 additions and 85 deletions

View File

@ -5,30 +5,24 @@ patches = ["redox.patch"]
[build]
dependencies = [
"expat",
"freetype2",
"fontconfig",
"gettext",
"fontconfig",
"freetype2",
"glib",
"libffi",
"libiconv",
"libpng",
"libpthread-stubs",
"libpng",
"libx11",
"libxau",
"libxcb",
"libxext",
"pcre2",
"pixman",
"x11proto",
"zlib",
"libxrender",
"pixman",
]
dev-dependencies = [
# xext and xrender is required by pkg-config, don't move them here
]
template = "custom"
script = """
DYNAMIC_INIT
#TODO: fix mutex implementation
#TODO: why are math defines missing?
CFLAGS="${CFLAGS} -DCAIRO_NO_MUTEX=1 -DM_SQRT2=1.41421356237309504880 -DM_LN2=0.69314718055994530942"
CFLAGS="${CFLAGS} -DM_SQRT2=1.41421356237309504880 -DM_LN2=0.69314718055994530942"
cookbook_meson \
-Dxlib-xcb=enabled \
-Dtests=disabled

View File

@ -6,30 +6,14 @@ patches = ["redox.patch"]
[build]
dependencies = [
"cairo",
"expat",
"fontconfig",
"freetype2",
"fribidi",
"gettext",
"glib",
"harfbuzz",
"libffi",
"libiconv",
"libpng",
"libpthread-stubs",
"libx11",
"libxau",
"libxcb",
"libxext",
"libxft",
"libxrender",
"pcre",
"pcre2",
"pixman",
"x11proto",
"xcb-proto",
"xextproto",
"zlib",
# "libx11",
# "libxft",
# "libxrender",
]
template = "custom"
script = """

View File

@ -23,25 +23,17 @@ dependencies = [
"libjpeg",
"liborbital",
"libpng",
"libpthread-stubs",
"libwayland",
# "libx11",
# "libxau",
"libxfixes",
"libxkbcommon",
# "libxcb",
# "libxext",
# "libxfixes",
# "libxi",
# "libxrandr",
# "libxrender",
# "libxxf86vm",
"libxi",
"libxrandr",
"libx11",
"libwayland",
"mesa",
"pango",
"pcre2",
"pixman",
"shared-mime-info",
"wayland-protocols",
"x11proto",
"zlib",
]
template = "custom"
@ -50,7 +42,6 @@ DYNAMIC_INIT
CFLAGS="${CFLAGS} -DM_SQRT2=1.41421356237309504880"
cookbook_meson \
-Dexamples=false \
-Dx11_backend=false \
-Dintrospection=false \
-Dtests=false
"""

View File

@ -4,23 +4,14 @@ blake3 = "0ccee9635115fe417cfc4bc33ffd160bf1e2852bd6c03816b4af771d59462f53"
patches = ["redox.patch"]
[build]
template = "custom"
dependencies = [
"libpthread-stubs",
template = "meson"
dev-dependencies = [
"libx11",
"libxau",
"libxcb",
"libxext",
"libxfixes",
"libxxf86vm",
"mesa",
"x11proto",
"zlib",
]
script = """
DYNAMIC_INIT
cookbook_meson \
-Degl=yes \
-Dglx=no \
-Dtests=false
"""
mesonflags = [
"-Degl=yes",
# we're forcing x11 backend via EGL
"-Dx11=true",
"-Dtests=false",
]

View File

@ -5,7 +5,7 @@ blake3 = "5657d84c78549f198f1335ec9d2f1de2b0ac2771fe081cbf00016370872c13f3"
patches = ["redox.patch"]
[build]
dependencies = [
dev-dependencies = [
"host:libicu"
]
template = "custom"
@ -28,5 +28,4 @@ if [ "$TARGET" = "$COOKBOOK_HOST_TARGET" ]; then
# this is not ideal, but there's no other better way
rsync -a ./ "${COOKBOOK_STAGE}/usr"
fi
"""

View File

@ -7,9 +7,10 @@ autotools_recursive_regenerate
[build]
dependencies = [
"libpthread-stubs",
"libxau",
"libxcb",
]
dev-dependencies = [
"libxau",
"x11proto",
"xtrans",
]

View File

@ -7,20 +7,9 @@ autotools_recursive_regenerate
[build]
dependencies = [
"expat",
"fontconfig",
"freetype2",
"libpng",
"libpthread-stubs",
"libx11",
"libxau",
"libxcb",
"libxrender",
"x11proto",
"zlib",
]
template = "custom"
script = """
DYNAMIC_INIT
cookbook_configure
"""
template = "configure"

View File

@ -7,11 +7,7 @@ autotools_recursive_regenerate
[build]
dependencies = [
"libpthread-stubs",
"libx11",
"libxau",
"libxcb",
"x11proto",
]
template = "custom"
script = """