forked from xamarin/FacebookComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cake
28 lines (22 loc) · 817 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
var VERBOSITY = Argument ("v", Argument ("verbosity", Verbosity.Normal));
var CONFIGURATION = Argument ("c", Argument ("configuration", "Release"));
var TARGET = Argument ("t", Argument ("target", "ci"));
// key/value of (path, macOnly)
var PROJECTS = new Dictionary<DirectoryPath, bool> {
{ "./Facebook.Android/", false },
{ "./Facebook.iOS/", true }
};
var cakeSettings = new CakeSettings {
Arguments = new Dictionary<string, string> {
{ "configuration", CONFIGURATION },
{ "target", TARGET },
},
Verbosity = VERBOSITY
};
foreach (var project in PROJECTS) {
if (project.Value && IsRunningOnWindows ())
continue;
CakeExecuteScript (project.Key.CombineWithFilePath ("build.cake"), cakeSettings);
EnsureDirectoryExists ("./output/");
CopyDirectory (project.Key.Combine ("output"), "./output/");
}