-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.fsx
52 lines (36 loc) · 1.55 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
#load @"paket-files/build/aardvark-platform/aardvark.fake/DefaultSetup.fsx"
open Fake
open System
open System.IO
open System.Diagnostics
open Aardvark.Fake
do Environment.CurrentDirectory <- __SOURCE_DIRECTORY__
DefaultSetup.install ["src/Fablish.sln"]
Target "Tests" (fun () ->
Fake.NUnitSequential.NUnit (fun p -> { p with ToolPath = @"packages\NUnit.Runners\tools"
ToolName = "nunit-console.exe" }) [@"bin\Release\Aardvark.Base.Incremental.Tests.exe"]
)
Target "Statistics" (fun () ->
let fsFiles = !!"src/**/*.fs"
let mutable stats = Map.empty
for f in fsFiles do
tracefn "file: %A" f
()
)
let libs = [
"FSharp.Compiler.Service.dll"
//"FSharp.Compiler.Service.MSBuild.v12.dll"
"FSharp.Core.dll"
"System.Collections.Immutable.dll"
"System.Reflection.Metadata.dll"
"System.Runtime.dll"
]
Target "Merge" (fun () ->
ILMergeHelper.ILMerge (fun p ->
{ p with TargetKind = TargetKind.Exe
SearchDirectories = [@"src/fablish-hmr/bin/Debug/";@"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5";@"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades"]
TargetPlatform = @"v4,C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5"
ToolPath = @"C:\Program Files (x86)\Microsoft\ILMerge\ILMerge.exe"
Libraries = libs }) "merged.exe" @"src/fablish-hmr/bin/Debug/fablish-hmr.exe"
)
entry()