Add premake solution generation for third party projects for now only

This commit is contained in:
Jan
2019-10-22 00:13:38 +02:00
parent fb3b62fa69
commit debb8d481e
8 changed files with 239 additions and 4 deletions

39
thirdparty/zlib.lua vendored Normal file
View File

@ -0,0 +1,39 @@
zlib = {}
function zlib:include()
includedirs {
path.join(ThirdPartyFolder(), "zlib")
}
end
function zlib:link()
self:include()
links {
"zlib"
}
end
function zlib:project()
local folder = ThirdPartyFolder();
project "zlib"
targetdir(TargetDirectoryLib)
location "%{wks.location}/thirdparty"
kind "StaticLib"
language "C"
files {
path.join(folder, "zlib/*.h"),
path.join(folder, "zlib/*.c")
}
defines {
"_CRT_SECURE_NO_WARNINGS",
"_CRT_NONSTDC_NO_DEPRECATE"
}
self:include()
-- Disable warnings. They do not have any value to us since it is not our code.
warnings "off"
end