mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Add support to C and C++ files in ‘Compile sources’
Previously the Compile Sources section was empty because it was not able to recognize the file extension.
This commit is contained in:
@@ -429,7 +429,7 @@ public class PBXProjGenerator {
|
||||
}
|
||||
if let fileExtension = path.extension {
|
||||
switch fileExtension {
|
||||
case "swift", "m": return .sources
|
||||
case "swift", "m", "cpp": return .sources
|
||||
case "h", "hh", "hpp", "ipp", "tpp", "hxx", "def": return .headers
|
||||
case "xcconfig": return nil
|
||||
default: return .resources
|
||||
|
||||
Reference in New Issue
Block a user