示例#1
0
 public static bool IsNotBuilt(PBXFileType type)
 {
     return(IsHeaderFile(type) ||
            type == PBXFileType.FilePlayground ||
            type == PBXFileType.TextXCConfig ||
            type == PBXFileType.TextScriptShell);
 }
示例#2
0
        /// <summary>
        ///   Gets the target phase.
        /// </summary>
        private static PBXBuildPhase GetTargetPhase(PBXTarget target, String file)
        {
            PBXFileType   fileType = GetFileType(file);
            PBXBuildPhase phase;

            switch (fileType)
            {
            case PBXFileType.SourcecodeC:
            case PBXFileType.SourcecodeCppCpp:
            case PBXFileType.SourcecodeCObjc:
                phase = GetTargetPhase <PBXSourcesBuildPhase> (target);
                break;

            case PBXFileType.SourcecodeCH:
            case PBXFileType.SourcecodeCppH:
                phase = GetTargetPhase <PBXHeadersBuildPhase> (target);
                break;

            case PBXFileType.FileXib:
            case PBXFileType.TextPlist:
            case PBXFileType.TextPlistInfo:
                phase = GetTargetPhase <PBXResourcesBuildPhase> (target);
                break;

            case PBXFileType.WrapperFramework:
                phase = GetTargetPhase <PBXFrameworksBuildPhase> (target);
                break;

            default:
                return(null);
            }

            return(phase);
        }
示例#3
0
 public static bool IsContainer(PBXFileType type)
 {
     return(type == PBXFileType.FolderAssetCatalog ||
            type == PBXFileType.WrapperXCDataModel ||
            type == PBXFileType.WrapperXCMappingModel ||
            type == PBXFileType.WrapperPlugIn ||
            type == PBXFileType.WrapperFramework ||
            type == PBXFileType.WrapperApplication ||
            type == PBXFileType.WrapperAppExtension ||
            type == PBXFileType.WrapperCFBundle ||
            type == PBXFileType.FilePlayground);
 }
示例#4
0
 public static bool IsSourceCodeFile(PBXFileType type)
 {
     return(type == PBXFileType.SourceCodeAsm ||
            type == PBXFileType.SourcecodeC ||
            type == PBXFileType.SourcecodeCpp ||
            type == PBXFileType.SourcecodeObjectiveC ||
            type == PBXFileType.SourcecodeObjectiveCpp ||
            type == PBXFileType.SourcecodeSwift ||
            type == PBXFileType.WrapperXCDataModel ||
            type == PBXFileType.WrapperXCMappingModel ||
            type == PBXFileType.SourcecodeMetal);
 }
示例#5
0
 public FileTypeDesc(string typeName, PBXFileType type)
 {
     name      = typeName;
     this.type = type;
 }
 public FileTypeDesc(string typeName, PBXFileType type, bool isExplicit)
 {
     this.name = typeName;
     this.type = type;
     this.isExplicit = isExplicit;
 }
 public FileTypeDesc(string typeName, PBXFileType type)
 {
     this.name = typeName;
     this.type = type;
     this.isExplicit = false;
 }
 public FileTypeDesc(string typeName, PBXFileType type)
 {
     this.name = typeName;
     this.type = type;
 }
示例#9
0
 public static bool IsCoreDatamodel(PBXFileType type)
 {
     return(type == PBXFileType.WrapperXCDataModel);
 }
示例#10
0
 public static bool IsHeaderFile(PBXFileType type)
 {
     return(type == PBXFileType.SourcecodeCHeader || type == PBXFileType.SourcecodeCppHeader);
 }
示例#11
0
 public static bool IsResourceFile(PBXFileType type)
 {
     return(!IsSourceCodeFile(type) && !IsNotBuilt(type));
 }
示例#12
0
 public static bool IsFrameworkOrLibrary(PBXFileType type)
 {
     return(IsFramework(type) || IsLibrary(type));
 }
示例#13
0
 public static bool IsLibrary(PBXFileType type)
 {
     return(type == PBXFileType.ArchiveAr ||
            type == PBXFileType.CompiledMachODylib ||
            type == PBXFileType.SourcecodeTextBasedDylibDefinition);
 }
示例#14
0
 public static bool IsFramework(PBXFileType type)
 {
     return(type == PBXFileType.WrapperFramework);
 }
示例#15
0
 public FileTypeDesc(string typeName, PBXFileType type)
 {
     this.name       = typeName;
     this.type       = type;
     this.isExplicit = false;
 }
示例#16
0
 public FileTypeDesc(string typeName, PBXFileType type, bool isExplicit)
 {
     this.name       = typeName;
     this.type       = type;
     this.isExplicit = isExplicit;
 }
示例#17
0
 public static bool IsApplication(PBXFileType type)
 {
     return(type == PBXFileType.WrapperApplication ||
            type == PBXFileType.WrapperAppExtension);
 }