add support for localPackages

This commit is contained in:
yonaskolb
2019-09-27 21:36:07 +10:00
parent 41453595cc
commit e9193cfb29
12 changed files with 138 additions and 3 deletions
+12
View File
@@ -41,6 +41,18 @@ class SourceGenerator {
return object
}
func createLocalPackage(path: Path) {
let fileReference = addObject(
PBXFileReference(
sourceTree: .absolute,
name: path.lastComponent,
lastKnownFileType: "folder",
path: path.string
)
)
rootGroups.insert(fileReference)
}
func getAllSourceFiles(targetType: PBXProductType, sources: [TargetSource]) throws -> [SourceFile] {
return try sources.flatMap { try getSourceFiles(targetType: targetType, targetSource: $0, path: project.basePath + $0.path) }
}