mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-07 14:10:37 +00:00
updated build script to support limited non-xamarin builds
This commit is contained in:
parent
e7498d4971
commit
23b905b392
22
build.fsx
22
build.fsx
|
@ -66,6 +66,8 @@ let gitRaw = environVarOrDefault "gitRaw" "https://raw.github.com/opentk"
|
||||||
// Read additional information from the release notes document
|
// Read additional information from the release notes document
|
||||||
let release = LoadReleaseNotes "RELEASE_NOTES.md"
|
let release = LoadReleaseNotes "RELEASE_NOTES.md"
|
||||||
|
|
||||||
|
let isXamarinPlatform = EnvironmentHelper.isMacOS || Environment.OSVersion.Platform = PlatformID.Win32NT
|
||||||
|
|
||||||
|
|
||||||
// Helper active pattern for project types
|
// Helper active pattern for project types
|
||||||
let (|Fsproj|Csproj|Vbproj|) (projFileName:string) =
|
let (|Fsproj|Csproj|Vbproj|) (projFileName:string) =
|
||||||
|
@ -124,7 +126,16 @@ Target "Clean" (fun _ ->
|
||||||
// Build library & test project
|
// Build library & test project
|
||||||
|
|
||||||
Target "Build" (fun _ ->
|
Target "Build" (fun _ ->
|
||||||
!! solutionFile
|
let xamarinFilter f =
|
||||||
|
if isXamarinPlatform then
|
||||||
|
f
|
||||||
|
else
|
||||||
|
f
|
||||||
|
-- "**/OpenTK.Android.csproj"
|
||||||
|
-- "**/OpenTK.iOS.csproj"
|
||||||
|
|
||||||
|
!! "src/**/*.??proj"
|
||||||
|
|> xamarinFilter
|
||||||
|> MSBuildRelease "" "Rebuild"
|
|> MSBuildRelease "" "Rebuild"
|
||||||
|> ignore
|
|> ignore
|
||||||
)
|
)
|
||||||
|
@ -145,9 +156,18 @@ Target "RunTests" (fun _ ->
|
||||||
// Build a NuGet package
|
// Build a NuGet package
|
||||||
|
|
||||||
Target "NuGet" (fun _ ->
|
Target "NuGet" (fun _ ->
|
||||||
|
let excludes =
|
||||||
|
if isXamarinPlatform then
|
||||||
|
[]
|
||||||
|
else
|
||||||
|
[ "OpenTK.Android"
|
||||||
|
"OpenTK.iOS" ]
|
||||||
|
|
||||||
|
|
||||||
Paket.Pack(fun p ->
|
Paket.Pack(fun p ->
|
||||||
{ p with
|
{ p with
|
||||||
OutputPath = "bin"
|
OutputPath = "bin"
|
||||||
|
ExcludedTemplates = excludes
|
||||||
Version = release.NugetVersion
|
Version = release.NugetVersion
|
||||||
ReleaseNotes = toLines release.Notes})
|
ReleaseNotes = toLines release.Notes})
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue