mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-09 22:38:06 -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:
13
thirdparty/minilzo.lua
vendored
13
thirdparty/minilzo.lua
vendored
@ -1,13 +1,17 @@
|
||||
minilzo = {}
|
||||
|
||||
function minilzo:include()
|
||||
includedirs {
|
||||
path.join(ThirdPartyFolder(), "minilzo")
|
||||
}
|
||||
if References:include("minilzo") then
|
||||
includedirs {
|
||||
path.join(ThirdPartyFolder(), "minilzo")
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function minilzo:link()
|
||||
links "minilzo"
|
||||
if References:link("minilzo") then
|
||||
links "minilzo"
|
||||
end
|
||||
end
|
||||
|
||||
function minilzo:use()
|
||||
@ -15,6 +19,7 @@ function minilzo:use()
|
||||
end
|
||||
|
||||
function minilzo:project()
|
||||
References:reset()
|
||||
local folder = ThirdPartyFolder();
|
||||
|
||||
project "minilzo"
|
||||
|
Reference in New Issue
Block a user