Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/project.lua')
-rw-r--r--src/base/project.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/base/project.lua b/src/base/project.lua
index 8e89168..1f40cde 100644
--- a/src/base/project.lua
+++ b/src/base/project.lua
@@ -21,8 +21,15 @@
local tr = premake.tree.new(prj.name)
tr.project = prj
+ local isvpath
+
+ local function onadd(node)
+ node.isvpath = isvpath
+ end
+
for fcfg in premake.project.eachfile(prj) do
- local node = premake.tree.add(tr, fcfg.vpath)
+ isvpath = (fcfg.name ~= fcfg.vpath)
+ local node = premake.tree.add(tr, fcfg.vpath, onadd)
node.cfg = fcfg
end