mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -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:
19
thirdparty/libtomcrypt.lua
vendored
19
thirdparty/libtomcrypt.lua
vendored
@ -1,17 +1,21 @@
|
||||
libtomcrypt = {}
|
||||
|
||||
function libtomcrypt:include()
|
||||
defines{
|
||||
"LTM_DESC"
|
||||
}
|
||||
if References:include("libtomcrypt") then
|
||||
defines{
|
||||
"LTM_DESC"
|
||||
}
|
||||
|
||||
includedirs {
|
||||
path.join(ThirdPartyFolder(), "libtomcrypt/src/headers")
|
||||
}
|
||||
includedirs {
|
||||
path.join(ThirdPartyFolder(), "libtomcrypt/src/headers")
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function libtomcrypt:link()
|
||||
links "libtomcrypt"
|
||||
if References:link("libtomcrypt") then
|
||||
links "libtomcrypt"
|
||||
end
|
||||
end
|
||||
|
||||
function libtomcrypt:use()
|
||||
@ -19,6 +23,7 @@ function libtomcrypt:use()
|
||||
end
|
||||
|
||||
function libtomcrypt:project()
|
||||
References:reset()
|
||||
local folder = ThirdPartyFolder();
|
||||
|
||||
project "libtomcrypt"
|
||||
|
Reference in New Issue
Block a user