diff --git a/boost/boost_1_75_0.7z b/boost/boost_1_75_0.7z new file mode 100644 index 0000000..384962f Binary files /dev/null and b/boost/boost_1_75_0.7z differ diff --git a/boost/build_boost.sh b/boost/build_boost.sh new file mode 100644 index 0000000..2748b6d --- /dev/null +++ b/boost/build_boost.sh @@ -0,0 +1,52 @@ +#!/bin/bash + +# This script is meant to make it easy to rebuild Boost using the linux-fresh +# yuzu-emu container. +# Re-purposed for building with MinGW for Windows. + +# Run this from within boost_[version] directory +# Downloaded source archive must come from https://www.boost.org/ + +THIS=$(readlink -e $0) +TARGET="mingw" +ARCH=`uname -m` +BASE_NAME=`readlink -e $(pwd) | sed 's/.*\///g'` +ARCHIVE_NAME=${BASE_NAME}-${TARGET}-${ARCH}.tar.xz +XZ=$(which xz) +if [ -n "$(which pixz)" ]; then + XZ=$(which pixz) +fi + + +echo "using gcc : mingw : ${ARCH}-w64-mingw32-g++ ;" > user-config.jam + +mkdir -p /tmp || true +bash ./bootstrap.sh --without-libraries=python +./b2 --user-config=user-config.jam \ + --build-dir=build \ + --prefix=$(pwd)/${BASE_NAME} \ + abi=ms \ + address-model=64 \ + binary-format=pe \ + debug-symbols=off \ + define=NDEBUG \ + inlining=full \ + optimization=speed \ + target-os=windows \ + toolset=gcc-mingw \ + variant=release \ + install + +cp -v ${THIS} ${BASE_NAME}/ + +tar cv ${BASE_NAME} | ${XZ} -c > ${ARCHIVE_NAME} + +if [ $# -eq 2 ]; then + chown -R $1:$2 . +fi + +if [ -e ${ARCHIVE_NAME} ]; then + echo "Boost package can be found at $(readlink -e ${ARCHIVE_NAME})" +fi + + diff --git a/boost/start_build.sh b/boost/start_build.sh new file mode 100644 index 0000000..618e6e5 --- /dev/null +++ b/boost/start_build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Kicks off the build script using the linux-mingw build container. + +if [ "$#" -ne 2 ]; then + echo "usage: $0 " + exit +fi +UID=`id -u` +GID=`id -g` + +SRC_DIR=$(readlink -e $1) +SRC_DIR_BASENAME=$(basename ${SRC_DIR}) +SCRIPT=$(readlink -e $2) +SCRIPT_BASENAME=$(basename ${SCRIPT}) + +cp ${SCRIPT} ${SRC_DIR} +docker run -v ${SRC_DIR}:/${SRC_DIR_BASENAME} -w /${SRC_DIR_BASENAME} -u root -t yuzuemu/build-environments:linux-mingw /bin/bash /${SRC_DIR_BASENAME}/${SCRIPT_BASENAME} ${UID} ${GID} +