Search in sources :

Example 1 with PBXSourcesBuildPhase

use of org.gradle.ide.xcode.internal.xcodeproj.PBXSourcesBuildPhase in project gradle by gradle.

the class GenerateXcodeProjectFileTask method newSourceBuildPhase.

private PBXSourcesBuildPhase newSourceBuildPhase(FileCollection sourceFiles) {
    PBXSourcesBuildPhase result = new PBXSourcesBuildPhase();
    for (File file : sourceFiles) {
        PBXFileReference fileReference = pathToFileReference.get(file.getAbsolutePath());
        result.getFiles().add(new PBXBuildFile(fileReference));
    }
    return result;
}
Also used : PBXBuildFile(org.gradle.ide.xcode.internal.xcodeproj.PBXBuildFile) XcodeProjectFile(org.gradle.ide.xcode.tasks.internal.XcodeProjectFile) PBXBuildFile(org.gradle.ide.xcode.internal.xcodeproj.PBXBuildFile) File(java.io.File) PBXFileReference(org.gradle.ide.xcode.internal.xcodeproj.PBXFileReference) PBXSourcesBuildPhase(org.gradle.ide.xcode.internal.xcodeproj.PBXSourcesBuildPhase)

Aggregations

File (java.io.File)1 PBXBuildFile (org.gradle.ide.xcode.internal.xcodeproj.PBXBuildFile)1 PBXFileReference (org.gradle.ide.xcode.internal.xcodeproj.PBXFileReference)1 PBXSourcesBuildPhase (org.gradle.ide.xcode.internal.xcodeproj.PBXSourcesBuildPhase)1 XcodeProjectFile (org.gradle.ide.xcode.tasks.internal.XcodeProjectFile)1