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