let copyright = "Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library."
-// File system information
+// File system information
let solutionFile = "OpenTK.sln"
// Pattern specifying assemblies to be tested using NUnit
// Git configuration (used for publishing documentation in gh-pages branch)
// The profile where the project is posted
-let gitOwner = "opentk"
+let gitOwner = "opentk"
let gitHome = "https://github.com/" + gitOwner
// The name of the project on GitHub
// Helper active pattern for project types
-let (|Fsproj|Csproj|Vbproj|) (projFileName:string) =
+let (|Fsproj|Csproj|Vbproj|) (projFileName:string) =
match projFileName with
| f when f.EndsWith "fsproj" -> Fsproj
| f when f.EndsWith "csproj" -> Csproj
| _ -> failwith (sprintf "Project file %s not supported. Unknown project type." projFileName)
-let activeProjects =
- let xamarinFilter f =
+let activeProjects =
+ let xamarinFilter f =
if isXamarinPlatform then
f
else
f
-- "**/OpenTK.Android.csproj"
-- "**/OpenTK.iOS.csproj"
-
+
!! "src/**/*.??proj"
++ "tests/**/OpenTK.Tests.fsproj"
- -- "**/OpenTK.GLWidget.csproj"
|> xamarinFilter
// Generate assembly info files with the right version & up-to-date information
Target "AssemblyInfo" (fun _ ->
let getAssemblyInfoAttributes (projectName:string) =
- let projectName =
+ let projectName =
if projectName.Contains(".iOS") || projectName.Contains(".Android") then
projectName.Split('.').[0]
else
let getProjectDetails projectPath =
let projectName = System.IO.Path.GetFileNameWithoutExtension(projectPath)
- ( projectPath,
+ ( projectPath,
projectName,
System.IO.Path.GetDirectoryName(projectPath),
(getAssemblyInfoAttributes projectName)
)
// Copies binaries from default VS location to expected bin folder
-// But keeps a subdirectory structure for each project in the
+// But keeps a subdirectory structure for each project in the
// src folder to support multiple project outputs
Target "CopyBinaries" (fun _ ->
activeProjects
"OpenTK.iOS" ]
- Paket.Pack(fun p ->
+ Paket.Pack(fun p ->
{ p with
OutputPath = "bin"
ExcludedTemplates = "OpenTK.GLWidget" :: xamExcludes
==> "RunTests"
==> "All"
-"All"
+"All"
==> "NuGet"