6
6
#addin nuget: ? package = Cake . Json
7
7
#addin nuget: ? package = Cake . XCode
8
8
#addin nuget: ? package = Cake . Xamarin
9
- #addin nuget: ? package = Cake . Xamarin . Build & version = 1.1 .13
9
+ #addin nuget: ? package = Cake . Xamarin . Build & version = 1.1 .14
10
10
#addin nuget: ? package = Cake . FileHelpers
11
11
#addin nuget: ? package = Cake . MonoApiTools
12
12
@@ -30,6 +30,11 @@ var RENDERSCRIPT_FOLDER = "android-7.1.1";
30
30
var BASE_API_INFO_URL = "https: //github.com/xamarin/AndroidSupportComponents/releases/download/25.1.1/api-info.xml";
31
31
32
32
var CPU_COUNT = System. Environment. ProcessorCount;
33
+ var USE_MSBUILD_ON_MAC = true;
34
+
35
+ // MSBUILD has issues on *nix/osx with a different CPU Count being specified
36
+ if ( ! IsRunningOnWindows ( ) )
37
+ CPU_COUNT = 1 ;
33
38
34
39
var AAR_INFOS = new [ ] {
35
40
new AarInfo ( "support- v4", "v4", "Xamarin. Android. Support. v4", AAR_VERSION, NUGET_VERSION, COMPONENT_VERSION),
@@ -109,6 +114,8 @@ var buildSpec = new BuildSpec {
109
114
SolutionPath = "./AndroidSupport.sln" ,
110
115
BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac ,
111
116
MaxCpuCount = CPU_COUNT ,
117
+ AlwaysUseMSBuild = USE_MSBUILD_ON_MAC ,
118
+ Verbosity = Cake . Core . Diagnostics . Verbosity . Diagnostic ,
112
119
OutputFiles = new [ ] {
113
120
new OutputFileCopy { FromFile = "./customtabs/source/bin/" + BUILD_CONFIG + "/Xamarin.Android.Support.CustomTabs.dll" } ,
114
121
new OutputFileCopy { FromFile = "./design/source/bin/" + BUILD_CONFIG + "/Xamarin.Android.Support.Design.dll" } ,
@@ -144,23 +151,23 @@ var buildSpec = new BuildSpec {
144
151
} ,
145
152
146
153
Samples = new [ ] {
147
- new DefaultSolutionBuilder { SolutionPath = "./customtabs/samples/ChromeCustomTabsSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
148
- new DefaultSolutionBuilder { SolutionPath = "./design/samples/Cheesesquare.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
149
- new DefaultSolutionBuilder { SolutionPath = "./percent/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
150
- new DefaultSolutionBuilder { SolutionPath = "./recommendation/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
151
- new DefaultSolutionBuilder { SolutionPath = "./v4/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
152
- new DefaultSolutionBuilder { SolutionPath = "./v7-appcompat/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
153
- new DefaultSolutionBuilder { SolutionPath = "./v7-cardview/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
154
- new DefaultSolutionBuilder { SolutionPath = "./v7-gridlayout/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
155
- new DefaultSolutionBuilder { SolutionPath = "./v7-mediarouter/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
156
- new DefaultSolutionBuilder { SolutionPath = "./v7-palette/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
157
- new DefaultSolutionBuilder { SolutionPath = "./v7-preference/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
158
- new DefaultSolutionBuilder { SolutionPath = "./v7-recyclerview/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
159
- new DefaultSolutionBuilder { SolutionPath = "./v8-renderscript/samples/RenderScriptSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
160
- new DefaultSolutionBuilder { SolutionPath = "./v13/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
161
- new DefaultSolutionBuilder { SolutionPath = "./v17-leanback/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
162
- new DefaultSolutionBuilder { SolutionPath = "./vector-drawable/samples/VectorDrawableSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
163
- new DefaultSolutionBuilder { SolutionPath = "./animated-vector-drawable/samples/VectorDrawableSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT } ,
154
+ new DefaultSolutionBuilder { SolutionPath = "./customtabs/samples/ChromeCustomTabsSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
155
+ new DefaultSolutionBuilder { SolutionPath = "./design/samples/Cheesesquare.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
156
+ new DefaultSolutionBuilder { SolutionPath = "./percent/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
157
+ new DefaultSolutionBuilder { SolutionPath = "./recommendation/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
158
+ new DefaultSolutionBuilder { SolutionPath = "./v4/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
159
+ new DefaultSolutionBuilder { SolutionPath = "./v7-appcompat/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
160
+ new DefaultSolutionBuilder { SolutionPath = "./v7-cardview/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
161
+ new DefaultSolutionBuilder { SolutionPath = "./v7-gridlayout/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
162
+ new DefaultSolutionBuilder { SolutionPath = "./v7-mediarouter/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
163
+ new DefaultSolutionBuilder { SolutionPath = "./v7-palette/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
164
+ new DefaultSolutionBuilder { SolutionPath = "./v7-preference/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
165
+ new DefaultSolutionBuilder { SolutionPath = "./v7-recyclerview/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
166
+ new DefaultSolutionBuilder { SolutionPath = "./v8-renderscript/samples/RenderScriptSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
167
+ new DefaultSolutionBuilder { SolutionPath = "./v13/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
168
+ new DefaultSolutionBuilder { SolutionPath = "./v17-leanback/samples/AndroidSupportSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
169
+ new DefaultSolutionBuilder { SolutionPath = "./vector-drawable/samples/VectorDrawableSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
170
+ new DefaultSolutionBuilder { SolutionPath = "./animated-vector-drawable/samples/VectorDrawableSample.sln" , BuildsOn = BuildPlatforms . Windows | BuildPlatforms . Mac , MaxCpuCount = CPU_COUNT , AlwaysUseMSBuild = USE_MSBUILD_ON_MAC } ,
164
171
} ,
165
172
166
173
NuGets = new [ ] {
0 commit comments