saving alternate build method. About to go back to regular visual studio build, but may pursue this approach in the future

This commit is contained in:
2025-09-09 09:44:15 -05:00
parent 7c4f089f2e
commit 2d38f74371
26 changed files with 40 additions and 659 deletions

17
build.sh Normal file
View File

@@ -0,0 +1,17 @@
(
cd bin
rm *
demo_srcs=../src/demo/*
plotter_srcs=../src/plotter/*.cpp
glad_src=../src/plotter/glad.c
glfw_lib=../ext/glfw/build/src/Debug/glfw3.lib
if [ $# -eq 1 ] && [ "$1" == "release" ]
then
flags="-O2"
else
flags="-Od -ZI"
fi
echo $flags
cl $plotter_srcs $glad_src $glfw_lib -I ../inc -I ../ext/glm -I ../ext/glfw/include $flags -std:c++20 -LD -FeLivePlotter.dll
cl $demo_srcs -I ../inc -I ../ext/glm $flags -std:c++20 -Fedemo.exe
)