[linux]
cppflags = -D LUA_USE_LINUX -Wall -Os -ffunction-sections -fdata-sections -std=c++20 -Isource
libs = -Wl,--gc-sections -lSDL3 -lGL
executable = mini
sourcepath = source+
buildpath = build

[linux_debug] default
cppflags = -D LUA_USE_LINUX -D DEBUG -g -Wall -std=c++20 -Isource
libs = -lSDL3 -lGL
executable = mini_debug
sourcepath = source+
buildpath = build

[windows]
cppflags = -Wall -Os -ffunction-sections -fdata-sections -std=c++20 -Isource
libs = icon.res -Wl,--gc-sections -lmingw32 -lSDL3 -lopengl32 -static-libstdc++ -static-libgcc -lpthread -mwindows
executable = mini.exe
sourcepath = source+
buildpath = build

[windows_debug]
cppflags = -D DEBUG -g -Wall -std=c++20 -Isource
libs = -lmingw32 -lSDL3 -lopengl32
executable = mini_debug.exe
sourcepath = source+
buildpath = build

[macos]
compiler = clang++
cppflags = -Wall -Os -Wno-deprecated -ffunction-sections -fdata-sections -std=c++20 -Isource
libs = -lSDL3 -framework OpenGL
executable = mini
sourcepath = source+
buildpath = build

[macos_debug]
compiler = clang++
cppflags = -D DEBUG -g -Wall -std=c++20 -Isource
libs = -lSDL3 -framework OpenGL
executable = mini_debug
sourcepath = source+
buildpath = build
