Merge branch 'gobject' into 'master'

Port gobject introspection

See merge request redox-os/redox!2173
This commit is contained in:
Jeremy Soller 2026-05-31 13:55:20 -06:00
commit 471e5e3583
2 changed files with 16 additions and 6 deletions

View File

@ -5,14 +5,24 @@ blake3 = "e01a810629b11b2fa415ba47d2df3ba521286e9933f6c2b364e959c26401eb96"
[build]
template = "custom"
dependencies = [
"cairo",
"glib",
"target:glib",
"libffi",
"pcre2",
]
dev-dependencies = [
"python312",
"zlib",
"python312.dev",
"host:python312",
"host:python3-setuptools",
]
script = """
DYNAMIC_INIT
cookbook_meson -Dpython="${COOKBOOK_SYSROOT}/usr/bin/python3.12"
cookbook_meson -Dpython="python3.12" \
-Dbuild_introspection_data=false
sed -i "s|${COOKBOOK_TOOLCHAIN}||g" ${COOKBOOK_STAGE}/usr/bin/g-ir-annotation-tool
sed -i "s|${COOKBOOK_TOOLCHAIN}||g" ${COOKBOOK_STAGE}/usr/bin/g-ir-scanner
"""
[package]
dependencies = [
"python312",
]

View File

@ -354,7 +354,7 @@ function cookbook_python {
OS=$(echo "${TARGET}" | cut -d - -f3-4)
export PYTHONPYCACHEPREFIX="${COOKBOOK_BUILD}" _PYTHON_HOST_PLATFORM="$OS-$ARCH"
"${COOKBOOK_PYTHON}" -m pip install --prefix="${COOKBOOK_STAGE}/usr" "${COOKBOOK_SOURCE}" \
--ignore-installed --no-index --no-build-isolation "$@"
--ignore-installed --no-index "$@"
rsync -av "${COOKBOOK_BUILD}/${COOKBOOK_STAGE}/usr/" "${COOKBOOK_STAGE}/usr"
}
"#;