mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 00:08:26 -05:00
Premake: Add include guard to make sure dependencies do not include themselves in an infinite chain when two components depend on each other
This commit is contained in:
@ -1,16 +1,20 @@
|
||||
Crypto = {}
|
||||
|
||||
function Crypto:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "Crypto")
|
||||
}
|
||||
if References:include("Crypto") then
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "Crypto")
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function Crypto:link()
|
||||
libtomcrypt:link()
|
||||
libtommath:link()
|
||||
salsa20:link()
|
||||
links "Crypto"
|
||||
if References:link("Crypto") then
|
||||
libtomcrypt:link()
|
||||
libtommath:link()
|
||||
salsa20:link()
|
||||
links "Crypto"
|
||||
end
|
||||
end
|
||||
|
||||
function Crypto:use()
|
||||
@ -18,6 +22,7 @@ function Crypto:use()
|
||||
end
|
||||
|
||||
function Crypto:project()
|
||||
References:reset()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "Crypto"
|
||||
|
Reference in New Issue
Block a user