Initial checkin with 3d part complete
This commit is contained in:
39
build-windows.sh
Executable file
39
build-windows.sh
Executable file
@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
#FIXME we may be able to do this with a Makefile
|
||||
VCC="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe"
|
||||
RC="/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe"
|
||||
|
||||
# H: is a mount of home directory
|
||||
SRC=/cygdrive/h/aldercone/soundwell/soundwell3
|
||||
HL=/cygdrive/h/software/hashlink-1.14.0-win/
|
||||
BUILD=/cygdrive/c/Users/Alder/build/sw3-build
|
||||
|
||||
VER=$(cat $SRC/build/stamp)
|
||||
IVER=$(echo $VER | tr '.' ',')",0"
|
||||
|
||||
echo "Building SoundWell3 $VER ($IVER)"
|
||||
|
||||
# copy generated source and hashlink api
|
||||
rm -r "$BUILD"-old || /bin/true
|
||||
mv "$BUILD" "$BUILD"-old || /bin/true
|
||||
cp -R "$SRC/build/" "$BUILD"
|
||||
cp "$SRC/windows-build/"* "$BUILD"
|
||||
cp -R "$HL" "$BUILD/hashlink"
|
||||
|
||||
# build using VCC
|
||||
. /cygdrive/h/aldercone/WINDOWS-CMD-ENVIRONMENT-x64.sh
|
||||
|
||||
pushd "$BUILD"
|
||||
|
||||
sed -e "s;%IVER%;$IVER;g" -e "s;%VER%;$VER;g" <soundwell3.rc>soundwell-done.rc
|
||||
|
||||
"$RC" soundwell-icon.rc
|
||||
"$RC" soundwell-done.rc
|
||||
|
||||
|
||||
"$VCC" -I. '-Ihashlink\include' soundwell3.c 'hashlink\*.lib' /link /subsystem:windows soundwell-icon.res soundwell-done.res
|
||||
mkdir -p "$SRC/out/windows" || /bin/true
|
||||
cp soundwell3.exe "$SRC/out/windows"
|
||||
popd
|
||||
Reference in New Issue
Block a user