This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.fsx
72 lines (57 loc) · 1.94 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
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
// include Fake lib
#r "packages/netframework/FAKE/tools/FakeLib.dll"
open Fake
// Properties
let mmalSharpCommonReleasedir = "./src/MMALSharp.Common/bin/Release"
let mmalSharpCommonDebugdir = "./src/MMALSharp.Common/bin/Debug"
let mmalSharpReleaseDir = "./src/MMALSharp/bin/Release"
let mmalSharpDebugDir = "./src/MMALSharp/bin/Debug"
let mmalSharpFFmpegReleasedir = "./src/MMALSharp.FFmpeg/bin/Release"
let mmalSharpFFmpegDebugdir = "./src/MMALSharp.FFmpeg/bin/Debug"
// Targets
Target "Clean" (fun _ ->
CleanDirs [mmalSharpCommonReleasedir; mmalSharpCommonDebugdir; mmalSharpReleaseDir; mmalSharpDebugDir; mmalSharpFFmpegReleasedir; mmalSharpFFmpegDebugdir]
)
Target "MMALSharpCommonReleaseApp" (fun _ ->
!! "src/MMALSharp.Common/*.csproj"
|> MSBuildRelease mmalSharpCommonReleasedir "Build"
|> Log "AppBuild-Output: "
)
Target "MMALSharpCommonDebugApp" (fun _ ->
!! "src/MMALSharp.Common/*.csproj"
|> MSBuildDebug mmalSharpCommonDebugdir "Build"
|> Log "AppBuild-Output: "
)
Target "MMALSharpReleaseApp" (fun _ ->
!! "src/MMALSharp/*.csproj"
|> MSBuildRelease mmalSharpReleaseDir "Build"
|> Log "AppBuild-Output: "
)
Target "MMALSharpDebugApp" (fun _ ->
!! "src/MMALSharp/*.csproj"
|> MSBuildDebug mmalSharpDebugDir "Build"
|> Log "AppBuild-Output: "
)
Target "MMALSharpFFmpegReleaseApp" (fun _ ->
!! "src/MMALSharp.FFmpeg/*.csproj"
|> MSBuildRelease mmalSharpFFmpegReleasedir "Build"
|> Log "AppBuild-Output: "
)
Target "MMALSharpFFmpegDebugApp" (fun _ ->
!! "src/MMALSharp.FFmpeg/*.csproj"
|> MSBuildDebug mmalSharpFFmpegDebugdir "Build"
|> Log "AppBuild-Output: "
)
Target "Default" (fun _ ->
trace "Default target executed"
)
// Dependencies
"Clean"
==> "MMALSharpCommonReleaseApp"
==> "MMALSharpCommonDebugApp"
==> "MMALSharpReleaseApp"
==> "MMALSharpDebugApp"
==> "MMALSharpFFmpegReleaseApp"
==> "MMALSharpFFmpegDebugApp"
// start build
RunTargetOrDefault "Default"