Ejemplo n.º 1
0
        public Target(
            Bam.Core.Module module,
            Project project)
        {
            this.IsA = "PBXNativeTarget";
            this.Name = module.GetType().Name;
            this.Module = module;
            this.Project = project;
            this.Type = EProductType.NA;

            var configList = new ConfigurationList(this);
            this.ConfigurationList = configList;
            project.ConfigurationLists.Add(configList);

            this.TargetDependencies = new Bam.Core.Array<TargetDependency>();
        }
Ejemplo n.º 2
0
        public ProjectSchemeCache(
            Project project)
        {
            this.Project = project;
            this.SchemeDocuments = new System.Collections.Generic.Dictionary<string, System.Xml.XmlDocument>();

            foreach (var target in project.Targets)
            {
                var schemeFilename = System.String.Format("{0}.xcscheme", target.Value.Name);
                var schemePathname = System.String.Format("{0}/xcuserdata/{1}.xcuserdatad/xcschemes/{2}",
                        project.ProjectDir,
                        System.Environment.GetEnvironmentVariable("USER"),
                        schemeFilename);
                var doc = this.CreateSchemePlist(target.Value);
                this.SchemeDocuments.Add(schemePathname, doc);
            }
            this.CreateManagementPlist();
        }