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

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