18 lines
429 B
Bash
18 lines
429 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
sourceDir=$1
|
|
buildDir=$2
|
|
launcherOutput=$3
|
|
binaryOutput=$4
|
|
|
|
cmake \
|
|
-S "$sourceDir" \
|
|
-B "$buildDir" \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_TOOLCHAIN_FILE="$sourceDir/winelib-toolchain.cmake"
|
|
cmake --build "$buildDir" --parallel
|
|
cmake -E copy "$buildDir/cthulhu-wine-access.exe" "$launcherOutput"
|
|
cmake -E copy "$buildDir/cthulhu-wine-access.exe.so" "$binaryOutput"
|