mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 06:14:18 +08:00
Merge branch 'gobject' into 'master'
Port gobject introspection See merge request redox-os/redox!2173
This commit is contained in:
commit
471e5e3583
@ -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",
|
||||
]
|
||||
|
||||
@ -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"
|
||||
}
|
||||
"#;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user