Ejemplo n.º 1
0
        AsString(
            this FileReference.EFileType type)
        {
            switch (type)
            {
            case FileReference.EFileType.SourceCodeC:
                return("sourcecode.c.c");

            case FileReference.EFileType.SourceCodeCxx:
                return("sourcecode.cpp.cpp");

            case FileReference.EFileType.SourceCodeObjC:
                return("sourcecode.c.objc");

            case FileReference.EFileType.SourceCodeObjCxx:
                return("sourcecode.cpp.objcpp");

            case FileReference.EFileType.HeaderFile:
                return("sourcecode.c.h");

            case FileReference.EFileType.Archive:
                return("archive.ar");

            case FileReference.EFileType.Executable:
                return("compiled.mach-o.executable");

            case FileReference.EFileType.DynamicLibrary:
                return("compiled.mach-o.dylib");

            case FileReference.EFileType.WrapperFramework:
                return("wrapper.framework");

            case FileReference.EFileType.ApplicationBundle:
                return("wrapper.application");

            case FileReference.EFileType.Project:
                return("wrapper.pb-project");

            case FileReference.EFileType.LexFile:
                return("sourcecode.lex");

            case FileReference.EFileType.YaccFile:
                return("sourcecode.yacc");

            case FileReference.EFileType.TextBasedDylibDefinition:
                return("sourcecode.text-based-dylib-definition");

            case FileReference.EFileType.TextFile:
                return("text");

            case FileReference.EFileType.Assembler:
                return("sourecode.asm");

            case FileReference.EFileType.ZipArchive:
                return("archive.zip");

            default:
                throw new Bam.Core.Exception("Unrecognized file type {0}", type.ToString());
            }
        }
Ejemplo n.º 2
0
        public ReferenceProxy(
            Project project,
            FileReference.EFileType fileType,
            Bam.Core.TokenizedString path,
            Object remoteRef,
            FileReference.ESourceTree sourceTree)
            :
            base(project, null, "PBXReferenceProxy", project.GUID, fileType.ToString(), path.Parse(), remoteRef.GUID, sourceTree.ToString())
        {
            this.FileType   = fileType;
            this.Path       = path;
            this.RemoteRef  = remoteRef;
            this.SourceTree = sourceTree;

            project.ReferenceProxies.AddUnique(this);
        }
Ejemplo n.º 3
0
        AsString(
            this FileReference.EFileType type)
        {
            switch (type)
            {
            case FileReference.EFileType.SourceCodeC:
                return("sourcecode.c.c");

            case FileReference.EFileType.SourceCodeCxx:
                return("sourcecode.cpp.cpp");

            case FileReference.EFileType.SourceCodeObjC:
                return("sourcecode.c.objc");

            case FileReference.EFileType.SourceCodeObjCxx:
                return("sourcecode.cpp.objcpp");

            case FileReference.EFileType.HeaderFile:
                return("sourcecode.c.h");

            case FileReference.EFileType.Archive:
                return("archive.ar");

            case FileReference.EFileType.Executable:
                return("compiled.mach-o.executable");

            case FileReference.EFileType.DynamicLibrary:
                return("compiled.mach-o.dylib");

            case FileReference.EFileType.WrapperFramework:
                return("wrapper.framework");

            case FileReference.EFileType.ApplicationBundle:
                return("wrapper.application");

            case FileReference.EFileType.Project:
                return("wrapper.pb-project");

            default:
                throw new Bam.Core.Exception("Unrecognized file type {0}", type.ToString());
            }
        }