Add Windows support and clean up toolchain #10

Merged
harraiken merged 39 commits from multiplatform into master 2025-07-10 12:37:42 +02:00
Showing only changes of commit 153cfa0181 - Show all commits

View File

@ -372,6 +372,16 @@ xtchain_build()
cp ${WRKDIR}/scripts/xtchain${EXTENSION} ${BINDIR}/
}
# This function generates XTCHAIN version file
xtchain_vergen()
{
cd ${WRKDIR}
: ${XTCVER:=$(git describe --exact-match --tags 2>/dev/null)}
: ${XTCVER:=DEVEL}
[ ${BUILD_MINIMAL} -eq 1 ] && XTCVER="${XTCVER}-min"
echo "${XTCVER}" > ${BINDIR}/Version
}
# Parse all arguments provided to the script
@ -426,13 +436,14 @@ fi
mkdir -p ${BINDIR}
mkdir -p ${SRCDIR}
# Build XTChain tools
# Build XTchain tools
#xtchain_build
# Download and build Wine tools
#wine_fetch
#wine_build
if [ ${BUILD_MINIMAL} -eq 0 ]; then
# Download and build LLVM
#llvm_fetch
#llvm_build
@ -444,10 +455,7 @@ mkdir -p ${SRCDIR}
# Download and build Ninja
#ninja_fetch
#ninja_build
fi
# Save XT Toolchain version
cd ${WRKDIR}
: ${XTCVER:=$(git describe --exact-match --tags 2>/dev/null)}
: ${XTCVER:=DEVEL}
[ ${BUILD_MINIMAL} -eq 1 ] && XTCVER="${XTCVER}-min"
echo "${XTCVER}" > ${BINDIR}/Version
# Generate XTchain version file
#xtchain_vergen