commit 2298bcf1cf06ce61fabfce3e0264e0e22e0658ee Author: Rustam Zaitov Date: Sat Sep 14 21:45:16 2013 +0400 Сохраняем в репозиторий работы по созданию билд скрипта diff --git a/BuildSample/BuildSample.sln b/BuildSample/BuildSample.sln new file mode 100644 index 0000000..734caac --- /dev/null +++ b/BuildSample/BuildSample.sln @@ -0,0 +1,46 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoolApp", "BuildSample\CoolApp.csproj", "{E7393DD4-5E5F-456A-89AB-000EC63BD901}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotCompileApp", "NotCompileApp\NotCompileApp.csproj", "{3DE4FDFA-1502-44CF-9B73-78B6D730C59F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|iPhoneSimulator = Debug|iPhoneSimulator + Release|iPhoneSimulator = Release|iPhoneSimulator + Debug|iPhone = Debug|iPhone + Release|iPhone = Release|iPhone + Ad-Hoc|iPhone = Ad-Hoc|iPhone + AppStore|iPhone = AppStore|iPhone + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.AppStore|iPhone.ActiveCfg = AppStore|iPhone + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.AppStore|iPhone.Build.0 = AppStore|iPhone + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Debug|iPhone.ActiveCfg = Debug|iPhone + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Debug|iPhone.Build.0 = Debug|iPhone + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Release|iPhone.ActiveCfg = Release|iPhone + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Release|iPhone.Build.0 = Release|iPhone + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.AppStore|iPhone.ActiveCfg = AppStore|iPhone + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.AppStore|iPhone.Build.0 = AppStore|iPhone + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Debug|iPhone.ActiveCfg = Debug|iPhone + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Debug|iPhone.Build.0 = Debug|iPhone + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Release|iPhone.ActiveCfg = Release|iPhone + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Release|iPhone.Build.0 = Release|iPhone + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {E7393DD4-5E5F-456A-89AB-000EC63BD901}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + EndGlobalSection + GlobalSection(MonoDevelopProperties) = preSolution + StartupItem = BuildSample\CoolApp.csproj + EndGlobalSection +EndGlobal diff --git a/BuildSample/BuildSample/AppDelegate.cs b/BuildSample/BuildSample/AppDelegate.cs new file mode 100644 index 0000000..ece5ca6 --- /dev/null +++ b/BuildSample/BuildSample/AppDelegate.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using MonoTouch.Foundation; +using MonoTouch.UIKit; + +namespace BuildSample +{ + [Register ("AppDelegate")] + public partial class AppDelegate : UIApplicationDelegate + { + private UIWindow _window; + private MainController _controller; + + public override bool FinishedLaunching(UIApplication app, NSDictionary options) + { + _window = new UIWindow(UIScreen.MainScreen.Bounds); + _controller = new MainController(); + + _window.RootViewController = _controller; + _window.MakeKeyAndVisible(); + + return true; + } + } +} + diff --git a/BuildSample/BuildSample/CoolApp.csproj b/BuildSample/BuildSample/CoolApp.csproj new file mode 100644 index 0000000..3f88715 --- /dev/null +++ b/BuildSample/BuildSample/CoolApp.csproj @@ -0,0 +1,96 @@ + + + + Debug + iPhoneSimulator + 10.0.0 + 2.0 + {E7393DD4-5E5F-456A-89AB-000EC63BD901} + {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Exe + BuildSample + Resources + BuildSample + + + true + full + false + bin\iPhoneSimulator\Debug + DEBUG; + prompt + 4 + None + false + true + + + full + true + bin\iPhoneSimulator\Release + prompt + 4 + None + false + + + true + full + false + bin\iPhone\Debug + DEBUG; + prompt + 4 + true + false + iPhone Developer + + + full + true + bin\iPhone\Release + prompt + 4 + iPhone Developer + false + + + full + true + bin\iPhone\Ad-Hoc + prompt + 4 + iPhone Distribution + true + false + Automatic:AdHoc + + + full + true + bin\iPhone\AppStore + prompt + 4 + iPhone Distribution + false + Automatic:AppStore + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/BuildSample/BuildSample/Info.plist b/BuildSample/BuildSample/Info.plist new file mode 100644 index 0000000..f9e3de4 --- /dev/null +++ b/BuildSample/BuildSample/Info.plist @@ -0,0 +1,14 @@ + + + + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + MinimumOSVersion + 6.0 + + diff --git a/BuildSample/BuildSample/Main.cs b/BuildSample/BuildSample/Main.cs new file mode 100644 index 0000000..68bd6ed --- /dev/null +++ b/BuildSample/BuildSample/Main.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using MonoTouch.Foundation; +using MonoTouch.UIKit; + +namespace BuildSample +{ + public class Application + { + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, "AppDelegate"); + } + } +} diff --git a/BuildSample/BuildSample/MainController.cs b/BuildSample/BuildSample/MainController.cs new file mode 100644 index 0000000..d436376 --- /dev/null +++ b/BuildSample/BuildSample/MainController.cs @@ -0,0 +1,22 @@ +using System; +using MonoTouch.UIKit; +using MonoTouch.Foundation; + +namespace BuildSample +{ + public class MainController : UIViewController + { + public MainController() + { + } + + public override void ViewDidLoad() + { + base.ViewDidLoad(); + View.BackgroundColor = UIColor.White; + + + // insert your code here + } + } +} diff --git a/BuildSample/NotCompileApp/AppDelegate.cs b/BuildSample/NotCompileApp/AppDelegate.cs new file mode 100644 index 0000000..1f439c7 --- /dev/null +++ b/BuildSample/NotCompileApp/AppDelegate.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using MonoTouch.Foundation; +using MonoTouch.UIKit; + +namespace NotCompileApp +{ + [Register ("AppDelegate")] + public partial class AppDelegate : UIApplicationDelegate + { + UIWindow window; + public override bool FinishedLaunching(UIApplication app, NSDictionary options) + { + window = new UIWindow(UIScreen.MainScreen.Bounds); + + window.MakeKeyAndVisible(); + + // Complete time error + //return true; + } + } +} + diff --git a/BuildSample/NotCompileApp/Info.plist b/BuildSample/NotCompileApp/Info.plist new file mode 100644 index 0000000..f9e3de4 --- /dev/null +++ b/BuildSample/NotCompileApp/Info.plist @@ -0,0 +1,14 @@ + + + + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + MinimumOSVersion + 6.0 + + diff --git a/BuildSample/NotCompileApp/Main.cs b/BuildSample/NotCompileApp/Main.cs new file mode 100644 index 0000000..6012991 --- /dev/null +++ b/BuildSample/NotCompileApp/Main.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using MonoTouch.Foundation; +using MonoTouch.UIKit; + +namespace NotCompileApp +{ + public class Application + { + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, "AppDelegate"); + } + } +} diff --git a/BuildSample/NotCompileApp/NotCompileApp.csproj b/BuildSample/NotCompileApp/NotCompileApp.csproj new file mode 100644 index 0000000..14e2708 --- /dev/null +++ b/BuildSample/NotCompileApp/NotCompileApp.csproj @@ -0,0 +1,95 @@ + + + + Debug + iPhoneSimulator + 10.0.0 + 2.0 + {3DE4FDFA-1502-44CF-9B73-78B6D730C59F} + {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Exe + NotCompileApp + Resources + NotCompileApp + + + true + full + false + bin\iPhoneSimulator\Debug + DEBUG; + prompt + 4 + None + false + true + + + full + true + bin\iPhoneSimulator\Release + prompt + 4 + None + false + + + true + full + false + bin\iPhone\Debug + DEBUG; + prompt + 4 + true + false + iPhone Developer + + + full + true + bin\iPhone\Release + prompt + 4 + iPhone Developer + false + + + full + true + bin\iPhone\Ad-Hoc + prompt + 4 + iPhone Distribution + true + false + Automatic:AdHoc + + + full + true + bin\iPhone\AppStore + prompt + 4 + iPhone Distribution + false + Automatic:AppStore + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scripts/buld.py b/scripts/buld.py new file mode 100644 index 0000000..f135ab0 --- /dev/null +++ b/scripts/buld.py @@ -0,0 +1,25 @@ +from subprocess import call +import settings + +# print("all projects:") +# print(settings.all_projects) + +# project_to_remove = settings.projects_to_exclude[0]; +# print("project to remove:") +# print(project_to_remove); + + +# projects_to_build = settings.all_projects[:] +# projects_to_build.remove(project_to_remove) + +# print("projects to build:") +# print(projects_to_build) + +sln_config = "Debug|iPhone Simulator 6.0" + +build_cmd_pattern = '{0} -v build "--configuration:{1}" "--target:Build" {2}' +build_cmd_text = build_cmd_pattern.format(settings.mdtool, sln_config, settings.sln_path) +print(build_cmd_text) +ret_code = call(build_cmd_text, shell=True) +print('finished with return code: {0}'.format(ret_code)) + diff --git a/scripts/settings.py b/scripts/settings.py new file mode 100644 index 0000000..2e6b8de --- /dev/null +++ b/scripts/settings.py @@ -0,0 +1,5 @@ +mdtool = "/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool" +sln_path = "/Users/rzaitov/Documents/Apps/BuildScript/BuildSample/BuildSample/CoolApp.csproj" +all_projects = ["MacWarehouse", "Counts", "Sales"] + +projects_to_exclude = ["Counts"] \ No newline at end of file diff --git a/scripts/settings.pyc b/scripts/settings.pyc new file mode 100644 index 0000000..217017f Binary files /dev/null and b/scripts/settings.pyc differ