PBXBuildFile AddFile(string path, string tree, PBXGroup grp) { var fileref = new PBXFileReference(path, tree); var buildfile = new PBXBuildFile(fileref); files.Add(fileref); grp.AddChild(fileref); sources.Add(buildfile); return(buildfile); }
public void AddResource(string path, PBXGroup grp = null) { string dir = Path.GetDirectoryName(path); PBXBuildFile buildFile; if (dir.EndsWith(".lproj")) { string name = Path.GetFileName(path); PBXVariantGroup variant = GetGroup(name) as PBXVariantGroup; if (variant == null) { variant = new PBXVariantGroup(name); groups.Add(variant); if (grp == null) { projectGroup.AddChild(variant); } else { grp.AddChild(variant); } buildFile = new PBXBuildFile(variant); resourcesBuildPhase.AddResource(buildFile); } string lang = dir.Substring(0, dir.LastIndexOf('.')); project.KnownRegions.Add(lang); var fileref = new PBXFileReference(path, "\"<group>\""); variant.AddChild(fileref); files.Add(fileref); } else { if (grp == null) { grp = CreateGroupFromPath(path); } buildFile = AddFile(path, "\"<group>\"", grp); resourcesBuildPhase.AddResource(buildFile); } }
PBXBuildFile AddFile(string path, string tree, PBXGroup grp = null) { var fileref = new PBXFileReference(path, tree); var buildfile = new PBXBuildFile(fileref); files.Add(fileref); sources.Add(buildfile); if (grp == null) { grp = projectGroup; var parts = path.Split(new [] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < parts.Length - 1; i++) { grp = (PBXGroup)(grp.GetGroup(parts [i]) ?? AddGroup(grp, parts [i])); } } grp.AddChild(fileref); return(buildfile); }
PBXBuildFile AddFile (string name, string path, string tree, PBXGroup grp = null) { var fileref = new PBXFileReference (name, path, tree); var buildfile = new PBXBuildFile (fileref); files.Add (fileref); sources.Add (buildfile); (grp ?? this.rootGroup).AddChild (fileref); return buildfile; }
public void AddFramework (PBXBuildFile framework) { framework.BuildPhase = this; frameworks.Add (framework); }
public void AddSource (PBXBuildFile source) { source.BuildPhase = this; sources.Add (source); }
public void AddSource(PBXBuildFile source) { this.sources.Add(source); }
public void AddResource (string path, PBXGroup grp = null) { string dir = Path.GetDirectoryName (path); PBXBuildFile buildFile; if (dir.EndsWith (".lproj")) { string name = Path.GetFileName (path); PBXVariantGroup variant = GetGroup (name) as PBXVariantGroup; if (variant == null) { variant = new PBXVariantGroup (name); groups.Add (variant); if (grp == null) projectGroup.AddChild (variant); else grp.AddChild (variant); buildFile = new PBXBuildFile (variant); resourcesBuildPhase.AddResource (buildFile); } string lang = dir.Substring (0, dir.LastIndexOf ('.')); project.KnownRegions.Add (lang); var fileref = new PBXFileReference (path, "\"<group>\""); variant.AddChild (fileref); files.Add (fileref); } else { if (grp == null) grp = CreateGroupFromPath (path); buildFile = AddFile (path, "\"<group>\"", grp); resourcesBuildPhase.AddResource (buildFile); } }
PBXBuildFile AddFile (string path, string tree, PBXGroup grp = null) { var fileref = new PBXFileReference (path, tree); var buildfile = new PBXBuildFile (fileref); files.Add (fileref); sources.Add (buildfile); if (grp == null) { grp = projectGroup; var parts = path.Split (new [] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < parts.Length - 1; i ++) grp = (PBXGroup) (grp.GetGroup (parts [i]) ?? AddGroup (grp, parts [i])); } grp.AddChild (fileref); return buildfile; }
public void AddFramework (PBXBuildFile framework) { this.frameworks.Add (framework); }
public void AddResource (PBXBuildFile resource) { this.resources.Add (resource); }
public void AddSource (PBXBuildFile source) { this.sources.Add (source); }
public void AddSource(PBXBuildFile source) { source.BuildPhase = this; sources.Add(source); }
public void AddResource(PBXBuildFile resource) { this.resources.Add(resource); }
public void AddResource (PBXBuildFile resource) { resource.BuildPhase = this; resources.Add (resource); }
public void AddResource(PBXBuildFile resource) { resource.BuildPhase = this; resources.Add(resource); }
public void AddFramework(PBXBuildFile framework) { framework.BuildPhase = this; frameworks.Add(framework); }
PBXBuildFile AddFile (string name, string path, string tree) { var fileref = new PBXFileReference (name, path, tree); var buildfile = new PBXBuildFile (fileref); files.Add (fileref); sources.Add (buildfile); group.AddChild (fileref); return buildfile; }
public void AddFramework(PBXBuildFile framework) { this.frameworks.Add(framework); }