Merged in filsinger/premake-dev/cs-source-path-delimiter (pull request #84)

removing path.translate from cs.listsources to prevent the use of double backslash path delimiters.
This commit is contained in:
Jason Perkins 2013-10-21 12:01:08 -04:00
commit a91f7154f8
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