mastodont-c/premake5.lua
nekobit e95a6ae246 Play around with Premake build system
should be in a separate branch, but oh well...

FossilOrigin-Name: 7fefec89a8a466b83c7ca066106fcce2b18376ec390d6a1a6a1ecc6fd3497744
2023-03-17 03:13:03 +00:00

23 lines
527 B
Lua

workspace("Mastodont");
configurations { "Debug", "Release" };
-- BEGIN Mastodont project
project("Mastodont");
kind("StaticLib");
language("C");
files { "include/*.h", "src/*.c" };
includedirs { "include/" };
filter { "system:linux or bsd or macosx", "action:gmake" }
linkoptions { "`curl-config --libs`" }
linkoptions { "`pkg-config --libs cjson`" }
filter { "configurations:Debug" };
defines { "DEBUG" };
symbols("On");
filter { "configurations:Release" };
defines { "NDEBUG" };
optimize("On");
-- END Mastodont-c