mirror of https://github.com/BOINC/boinc.git
21 lines
634 B
Bash
21 lines
634 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
PLATFORM_NAME="mingw"
|
||
|
|
||
|
if [ ! -d "$PLATFORM_NAME" ]; then
|
||
|
echo "start this script in the source root directory"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
BUILD_DIR="$PWD/3rdParty/$PLATFORM_NAME"
|
||
|
VCPKG_ROOT="$BUILD_DIR/vcpkg"
|
||
|
VCPKG_PORTS="$PWD/3rdParty/vcpkg_ports"
|
||
|
TRIPLET="x64-mingw-static"
|
||
|
|
||
|
export VCPKG_DIR="$VCPKG_ROOT/installed/$TRIPLET"
|
||
|
|
||
|
$PLATFORM_NAME/bootstrap_vcpkg_cmake.sh
|
||
|
|
||
|
cmake lib -B build -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DVCPKG_OVERLAY_PORTS=$VCPKG_PORTS/ports -DVCPKG_OVERLAY_TRIPLETS=$VCPKG_PORTS/triplets/ci -DVCPKG_TARGET_TRIPLET=$TRIPLET -DVCPKG_INSTALL_OPTIONS=--clean-after-build
|