forked from xamarin/prebuilt-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.fsx
46 lines (34 loc) · 1.27 KB
/
build.fsx
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
#I "tools/FAKE/tools"
#r "FakeLib.dll"
#load "tools/XamarinHelper.fsx"
#nowarn "20"
open System
open System.IO
open Fake
open Fake.FileUtils
open Fake.RestorePackageHelper
open Fake.XamarinHelper
Target "Restore" <| fun _ ->
RestoreComponents "FieldService/FieldService.Xamarin.sln"
RestoreComponents "EmployeeDirectory/EmployeeDirectory.Xamarin.sln"
RestorePackages ()
Target "Build" <| fun _ ->
BuildiOSPackage "FieldService/FieldService.iOS/FieldService.iOS.csproj"
BuildiOSPackage "EmployeeDirectory/EmployeeDirectory.iOS/EmployeeDirectory.iOS.csproj"
BuildAndroidPackage "FieldService/FieldService.Android/FieldService.Android.csproj"
BuildAndroidPackage "EmployeeDirectory/EmployeeDirectory.Android/EmployeeDirectory.Android.csproj"
Target "Clean" <| fun _ ->
CleanDirs [
"FieldService/FieldService.iOS/bin"
"FieldService/FieldService.iOS/obj"
"EmployeeDirectory/EmployeeDirectory.iOS/bin"
"EmployeeDirectory/EmployeeDirectory.iOS/obj"
"FieldService/FieldService.Android/bin"
"FieldService/FieldService.Android/obj"
"EmployeeDirectory/EmployeeDirectory.Android/bin"
"EmployeeDirectory/EmployeeDirectory.Android/obj"
]
"Clean"
==> "Restore"
==> "Build"
RunTargetOrDefault "Build"