Fixed handling of .string file references
This commit is contained in:
parent
337da61e8a
commit
162cb14333
@ -202,6 +202,7 @@
|
||||
[".m"] = "sourcecode.c.objc",
|
||||
[".nib"] = "wrapper.nib",
|
||||
[".plist"] = "text.plist.xml",
|
||||
[".strings"] = "text.plist.strings",
|
||||
[".xib"] = "file.xib",
|
||||
}
|
||||
return types[path.getextension(node.path)] or "text"
|
||||
|
@ -138,7 +138,6 @@
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
function T.xcode3.PBXFileReference_ListsWindowedTarget()
|
||||
kind "WindowedApp"
|
||||
prepare()
|
||||
@ -150,7 +149,6 @@
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
function T.xcode3.PBXFileReference_ListsStaticLibTarget()
|
||||
kind "StaticLib"
|
||||
prepare()
|
||||
@ -162,7 +160,6 @@
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
function T.xcode3.PBXFileReference_ListsSharedLibTarget()
|
||||
kind "SharedLib"
|
||||
prepare()
|
||||
@ -174,7 +171,6 @@
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
function T.xcode3.PBXFileReference_ConvertsProjectTargetsToSolutionRelative()
|
||||
targetdir "../bin"
|
||||
prepare()
|
||||
@ -207,7 +203,7 @@
|
||||
]]
|
||||
end
|
||||
|
||||
function T.xcode3.PBXFileReference_ListResourcesCorrectly()
|
||||
function T.xcode3.PBXFileReference_ListsXibCorrectly()
|
||||
files { "English.lproj/MainMenu.xib", "French.lproj/MainMenu.xib" }
|
||||
prepare()
|
||||
xcode.PBXFileReference(tr)
|
||||
@ -218,6 +214,16 @@
|
||||
]]
|
||||
end
|
||||
|
||||
function T.xcode3.PBXFileReference_ListsStringsCorrectly()
|
||||
files { "English.lproj/InfoPlist.strings", "French.lproj/InfoPlist.strings" }
|
||||
prepare()
|
||||
xcode.PBXFileReference(tr)
|
||||
test.capture [[
|
||||
/* Begin PBXFileReference section */
|
||||
[English] /* English */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
[French] /* French */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = French; path = French.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
]]
|
||||
end
|
||||
|
||||
function T.xcode3.PBXFileReference_ListFrameworksCorrectly()
|
||||
links { "Cocoa.framework" }
|
||||
|
Reference in New Issue
Block a user