Bug 2909463: Fix Xcode handling of Obj-C++ .mm files

This commit is contained in:
starkos 2009-12-07 21:54:34 +00:00
parent a12933cc72
commit b51c75e70d
4 changed files with 18 additions and 3 deletions

View File

@ -7,6 +7,8 @@
- Added project kind to list of configuration filters - Added project kind to list of configuration filters
- Clean action now removes MonoDevelop .pidb files correctly - Clean action now removes MonoDevelop .pidb files correctly
- Added os.executef() - Added os.executef()
- Bug 2909463: Fix Xcode handling of Obj-C++ .mm files
------- -------
4.1.2 4.1.2

View File

@ -26,6 +26,7 @@
[".cxx"] = "Sources", [".cxx"] = "Sources",
[".framework"] = "Frameworks", [".framework"] = "Frameworks",
[".m"] = "Sources", [".m"] = "Sources",
[".mm"] = "Sources",
[".strings"] = "Resources", [".strings"] = "Resources",
[".nib"] = "Resources", [".nib"] = "Resources",
[".xib"] = "Resources", [".xib"] = "Resources",
@ -75,6 +76,7 @@
[".html"] = "text.html", [".html"] = "text.html",
[".lua"] = "sourcecode.lua", [".lua"] = "sourcecode.lua",
[".m"] = "sourcecode.c.objc", [".m"] = "sourcecode.c.objc",
[".mm"] = "sourcecode.cpp.objc",
[".nib"] = "wrapper.nib", [".nib"] = "wrapper.nib",
[".pch"] = "sourcecode.c.h", [".pch"] = "sourcecode.c.h",
[".plist"] = "text.plist.xml", [".plist"] = "text.plist.xml",

File diff suppressed because one or more lines are too long

View File

@ -35,7 +35,7 @@
-- PBXBuildFile tests -- PBXBuildFile tests
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
function suite.PBXBuildFile_ListsBuildableSources() function suite.PBXBuildFile_ListsCppSources()
files { "source.h", "source.c", "source.cpp", "Info.plist" } files { "source.h", "source.c", "source.cpp", "Info.plist" }
prepare() prepare()
xcode.PBXBuildFile(tr) xcode.PBXBuildFile(tr)
@ -47,6 +47,17 @@
]] ]]
end end
function suite.PBXBuildFile_ListsObjCSources()
files { "source.h", "source.m", "source.mm", "Info.plist" }
prepare()
xcode.PBXBuildFile(tr)
test.capture [[
/* Begin PBXBuildFile section */
[source.m:build] /* source.m in Sources */ = {isa = PBXBuildFile; fileRef = [source.m] /* source.m */; };
[source.mm:build] /* source.mm in Sources */ = {isa = PBXBuildFile; fileRef = [source.mm] /* source.mm */; };
/* End PBXBuildFile section */
]]
end
function suite.PBXBuildFile_ListsResourceFilesOnlyOnceWithGroupID() function suite.PBXBuildFile_ListsResourceFilesOnlyOnceWithGroupID()
files { "English.lproj/MainMenu.xib", "French.lproj/MainMenu.xib" } files { "English.lproj/MainMenu.xib", "French.lproj/MainMenu.xib" }