2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-05 16:27:27 +00: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:
Jan
2020-02-07 02:46:24 +01:00
parent 55d5746650
commit f73c27a7dc
21 changed files with 245 additions and 125 deletions

View File

@@ -1,13 +1,17 @@
Utils = {}
function Utils:include()
includedirs {
path.join(ProjectFolder(), "Utils")
}
if References:include("Utils") then
includedirs {
path.join(ProjectFolder(), "Utils")
}
end
end
function Utils:link()
links "Utils"
if References:link("Utils") then
links "Utils"
end
end
function Utils:use()
@@ -15,6 +19,7 @@ function Utils:use()
end
function Utils:project()
References:reset()
local folder = ProjectFolder();
project "Utils"