Files
LivePlotter/build.sh

18 lines
493 B
Bash

(
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
)