mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-30 00:28:44 +08:00
31 lines
902 B
TOML
31 lines
902 B
TOML
#TODO maybe incomplete script
|
|
#TODO missing dependencies - https://github.com/ccache/ccache/blob/master/doc/INSTALL.md#dependencies
|
|
# build instructions - https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
|
|
[source]
|
|
tar = "https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2.tar.gz"
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"libfmt",
|
|
"xxhash",
|
|
"zstd",
|
|
]
|
|
script = """
|
|
COOKBOOK_CONFIGURE="cmake"
|
|
COOKBOOK_CONFIGURE_FLAGS=(
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DCMAKE_CROSSCOMPILING=True
|
|
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
|
-DCMAKE_INSTALL_PREFIX="/"
|
|
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
|
-DCMAKE_SYSTEM_NAME=Generic
|
|
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
|
-DCMAKE_VERBOSE_MAKEFILE=On
|
|
-D STATIC_LINK=ON
|
|
-D ENABLE_TESTING=OFF
|
|
-D REDIS_STORAGE_BACKEND=OFF
|
|
"${COOKBOOK_SOURCE}"
|
|
)
|
|
cookbook_configure
|
|
"""
|