CC hack
FossilOrigin-Name: 95982c7ae429b8fcdf8fb17a4170aad38e40cef7978e8062a10f30d5f50fe573
This commit is contained in:
parent
ac18ecb86d
commit
f5271f9189
1 changed files with 11 additions and 8 deletions
19
premake4.lua
19
premake4.lua
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue