forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cake
46 lines (34 loc) · 1.23 KB
/
build.cake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#load "../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
buildSpec = new BuildSpec () {
Libs = new ISolutionBuilder [] {
new DefaultSolutionBuilder {
SolutionPath = "source/Google.InstanceID.sln",
Configuration = "Release",
BuildsOn = BuildPlatforms.Mac,
OutputFiles = new [] {
new OutputFileCopy {
FromFile = "./source/Google.InstanceID/bin/Release/Google.InstanceID.dll",
},
}
}
},
Samples = new ISolutionBuilder [] {
new IOSSolutionBuilder { SolutionPath = "./samples/InstanceIDSample/InstanceIDSample.sln", Configuration = "Release", BuildsOn = BuildPlatforms.Mac },
},
NuGets = new [] {
new NuGetInfo { NuSpec = "./nuget/Xamarin.Google.iOS.InstanceID.nuspec", BuildsOn = BuildPlatforms.Mac, RequireLicenseAcceptance = true},
},
Components = new [] {
new Component {ManifestDirectory = "./component", BuildsOn = BuildPlatforms.Mac},
},
};
MyDependencies = new [] {"Google.Core"};
Task ("clean").IsDependentOn ("clean-base").Does (() =>
{
InvokeOtherGoogleModules (MyDependencies, "clean");
RunMake ("./externals/", "clean");
DeleteFiles ("../tmp-nugets/Xamarin.Google.iOS.InstanceID*");
});
SetupXamarinBuildTasks (buildSpec, Tasks, Task);
RunTarget (TARGET);