removing path.translate from cs.listsources to prevent the use of double backslash path delimiters.

This commit is contained in:
Jason Filsinger 2013-10-16 22:04:23 -07:00
parent 2e08d5f218
commit 0343d81c9f
3 changed files with 18 additions and 4 deletions

View File

@ -108,7 +108,7 @@
onleaf = function(node, depth)
local value = selector(node)
if value then
_x('\t%s \\', path.translate(value))
_x('\t%s \\', value)
end
end
})

View File

@ -35,7 +35,7 @@
prepare()
test.capture [[
EMBEDFILES += \
$(OBJDIR)\MyProject.Hello.resources \
$(OBJDIR)/MyProject.Hello.resources \
]]
end
@ -50,7 +50,7 @@ EMBEDFILES += \
prepare()
test.capture [[
EMBEDFILES += \
$(OBJDIR)\MyProject.Hello.resources \
$(OBJDIR)/MyProject.Hello.resources \
]]
end

View File

@ -40,6 +40,21 @@ SOURCES += \
]]
end
--
-- Path delimiter uses slash instead of backslash
--
function suite.doesUseProperPathDelimiter()
files { "Folder\\Hello.cs", "Folder/World.cs" }
prepare()
test.capture [[
SOURCES += \
Folder/Hello.cs \
Folder/World.cs \
]]
end
--
-- Files that should not be compiled should be excluded.
@ -72,4 +87,3 @@ SOURCES += \
]]
end