public MakefileSwitchEditor (TarballDeployTarget target) { this.Build(); MakefileSwitchEditorWidget widg = new MakefileSwitchEditorWidget (target); align.Add (widg); widg.ShowAll (); }
public TarballBuilderEditorWidget (TarballDeployTarget target) { this.Build(); alignment1.Xalign = 0.16f; alignment1.Xscale = 0.04f; this.target = target; SolutionItem targetCombine = target.RootSolutionItem; folderEntry.Path = target.TargetDir; if (string.IsNullOrEmpty (target.DefaultConfiguration)) { target.DefaultConfiguration = targetCombine.ParentSolution.GetConfigurations () [0]; } for (int ii=0; ii < targetCombine.ParentSolution.Configurations.Count; ii++) { string cc = targetCombine.ParentSolution.Configurations [ii].Id; comboConfigs.AppendText ( cc ); if ( cc == target.DefaultConfiguration ) comboConfigs.Active = ii; } if (target.GenerateFiles) radioGenerate.Active = true; else radioUseExisting.Active = true; rbAutotools.Active = target.GenerateAutotools; rbSimple.Active = !target.GenerateAutotools; UpdateControls (); }
public MakefileSwitchEditor(TarballDeployTarget target) { this.Build(); MakefileSwitchEditorWidget widg = new MakefileSwitchEditorWidget(target); align.Add(widg); widg.ShowAll(); }
public override void CopyFrom(PackageBuilder other) { base.CopyFrom(other); TarballDeployTarget target = other as TarballDeployTarget; targetDir = target.targetDir; defaultConfig = target.defaultConfig; generateFiles = target.generateFiles; generateAutotools = target.generateAutotools; switchs = new List <Switch> (target.GetSwitches()); }
public MakefileSwitchEditorWidget(TarballDeployTarget target) { this.target = target; this.Build(); InitTreeview (); store = new ListStore (typeof (string), typeof (string), typeof(string), typeof (Switch)); itemTv.Model = store; foreach (Switch s in target.GetSwitches ()) { store.AppendValues (s.SwitchName, s.Define, s.HelpStr, s); } this.ShowAll (); }
public MakefileSwitchEditorWidget(TarballDeployTarget target) { this.target = target; this.Build(); InitTreeview(); store = new ListStore(typeof(string), typeof(string), typeof(string), typeof(Switch)); itemTv.Model = store; foreach (Switch s in target.GetSwitches()) { store.AppendValues(s.SwitchName, s.Define, s.HelpStr, s); } this.ShowAll(); }
public TarballBuilderEditorWidget(TarballDeployTarget target) { this.Build(); alignment1.Xalign = 0.16f; alignment1.Xscale = 0.04f; this.target = target; SolutionItem targetCombine = target.RootSolutionItem; folderEntry.Path = target.TargetDir; if (string.IsNullOrEmpty(target.DefaultConfiguration)) { target.DefaultConfiguration = targetCombine.ParentSolution.GetConfigurations() [0]; } for (int ii = 0; ii < targetCombine.ParentSolution.Configurations.Count; ii++) { string cc = targetCombine.ParentSolution.Configurations [ii].Id; comboConfigs.AppendText(cc); if (cc == target.DefaultConfiguration) { comboConfigs.Active = ii; } } if (target.GenerateFiles) { radioGenerate.Active = true; } else { radioUseExisting.Active = true; } rbAutotools.Active = target.GenerateAutotools; rbSimple.Active = !target.GenerateAutotools; UpdateControls(); }
void RunTestTarballPackage (string solFile, bool autotools, string config, string[] expectedFiles) { solFile = Util.GetSampleProject (solFile); Solution sol = (Solution) Services.ProjectService.ReadWorkspaceItem (Util.GetMonitor(), solFile); TarballDeployTarget pb = new TarballDeployTarget (); pb.SetSolutionItem (sol.RootFolder, sol.GetAllSolutionItems<SolutionItem> ()); pb.TargetDir = Util.CreateTmpDir ("tarball-target-dir"); pb.DefaultConfiguration = config; pb.GenerateFiles = true; pb.GenerateAutotools = autotools; if (!DeployService.BuildPackage (Util.GetMonitor (), pb)) Assert.Fail ("Package generation failed"); string tarfile = Directory.GetFiles (pb.TargetDir) [0]; Untar (tarfile, null); string[] dirs = Directory.GetDirectories (pb.TargetDir); Assert.AreEqual (1, dirs.Length); string tarDir = dirs [0]; string prefix = Path.Combine (pb.TargetDir, "install"); if (!Exec (Path.Combine (tarDir, "configure"), "--prefix=" + prefix, tarDir)) Assert.Fail ("Configure script failed"); if (!Exec ("make", "all", tarDir)) Assert.Fail ("Build failed"); if (!Exec ("make", "install", tarDir)) Assert.Fail ("Install failed"); CheckDirContents (prefix, expectedFiles); }