forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cake
43 lines (32 loc) · 1.14 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
#load "../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
buildSpec = new BuildSpec () {
Libs = new ISolutionBuilder [] {
new DefaultSolutionBuilder {
SolutionPath = "source/Google.AppIndexing.sln",
BuildsOn = BuildPlatforms.Mac,
Configuration = "Release",
OutputFiles = new [] {
new OutputFileCopy {
FromFile = "./source/Google.AppIndexing/bin/Release/Google.AppIndexing.dll",
},
}
}
},
Samples = new ISolutionBuilder [] {
new IOSSolutionBuilder { SolutionPath = "./samples/AppIndexingSample/AppIndexingSample.sln", Configuration = "Release", BuildsOn = BuildPlatforms.Mac },
},
NuGets = new [] {
new NuGetInfo { NuSpec = "./nuget/Xamarin.Google.iOS.AppIndexing.nuspec", BuildsOn = BuildPlatforms.Mac, RequireLicenseAcceptance = true},
},
Components = new [] {
new Component {ManifestDirectory = "./component", BuildsOn = BuildPlatforms.Mac},
},
};
Task ("clean").IsDependentOn ("clean-base").Does (() =>
{
RunMake ("./externals/", "clean");
DeleteFiles ("../tmp-nugets/Xamarin.Google.iOS.AppIndexing*");
});
SetupXamarinBuildTasks (buildSpec, Tasks, Task);
RunTarget (TARGET);