Added support for .strings

This commit is contained in:
starkos 2009-09-03 19:25:09 +00:00
parent 8a16e6a6c3
commit b6894904c4
2 changed files with 21 additions and 11 deletions

View File

@ -171,6 +171,7 @@
[".lproj"] = "Resources",
[".m"] = "Sources",
[".plist"] = "Resources",
[".strings"] = "Resources",
[".xib"] = "Resources",
}
return categories[path.getextension(fname)]

View File

@ -146,16 +146,25 @@
end
function T.xcode3.PBXBuildFile_SeparatesResourcesByProject()
files { "MyProject/English.lproj/MainMenu.xib", "MyProject/French.lproj/MainMenu.xib" }
project2()
files { "MyProject2/English.lproj/MainMenu.xib", "MyProject2/French.lproj/MainMenu.xib" }
function T.xcode3.PBXBuildFile_ListsResourceFilesOnlyOnceWithGroupID()
files { "English.lproj/MainMenu.xib", "French.lproj/MainMenu.xib" }
prepare()
xcode.PBXBuildFile(ctx)
test.capture [[
/* Begin PBXBuildFile section */
[MainMenu.xib:build] /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = [MainMenu.xib:group] /* MainMenu.xib */; };
[MainMenu.xib:build(2)] /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = [MainMenu.xib:group(2)] /* MainMenu.xib */; };
/* End PBXBuildFile section */
]]
end
function T.xcode3.PBXBuildFile_IncludesStringsFiles()
files { "MyProject/English.lproj/InfoPList.strings", "MyProject/French.lproj/InfoPList.strings" }
prepare()
xcode.PBXBuildFile(ctx)
test.capture [[
/* Begin PBXBuildFile section */
[InfoPList.strings:build] /* InfoPList.strings in Resources */ = {isa = PBXBuildFile; fileRef = [InfoPList.strings:group] /* InfoPList.strings */; };
/* End PBXBuildFile section */
]]
end