mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 00:08:26 -05:00
Add premake scripts for projects
This commit is contained in:
36
src/Crypto.lua
Normal file
36
src/Crypto.lua
Normal 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
|
Reference in New Issue
Block a user