Enhance documentation somewhat. Start working a bit on Windows builds.
This commit is contained in:
@ -6,14 +6,14 @@ VCC="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/
|
||||
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
|
||||
SRC=/cygdrive/h/aldercone/hello/hello
|
||||
HL=/cygdrive/h/software/hashlink-1.14.0-win/
|
||||
BUILD=/cygdrive/c/Users/Alder/build/sw3-build
|
||||
BUILD=/cygdrive/c/Users/Alder/build/hello-build
|
||||
|
||||
VER=$(cat $SRC/build/stamp)
|
||||
IVER=$(echo $VER | tr '.' ',')",0"
|
||||
|
||||
echo "Building SoundWell3 $VER ($IVER)"
|
||||
echo "Building Hello $VER ($IVER)"
|
||||
|
||||
# copy generated source and hashlink api
|
||||
rm -r "$BUILD"-old || /bin/true
|
||||
@ -27,13 +27,13 @@ cp -R "$HL" "$BUILD/hashlink"
|
||||
|
||||
pushd "$BUILD"
|
||||
|
||||
sed -e "s;%IVER%;$IVER;g" -e "s;%VER%;$VER;g" <soundwell3.rc>soundwell-done.rc
|
||||
sed -e "s;%IVER%;$IVER;g" -e "s;%VER%;$VER;g" <hello.rc>hello-done.rc
|
||||
|
||||
"$RC" soundwell-icon.rc
|
||||
"$RC" soundwell-done.rc
|
||||
"$RC" hello-icon.rc
|
||||
"$RC" hello-done.rc
|
||||
|
||||
|
||||
"$VCC" -I. '-Ihashlink\include' soundwell3.c 'hashlink\*.lib' /link /subsystem:windows soundwell-icon.res soundwell-done.res
|
||||
"$VCC" -I. '-Ihashlink\include' hello.c 'hashlink\*.lib' /link /subsystem:windows hello-icon.res hello-done.res
|
||||
mkdir -p "$SRC/out/windows" || /bin/true
|
||||
cp soundwell3.exe "$SRC/out/windows"
|
||||
cp hello.exe "$SRC/out/windows"
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user