int ConfigureIOS() { var rv = 0; var unified_targets = new List <UnifiedTarget> (); var tvos_targets = new List <TVOSTarget> (); var watchos_targets = new List <WatchOSTarget> (); var today_targets = new List <TodayExtensionTarget> (); RootDirectory = Path.GetFullPath(RootDirectory).TrimEnd('/'); if (AutoConf) { AutoConfigureIOS(); } foreach (var bclTestInfo in IOSTestProjects.Where(x => x.BCLInfo != null).Select(x => x.BCLInfo)) { bclTestInfo.Convert(); } foreach (var proj in IOSTestProjects) { var file = proj.Path; if (!File.Exists(file)) { Console.WriteLine($"Can't find the project file {file}."); rv = 1; continue; } if (!proj.SkipwatchOSVariation) { var watchos = new WatchOSTarget() { TemplateProjectPath = file, Harness = this, TestProject = proj, }; watchos.Execute(); watchos_targets.Add(watchos); } if (!proj.SkiptvOSVariation) { var tvos = new TVOSTarget() { TemplateProjectPath = file, Harness = this, TestProject = proj, }; tvos.Execute(); tvos_targets.Add(tvos); } if (!proj.SkipiOSVariation) { var unified = new UnifiedTarget() { TemplateProjectPath = file, Harness = this, TestProject = proj, }; unified.Execute(); unified_targets.Add(unified); var today = new TodayExtensionTarget { TemplateProjectPath = file, Harness = this, TestProject = proj, }; today.Execute(); today_targets.Add(today); } } SolutionGenerator.CreateSolution(this, watchos_targets, "watchos"); SolutionGenerator.CreateSolution(this, tvos_targets, "tvos"); SolutionGenerator.CreateSolution(this, today_targets, "today"); MakefileGenerator.CreateMakefile(this, unified_targets, tvos_targets, watchos_targets, today_targets); return(rv); }
void ConfigureIOS() { var unified_targets = new List <UnifiedTarget> (); var tvos_targets = new List <TVOSTarget> (); var watchos_targets = new List <WatchOSTarget> (); var today_targets = new List <TodayExtensionTarget> (); RootDirectory = Path.GetFullPath(RootDirectory).TrimEnd('/'); if (AutoConf) { AutoConfigureIOS(); } foreach (var proj in IOSBclTests) { proj.Convert(this); } foreach (var proj in IOSTestProjects) { var file = proj.Path; if (!File.Exists(file)) { throw new FileNotFoundException(file); } var watchos = new WatchOSTarget() { TemplateProjectPath = file, Harness = this, }; watchos.Execute(); watchos_targets.Add(watchos); var tvos = new TVOSTarget() { TemplateProjectPath = file, Harness = this, }; tvos.Execute(); tvos_targets.Add(tvos); var unified = new UnifiedTarget() { TemplateProjectPath = file, Harness = this, }; unified.Execute(); unified_targets.Add(unified); var today = new TodayExtensionTarget { TemplateProjectPath = file, Harness = this, }; today.Execute(); today_targets.Add(today); } SolutionGenerator.CreateSolution(this, watchos_targets, "watchos"); SolutionGenerator.CreateSolution(this, tvos_targets, "tvos"); SolutionGenerator.CreateSolution(this, today_targets, "today"); MakefileGenerator.CreateMakefile(this, unified_targets, tvos_targets, watchos_targets, today_targets); }
void ConfigureIOS() { var classic_targets = new List <ClassicTarget> (); var unified_targets = new List <UnifiedTarget> (); var tvos_targets = new List <TVOSTarget> (); var watchos_targets = new List <WatchOSTarget> (); RootDirectory = Path.GetFullPath(RootDirectory).TrimEnd('/'); if (AutoConf) { AutoConfigure(); } CreateBCLProjects(); foreach (var file in TestProjects) { if (!File.Exists(file)) { throw new FileNotFoundException(file); } var watchos = new WatchOSTarget() { TemplateProjectPath = file, Harness = this, }; watchos.Execute(); watchos_targets.Add(watchos); var tvos = new TVOSTarget() { TemplateProjectPath = file, Harness = this, }; tvos.Execute(); tvos_targets.Add(tvos); var unified = new UnifiedTarget() { TemplateProjectPath = file, Harness = this, }; unified.Execute(); unified_targets.Add(unified); var classic = new ClassicTarget() { TemplateProjectPath = file, Harness = this, }; classic.Execute(); classic_targets.Add(classic); } SolutionGenerator.CreateSolution(this, watchos_targets, "watchos"); SolutionGenerator.CreateSolution(this, tvos_targets, "tvos"); SolutionGenerator.CreateSolution(this, unified_targets, "unified"); MakefileGenerator.CreateMakefile(this, classic_targets, unified_targets, tvos_targets, watchos_targets); }