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

43
thirdparty/libtomcrypt.lua vendored Normal file
View File

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

34
thirdparty/libtommath.lua vendored Normal file
View File

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

34
thirdparty/salsa20.lua vendored Normal file
View File

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

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