mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-11-05 04:06:38 +08:00
Merge branch 'cosmic-shared' into 'master'
Improve dynamically linked cosmic apps See merge request redox-os/redox!2318
This commit is contained in:
commit
1fb8aefb0b
@ -4,12 +4,11 @@ git = "https://github.com/pop-os/cosmic-edit.git"
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"gettext",
|
||||
"libxkbcommon",
|
||||
"libonig",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
export GETTEXT_DIR="${COOKBOOK_SYSROOT}/usr"
|
||||
export RUSTONIG_DYNAMIC_LIBONIG=1
|
||||
cookbook_cargo --no-default-features
|
||||
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/ui/apps"
|
||||
@ -23,3 +22,8 @@ cp -v "${COOKBOOK_SOURCE}/res/${APPID}.metainfo.xml" "${COOKBOOK_STAGE}/usr/shar
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
cp -rv "${COOKBOOK_SOURCE}/res/icons/hicolor/" "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [
|
||||
"libxkbcommon",
|
||||
]
|
||||
@ -4,12 +4,11 @@ git = "https://github.com/pop-os/cosmic-files.git"
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"gettext",
|
||||
"libxkbcommon",
|
||||
"zstd",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
export GETTEXT_DIR="${COOKBOOK_SYSROOT}/usr"
|
||||
export ZSTD_SYS_USE_PKG_CONFIG=1
|
||||
cookbook_cargo --no-default-features
|
||||
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/ui/apps/"
|
||||
@ -23,3 +22,8 @@ cp -v "${COOKBOOK_SOURCE}/res/${APPID}.metainfo.xml" "${COOKBOOK_STAGE}/usr/shar
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
cp -rv "${COOKBOOK_SOURCE}/res/icons/hicolor/" "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [
|
||||
"libxkbcommon",
|
||||
]
|
||||
|
||||
@ -6,7 +6,6 @@ rev = "epoch-1.2.0"
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"gettext",
|
||||
"libxkbcommon",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
@ -22,3 +21,8 @@ cp -v "${COOKBOOK_SOURCE}/res/${APPID}.metainfo.xml" "${COOKBOOK_STAGE}/usr/shar
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
cp -rv "${COOKBOOK_SOURCE}/res/icons/hicolor/" "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [
|
||||
"libxkbcommon",
|
||||
]
|
||||
|
||||
@ -36,3 +36,8 @@ cp -v "${COOKBOOK_SOURCE}/res/${APPID}.thumbnailer" "${COOKBOOK_STAGE}/usr/share
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
cp -rv "${COOKBOOK_SOURCE}/res/icons/hicolor/" "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [
|
||||
"libxkbcommon",
|
||||
]
|
||||
|
||||
@ -4,16 +4,9 @@ branch = "master"
|
||||
shallow_clone = true
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"gettext",
|
||||
"libxkbcommon",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
export GETTEXT_DIR="${COOKBOOK_SYSROOT}/usr"
|
||||
(COOKBOOK_SOURCE+="/cosmic-settings" cookbook_cargo --no-default-features \
|
||||
--config 'patch.crates-io.rustix.git = "https://github.com/bytecodealliance/rustix"' \
|
||||
--config 'patch.crates-io.rustix.rev = "8bf15a0"')
|
||||
COOKBOOK_SOURCE+="/cosmic-settings" cookbook_cargo --no-default-features
|
||||
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/bin/"
|
||||
cp -v "target/${TARGET}/release/cosmic-settings" "${COOKBOOK_STAGE}/usr/bin/"
|
||||
@ -28,3 +21,8 @@ cp -rv "${COOKBOOK_SOURCE}/resources/default_schema/" "${COOKBOOK_STAGE}/usr/sha
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
cp -rv "${COOKBOOK_SOURCE}/resources/icons/" "${COOKBOOK_STAGE}/usr/share/icons/hicolor/"
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [
|
||||
"libxkbcommon",
|
||||
]
|
||||
|
||||
@ -5,7 +5,6 @@ shallow_clone = true
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"gettext",
|
||||
"libxkbcommon",
|
||||
"openssl3",
|
||||
]
|
||||
script = """
|
||||
@ -23,3 +22,8 @@ cp -v "${COOKBOOK_SOURCE}/res/${APPID}.metainfo.xml" "${COOKBOOK_STAGE}/usr/shar
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
cp -rv "${COOKBOOK_SOURCE}/res/icons/hicolor/" "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [
|
||||
"libxkbcommon",
|
||||
]
|
||||
|
||||
@ -3,13 +3,8 @@ git = "https://github.com/pop-os/cosmic-term.git"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"gettext",
|
||||
"libxkbcommon",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
export GETTEXT_DIR="${COOKBOOK_SYSROOT}/usr"
|
||||
cookbook_cargo --no-default-features
|
||||
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/ui/apps"
|
||||
@ -23,3 +18,8 @@ cp -v "${COOKBOOK_SOURCE}/res/${APPID}.metainfo.xml" "${COOKBOOK_STAGE}/usr/shar
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
cp -rv "${COOKBOOK_SOURCE}/res/icons/hicolor/" "${COOKBOOK_STAGE}/usr/share/icons/"
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [
|
||||
"libxkbcommon",
|
||||
]
|
||||
|
||||
@ -4,8 +4,17 @@ branch = "main"
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
dependencies = [
|
||||
"libonig",
|
||||
]
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
export RUSTONIG_DYNAMIC_LIBONIG=1
|
||||
COOKBOOK_CARGO_FLAGS=() # remove --locked
|
||||
COOKBOOK_CARGO_PATH=examples/editor cookbook_cargo_build
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [
|
||||
"libxkbcommon",
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user