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/actions/xcode/xcode_common.lua')
-rw-r--r--src/actions/xcode/xcode_common.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/actions/xcode/xcode_common.lua b/src/actions/xcode/xcode_common.lua
index bda20e4..5ebfb0d 100644
--- a/src/actions/xcode/xcode_common.lua
+++ b/src/actions/xcode/xcode_common.lua
@@ -325,8 +325,15 @@
src = "absolute"
else
-- something else; probably a source code file
- pth = tree.getlocalpath(node)
src = "group"
+
+ -- if the parent node is virtual, it won't have a local path
+ -- of its own; need to use full relative path from project
+ if node.parent.isvpath then
+ pth = node.cfg.name
+ else
+ pth = tree.getlocalpath(node)
+ end
end
_p(2,'%s /* %s */ = {isa = PBXFileReference; lastKnownFileType = %s; name = "%s"; path = "%s"; sourceTree = "<%s>"; };',