Add premake scripts for projects

This commit is contained in:
Jan
2019-10-22 02:40:06 +02:00
parent cae05efb7b
commit 0d103e24a5
15 changed files with 361 additions and 12 deletions

36
src/Crypto.lua Normal file
View File

@ -0,0 +1,36 @@
Crypto = {}
function Crypto:include()
includedirs {
path.join(ProjectFolder(), "Crypto")
}
end
function Crypto:link()
libtomcrypt:link()
libtommath:link()
salsa20:link()
links {
"Crypto"
}
end
function Crypto:project()
local folder = ProjectFolder();
project "Crypto"
targetdir(TargetDirectoryLib)
location "%{wks.location}/src"
kind "StaticLib"
language "C++"
files {
path.join(folder, "Crypto/**.h"),
path.join(folder, "Crypto/**.cpp")
}
self:include()
libtomcrypt:include()
libtommath:include()
salsa20:include()
end