forked from xamarin/SignaturePad
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.cake
96 lines (85 loc) · 3.45 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#tool nuget:?package=XamarinComponent&version=1.1.0.40
#addin nuget:?package=Cake.Xamarin.Build&version=1.0.14.0
#addin nuget:?package=Cake.Xamarin
BuildSpec buildSpec = null;
var TARGET = Argument ("t", Argument ("target", "Default"));
buildSpec = new BuildSpec () {
Libs = new ISolutionBuilder [] {
new DefaultSolutionBuilder {
SolutionPath = "src/SignaturePad.Mac.sln",
BuildsOn = BuildPlatforms.Mac,
OutputFiles = new [] {
new OutputFileCopy {
FromFile = "./src/SignaturePad.Android/bin/Release/SignaturePad.dll",
ToDirectory = "output/android",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.iOS/bin/unified/Release/SignaturePad.dll",
ToDirectory = "output/ios-unified",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.Forms/bin/Release/SignaturePad.Forms.dll",
ToDirectory = "output/pcl",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.Forms.Droid/bin/Release/SignaturePad.Forms.Droid.dll",
ToDirectory = "output/android",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.Forms.iOS/bin/Release/SignaturePad.Forms.iOS.dll",
ToDirectory = "output/ios-unified",
},
}
},
new WpSolutionBuilder {
SolutionPath = "src/SignaturePad.sln",
BuildsOn = BuildPlatforms.Windows,
OutputFiles = new [] {
new OutputFileCopy {
FromFile = "./src/SignaturePad.Android/bin/Release/SignaturePad.dll",
ToDirectory = "output/android",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.iOS/bin/unified/Release/SignaturePad.dll",
ToDirectory = "output/ios-unified",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.Forms/bin/Release/SignaturePad.Forms.dll",
ToDirectory = "output/pcl",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.Forms.Droid/bin/Release/SignaturePad.Forms.Droid.dll",
ToDirectory = "output/android",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.Forms.iOS/bin/Release/SignaturePad.Forms.iOS.dll",
ToDirectory = "output/ios-unified",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.WP8/bin/Release/SignaturePad.dll",
ToDirectory = "output/wp8",
},
new OutputFileCopy {
FromFile = "./src/SignaturePad.Forms.WindowsPhone/bin/Release/SignaturePad.Forms.WindowsPhone.dll",
ToDirectory = "output/wp8",
},
}
}
},
Samples = new ISolutionBuilder [] {
new DefaultSolutionBuilder { SolutionPath = "./samples/Sample.Android/Sample.Android.sln", BuildsOn = BuildPlatforms.Mac | BuildPlatforms.Windows},
new IOSSolutionBuilder { SolutionPath = "./samples/Sample.iOS/Sample.iOS.sln", BuildsOn = BuildPlatforms.Mac },
new IOSSolutionBuilder { SolutionPath = "./samples/Sample.Forms/Sample.Forms.Mac.sln", BuildsOn = BuildPlatforms.Mac },
new WpSolutionBuilder { SolutionPath = "./samples/Sample.WP8/Sample.WP8.sln", BuildsOn = BuildPlatforms.Windows },
new WpSolutionBuilder { SolutionPath = "./samples/Sample.Forms/Sample.Forms.Win.sln", BuildsOn = BuildPlatforms.Windows },
},
NuGets = new [] {
new NuGetInfo { NuSpec = "./nuget/Xamarin.Controls.SignaturePad.nuspec", BuildsOn = BuildPlatforms.Mac },
new NuGetInfo { NuSpec = "./nuget/Xamarin.Controls.SignaturePad.Forms.nuspec", BuildsOn = BuildPlatforms.Mac },
},
Components = new [] {
new Component {ManifestDirectory = "./component", BuildsOn = BuildPlatforms.Mac },
},
};
SetupXamarinBuildTasks (buildSpec, Tasks, Task);
RunTarget (TARGET);