forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cake
36 lines (25 loc) · 1.04 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
#load "../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
buildSpec = new BuildSpec () {
Samples = new ISolutionBuilder [] {
new IOSSolutionBuilder { SolutionPath = "./samples/AdMobSample/AdMobSample.sln", Configuration = "Release", BuildsOn = BuildPlatforms.Mac },
},
NuGets = new [] {
new NuGetInfo { NuSpec = "./nuget/Xamarin.Firebase.iOS.AdMob.nuspec", BuildsOn = BuildPlatforms.Mac, RequireLicenseAcceptance = true},
},
Components = new [] {
new Component {ManifestDirectory = "./component", BuildsOn = BuildPlatforms.Mac},
},
};
MyDependencies = new [] { "Firebase.Analytics", "Google.MobileAds" };
Task ("pre-nuget-base").IsDependeeOf ("nuget-base").Does (() => {
StartProcess("touch", new ProcessSettings { Arguments = "_._" });
});
Task ("clean").IsDependentOn ("clean-base").Does (() =>
{
InvokeOtherGoogleModules (MyDependencies, "clean");
RunMake ("./externals/", "clean");
DeleteFiles ("../tmp-nugets/Xamarin.Google.iOS.Core*");
});
SetupXamarinBuildTasks (buildSpec, Tasks, Task);
RunTarget (TARGET);