public static bool IsNotBuilt(PBXFileType type) { return(IsHeaderFile(type) || type == PBXFileType.FilePlayground || type == PBXFileType.TextXCConfig || type == PBXFileType.TextScriptShell); }
/// <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); }
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); }
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); }
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; }
public static bool IsCoreDatamodel(PBXFileType type) { return(type == PBXFileType.WrapperXCDataModel); }
public static bool IsHeaderFile(PBXFileType type) { return(type == PBXFileType.SourcecodeCHeader || type == PBXFileType.SourcecodeCppHeader); }
public static bool IsResourceFile(PBXFileType type) { return(!IsSourceCodeFile(type) && !IsNotBuilt(type)); }
public static bool IsFrameworkOrLibrary(PBXFileType type) { return(IsFramework(type) || IsLibrary(type)); }
public static bool IsLibrary(PBXFileType type) { return(type == PBXFileType.ArchiveAr || type == PBXFileType.CompiledMachODylib || type == PBXFileType.SourcecodeTextBasedDylibDefinition); }
public static bool IsFramework(PBXFileType type) { return(type == PBXFileType.WrapperFramework); }
public static bool IsApplication(PBXFileType type) { return(type == PBXFileType.WrapperApplication || type == PBXFileType.WrapperAppExtension); }