mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 08:18:21 -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:
@ -108,10 +108,12 @@ function ZoneCode:allWriteFiles()
|
||||
end
|
||||
|
||||
function ZoneCode:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "ZoneCode"),
|
||||
"%{wks.location}/src/ZoneCode"
|
||||
}
|
||||
if References:include("ZoneCode") then
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "ZoneCode"),
|
||||
"%{wks.location}/src/ZoneCode"
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
function ZoneCode:link()
|
||||
@ -123,6 +125,7 @@ function ZoneCode:use()
|
||||
end
|
||||
|
||||
function ZoneCode:project()
|
||||
References:reset()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "ZoneCode"
|
||||
|
Reference in New Issue
Block a user