forked from xamarin/XamarinComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cake
35 lines (28 loc) · 963 Bytes
/
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
#load "../../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
var buildSpec = new BuildSpec () {
Libs = new ISolutionBuilder [] {
new DefaultSolutionBuilder {
SolutionPath = "./source/ITSwitch.sln",
Configuration = "Release",
BuildsOn = BuildPlatforms.Mac,
OutputFiles = new [] {
new OutputFileCopy {
FromFile = "./source/ITSwitch/bin/Release/ITSwitch.dll",
ToDirectory = "./output/unified/"
},
}
},
},
Samples = new ISolutionBuilder [] {
new DefaultSolutionBuilder { SolutionPath = "./samples/ITSwitchSample/ITSwitchSample.sln", Configuration = "Release", BuildsOn = BuildPlatforms.Mac },
},
NuGets = new [] {
new NuGetInfo { NuSpec = "./nuget/ITSwitch.nuspec", BuildsOn = BuildPlatforms.Mac },
},
Components = new [] {
new Component { ManifestDirectory = "./component", BuildsOn = BuildPlatforms.Mac},
},
};
SetupXamarinBuildTasks (buildSpec, Tasks, Task);
RunTarget (TARGET);