66#addin nuget: ? package = Cake . Json
77#addin nuget: ? package = Cake . XCode
88#addin nuget: ? package = Cake . Xamarin
9- #addin nuget: ? package = Cake . Xamarin . Build
9+ #addin nuget: ? package = Cake . Xamarin . Build & version = 1.0 .25
1010#addin nuget: ? package = Cake . FileHelpers
1111#addin nuget: ? package = Cake . MonoApiTools
1212
@@ -28,6 +28,8 @@ var RENDERSCRIPT_FOLDER = "android-7.1.1";
2828// We grab the previous release's api-info.xml to use as a comparison for this build's generated info to make an api-diff
2929var BASE_API_INFO_URL = "https: //github.com/xamarin/AndroidSupportComponents/releases/download/24.2.1/api-info.xml";
3030
31+ var CPU_COUNT = System. Environment. ProcessorCount;
32+
3133var AAR_INFOS = new [ ] {
3234 new AarInfo ( "support- v4", "v4", "Xamarin. Android. Support. v4", AAR_VERSION, NUGET_VERSION, COMPONENT_VERSION),
3335 new AarInfo ( "support-v13" , "v13" , "Xamarin.Android.Support.v13" , AAR_VERSION , NUGET_VERSION , COMPONENT_VERSION ) ,
@@ -104,6 +106,7 @@ var buildSpec = new BuildSpec {
104106 new DefaultSolutionBuilder {
105107 SolutionPath = "./AndroidSupport.sln" ,
106108 BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac ,
109+ MaxCpuCount = CPU_COUNT ,
107110 OutputFiles = new [ ] {
108111 new OutputFileCopy { FromFile = "./customtabs/source/bin/Release/Xamarin.Android.Support.CustomTabs.dll" } ,
109112 new OutputFileCopy { FromFile = "./design/source/bin/Release/Xamarin.Android.Support.Design.dll" } ,
@@ -136,23 +139,23 @@ var buildSpec = new BuildSpec {
136139 } ,
137140
138141 Samples = new [ ] {
139- new DefaultSolutionBuilder { SolutionPath = "./customtabs/samples/ChromeCustomTabsSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
140- new DefaultSolutionBuilder { SolutionPath = "./design/samples/Cheesesquare.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
141- new DefaultSolutionBuilder { SolutionPath = "./percent/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
142- new DefaultSolutionBuilder { SolutionPath = "./recommendation/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
143- new DefaultSolutionBuilder { SolutionPath = "./v4/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
144- new DefaultSolutionBuilder { SolutionPath = "./v7-appcompat/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
145- new DefaultSolutionBuilder { SolutionPath = "./v7-cardview/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
146- new DefaultSolutionBuilder { SolutionPath = "./v7-gridlayout/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
147- new DefaultSolutionBuilder { SolutionPath = "./v7-mediarouter/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
148- new DefaultSolutionBuilder { SolutionPath = "./v7-palette/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
149- new DefaultSolutionBuilder { SolutionPath = "./v7-preference/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
150- new DefaultSolutionBuilder { SolutionPath = "./v7-recyclerview/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
151- new DefaultSolutionBuilder { SolutionPath = "./v8-renderscript/samples/RenderScriptSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
152- new DefaultSolutionBuilder { SolutionPath = "./v13/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
153- new DefaultSolutionBuilder { SolutionPath = "./v17-leanback/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
154- new DefaultSolutionBuilder { SolutionPath = "./vector-drawable/samples/VectorDrawableSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
155- new DefaultSolutionBuilder { SolutionPath = "./animated-vector-drawable/samples/VectorDrawableSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac } ,
142+ new DefaultSolutionBuilder { SolutionPath = "./customtabs/samples/ChromeCustomTabsSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
143+ new DefaultSolutionBuilder { SolutionPath = "./design/samples/Cheesesquare.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
144+ new DefaultSolutionBuilder { SolutionPath = "./percent/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
145+ new DefaultSolutionBuilder { SolutionPath = "./recommendation/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
146+ new DefaultSolutionBuilder { SolutionPath = "./v4/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
147+ new DefaultSolutionBuilder { SolutionPath = "./v7-appcompat/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
148+ new DefaultSolutionBuilder { SolutionPath = "./v7-cardview/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
149+ new DefaultSolutionBuilder { SolutionPath = "./v7-gridlayout/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
150+ new DefaultSolutionBuilder { SolutionPath = "./v7-mediarouter/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
151+ new DefaultSolutionBuilder { SolutionPath = "./v7-palette/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
152+ new DefaultSolutionBuilder { SolutionPath = "./v7-preference/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
153+ new DefaultSolutionBuilder { SolutionPath = "./v7-recyclerview/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
154+ new DefaultSolutionBuilder { SolutionPath = "./v8-renderscript/samples/RenderScriptSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
155+ new DefaultSolutionBuilder { SolutionPath = "./v13/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
156+ new DefaultSolutionBuilder { SolutionPath = "./v17-leanback/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
157+ new DefaultSolutionBuilder { SolutionPath = "./vector-drawable/samples/VectorDrawableSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
158+ new DefaultSolutionBuilder { SolutionPath = "./animated-vector-drawable/samples/VectorDrawableSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
156159 } ,
157160
158161 NuGets = new [ ] {
0 commit comments