FossilOrigin-Name: 95982c7ae429b8fcdf8fb17a4170aad38e40cef7978e8062a10f30d5f50fe573
This commit is contained in:
nekobit 2023-03-26 06:33:04 +00:00
parent ac18ecb86d
commit f5271f9189

View file

@ -1,4 +1,6 @@
solution "mastodont-c"
premake.gcc.cc = os.getenv("CC") or 'cc';
solution "mastodont-c";
configurations { "Debug", "Release" };
-- BEGIN Mastodont project
@ -9,16 +11,17 @@ files { "include/*.h", "src/*.c" };
includedirs { "include/" };
configuration { "linux", "bsd", "gmake" };
linkoptions { "`curl-config --libs`" };
linkoptions { "`pkg-config --libs cjson`" };
linkoptions { "`curl-config --libs`" };
linkoptions { "`pkg-config --libs cjson`" };
configuration { "Debug" };
defines { "DEBUG" };
flags("Symbols");
defines { "DEBUG" };
flags("Symbols");
configuration { "Release" };
defines { "NDEBUG" };
flags("Optimize");
defines { "NDEBUG" };
flags("Optimize");
-- END Mastodont-c
local prefix = os.getenv("PREFIX") or "/usr/local";
@ -35,4 +38,4 @@ newaction {
os.mkdir(pkgconfig_path);
os.copyfile("mastodont.pc", pkgconfig_path .. "/mastodont.pc");
end
}
}