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