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:
20
thirdparty/zlib.lua
vendored
20
thirdparty/zlib.lua
vendored
@ -1,18 +1,21 @@
|
||||
zlib = {}
|
||||
|
||||
function zlib:include()
|
||||
if References:include("zlib") then
|
||||
defines {
|
||||
"ZLIB_CONST"
|
||||
}
|
||||
|
||||
defines {
|
||||
"ZLIB_CONST"
|
||||
}
|
||||
|
||||
includedirs {
|
||||
path.join(ThirdPartyFolder(), "zlib")
|
||||
}
|
||||
includedirs {
|
||||
path.join(ThirdPartyFolder(), "zlib")
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function zlib:link()
|
||||
links "zlib"
|
||||
if References:link("zlib") then
|
||||
links "zlib"
|
||||
end
|
||||
end
|
||||
|
||||
function zlib:use()
|
||||
@ -20,6 +23,7 @@ function zlib:use()
|
||||
end
|
||||
|
||||
function zlib:project()
|
||||
References:reset()
|
||||
local folder = ThirdPartyFolder();
|
||||
|
||||
project "zlib"
|
||||
|
Reference in New Issue
Block a user