4 Commits
2.8.4 ... 2.8.5

Author SHA1 Message Date
e9707563d7 Update LLVM to 17.0.5
All checks were successful
Builds / XTChain (push) Successful in 1h23m53s
2023-11-14 12:24:00 +01:00
11d0593c9e Add 'help' and 'xbuild' commands; fix 'version' command overriding build settings
All checks were successful
Builds / XTChain (push) Successful in 1h23m6s
2023-11-08 19:41:22 +01:00
22a5abd279 Update release badge color
All checks were successful
Builds / XTChain (push) Successful in 1h26m41s
2023-11-07 15:09:38 +01:00
8c047d6083 Add releases link to readme
All checks were successful
Builds / XTChain (push) Successful in 1h24m53s
2023-11-07 15:07:04 +01:00
3 changed files with 36 additions and 3 deletions

View File

@@ -5,6 +5,9 @@
<a href="https://git.codingworkshop.eu.org/xt-sys/xtchain/actions"> <a href="https://git.codingworkshop.eu.org/xt-sys/xtchain/actions">
<img alt="Build Status" src="https://codingworkshop.eu.org/actions.php?project=xt-sys/xtchain"> <img alt="Build Status" src="https://codingworkshop.eu.org/actions.php?project=xt-sys/xtchain">
</a> </a>
<a href="https://github.com/xt-sys/xtchain/releases">
<img alt="Releases" src="https://img.shields.io/github/v/release/xt-sys/xtchain?label=Release&amp;color=blueviolet">
</a>
<a href="https://git.codingworkshop.eu.org/xt-sys/xtchain/src/branch/master/COPYING.md"> <a href="https://git.codingworkshop.eu.org/xt-sys/xtchain/src/branch/master/COPYING.md">
<img alt="License" src="https://img.shields.io/badge/License-GPLv3-blue.svg"> <img alt="License" src="https://img.shields.io/badge/License-GPLv3-blue.svg">
</a> </a>

View File

@@ -28,7 +28,7 @@ CMAKEVCS="https://gitlab.kitware.com/cmake/cmake.git"
# LLVM Settings # LLVM Settings
LLVMDIR="${SRCDIR}/llvm" LLVMDIR="${SRCDIR}/llvm"
LLVMTAG="llvmorg-17.0.4" LLVMTAG="llvmorg-17.0.5"
LLVMVCS="https://github.com/llvm/llvm-project.git" LLVMVCS="https://github.com/llvm/llvm-project.git"
# Make Settings # Make Settings

View File

@@ -51,6 +51,19 @@ chbuild()
} }
export -f chbuild export -f chbuild
# Prints help
help()
{
version
echo "XTChain defines an internal list of commands:"
echo " * charch [arch] - sets the target CPU architecture [aarch64/armv7/i686/amd64]"
echo " * chbuild [type] - sets build type [debug/release]"
echo " * help - prints this message"
echo " * version - prints XTChain and its components version"
echo " * xbuild - builds an application with a Ninja build system"
}
export -f help
# Displays version banner # Displays version banner
version() version()
{ {
@@ -66,9 +79,26 @@ version()
echo "Wine Message Compiler Version: $(${XTCDIR}/bin/wmc -V | grep 'version' | cut -d' ' -f5)" echo "Wine Message Compiler Version: $(${XTCDIR}/bin/wmc -V | grep 'version' | cut -d' ' -f5)"
echo "Wine Resource Compiler Version: $(${XTCDIR}/bin/wrc --version | grep 'version' | cut -d' ' -f5)" echo "Wine Resource Compiler Version: $(${XTCDIR}/bin/wrc --version | grep 'version' | cut -d' ' -f5)"
echo echo
charch ${TARGET} charch ${TARGET:-amd64}
chbuild DEBUG chbuild ${BUILD_TYPE:-DEBUG}
echo echo
echo echo
} }
export -f version export -f version
# Builds application (wrapper to Ninja)
xbuild()
{
if [ ! -f build.arch ]; then
ninja "$@"
else
ARCH=$(cat build.arch)
if [ x"${ARCH}" != x"${TARGET}" ]; then
echo "Build is configured for '${ARCH}' while current target set to '${TARGET}'!"
echo "Cannot continue until conflict is resolved ..."
return 1
fi
ninja "$@"
fi
}
export -f xbuild