mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-03 16:25:45 +00:00
Merge pull request #709 from Frassle/buildfixes
Couple of build system fixes
This commit is contained in:
commit
5d9a08801b
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -548,3 +548,7 @@ src/OpenTK/Graphics/OpenGL/GL.cs
|
|||
src/OpenTK/Graphics/OpenGL/GLEnums.cs
|
||||
src/OpenTK/Graphics/OpenGL4/GL4.cs
|
||||
src/OpenTK/Graphics/OpenGL4/GL4Enums.cs
|
||||
|
||||
# OpenTK AssemblyInfo files
|
||||
**/Properties/AssemblyInfo.cs
|
||||
**/AssemblyInfo.fs
|
||||
|
|
26
build.fsx
26
build.fsx
|
@ -99,17 +99,6 @@ let runtimeProjects =
|
|||
let activeProjects =
|
||||
Seq.concat [buildProjects; runtimeProjects]
|
||||
|
||||
let generateBindings =
|
||||
if not (File.Exists(".bindingsGenerated")) then
|
||||
buildProjects
|
||||
|> MSBuildRelease "" "Build"
|
||||
|> ignore
|
||||
let bindingProcess = new Process()
|
||||
bindingProcess.StartInfo.FileName <- Path.Combine("src", "Generator.Bind", "bin", "Release", "Bind.exe")
|
||||
bindingProcess.Start() |> ignore
|
||||
bindingProcess.WaitForExit() |> ignore
|
||||
File.Create(".bindingsGenerated").Close() |> ignore
|
||||
|
||||
|
||||
// Generate assembly info files with the right version & up-to-date information
|
||||
Target "AssemblyInfo" (fun _ ->
|
||||
|
@ -136,7 +125,7 @@ Target "AssemblyInfo" (fun _ ->
|
|||
(getAssemblyInfoAttributes projectName)
|
||||
)
|
||||
|
||||
!! "src/**/*.??proj"
|
||||
activeProjects
|
||||
|> Seq.map getProjectDetails
|
||||
|> Seq.iter (fun (projFileName, projectName, folderName, attributes) ->
|
||||
match projFileName with
|
||||
|
@ -165,15 +154,23 @@ Target "Clean" (fun _ ->
|
|||
// --------------------------------------------------------------------------------------
|
||||
// Build generator projects, and generate bindings if neccesary
|
||||
Target "GenerateBindings" (fun _ ->
|
||||
generateBindings
|
||||
if not (File.Exists(".bindingsGenerated")) then
|
||||
buildProjects
|
||||
|> MSBuildRelease "" "Build"
|
||||
|> ignore
|
||||
let bindingProcess = new Process()
|
||||
bindingProcess.StartInfo.FileName <- Path.Combine("src", "Generator.Bind", "bin", "Release", "Bind.exe")
|
||||
if bindingProcess.Start() then
|
||||
bindingProcess.WaitForExit()
|
||||
File.Create(".bindingsGenerated").Close()
|
||||
else
|
||||
failwith "Could not start Bind.exe"
|
||||
)
|
||||
|
||||
// --------------------------------------------------------------------------------------
|
||||
// Build library & test project
|
||||
|
||||
Target "Build" (fun _ ->
|
||||
generateBindings
|
||||
activeProjects
|
||||
|> MSBuildRelease "" "Build"
|
||||
|> ignore
|
||||
|
@ -221,6 +218,7 @@ Target "All" DoNothing
|
|||
|
||||
"Clean"
|
||||
==> "AssemblyInfo"
|
||||
==> "GenerateBindings"
|
||||
==> "Build"
|
||||
==> "CopyBinaries"
|
||||
==> "RunTests"
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
// <auto-generated/>
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyTitleAttribute("Generator.Bind")]
|
||||
[assembly: AssemblyProductAttribute("OpenTK")]
|
||||
[assembly: AssemblyDescriptionAttribute("A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.")]
|
||||
[assembly: AssemblyVersionAttribute("3.0.0")]
|
||||
[assembly: AssemblyFileVersionAttribute("3.0.0")]
|
||||
[assembly: CLSCompliantAttribute(true)]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.")]
|
||||
namespace System {
|
||||
internal static class AssemblyVersionInformation {
|
||||
internal const System.String AssemblyTitle = "Generator.Bind";
|
||||
internal const System.String AssemblyProduct = "OpenTK";
|
||||
internal const System.String AssemblyDescription = "A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.";
|
||||
internal const System.String AssemblyVersion = "3.0.0";
|
||||
internal const System.String AssemblyFileVersion = "3.0.0";
|
||||
internal const System.Boolean CLSCompliant = true;
|
||||
internal const System.String AssemblyCopyright = "Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.";
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
// <auto-generated/>
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyTitleAttribute("Generator.Convert")]
|
||||
[assembly: AssemblyProductAttribute("OpenTK")]
|
||||
[assembly: AssemblyDescriptionAttribute("A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.")]
|
||||
[assembly: AssemblyVersionAttribute("3.0.0")]
|
||||
[assembly: AssemblyFileVersionAttribute("3.0.0")]
|
||||
[assembly: CLSCompliantAttribute(true)]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.")]
|
||||
namespace System {
|
||||
internal static class AssemblyVersionInformation {
|
||||
internal const System.String AssemblyTitle = "Generator.Convert";
|
||||
internal const System.String AssemblyProduct = "OpenTK";
|
||||
internal const System.String AssemblyDescription = "A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.";
|
||||
internal const System.String AssemblyVersion = "3.0.0";
|
||||
internal const System.String AssemblyFileVersion = "3.0.0";
|
||||
internal const System.Boolean CLSCompliant = true;
|
||||
internal const System.String AssemblyCopyright = "Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.";
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
// <auto-generated/>
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyTitleAttribute("Generator.Rewrite")]
|
||||
[assembly: AssemblyProductAttribute("OpenTK")]
|
||||
[assembly: AssemblyDescriptionAttribute("A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.")]
|
||||
[assembly: AssemblyVersionAttribute("3.0.0")]
|
||||
[assembly: AssemblyFileVersionAttribute("3.0.0")]
|
||||
[assembly: CLSCompliantAttribute(true)]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.")]
|
||||
namespace System {
|
||||
internal static class AssemblyVersionInformation {
|
||||
internal const System.String AssemblyTitle = "Generator.Rewrite";
|
||||
internal const System.String AssemblyProduct = "OpenTK";
|
||||
internal const System.String AssemblyDescription = "A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.";
|
||||
internal const System.String AssemblyVersion = "3.0.0";
|
||||
internal const System.String AssemblyFileVersion = "3.0.0";
|
||||
internal const System.Boolean CLSCompliant = true;
|
||||
internal const System.String AssemblyCopyright = "Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.";
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
// <auto-generated/>
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyTitleAttribute("OpenTK.GLControl")]
|
||||
[assembly: AssemblyProductAttribute("OpenTK")]
|
||||
[assembly: AssemblyDescriptionAttribute("A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.")]
|
||||
[assembly: AssemblyVersionAttribute("3.0.0")]
|
||||
[assembly: AssemblyFileVersionAttribute("3.0.0")]
|
||||
[assembly: CLSCompliantAttribute(true)]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.")]
|
||||
namespace System {
|
||||
internal static class AssemblyVersionInformation {
|
||||
internal const System.String AssemblyTitle = "OpenTK.GLControl";
|
||||
internal const System.String AssemblyProduct = "OpenTK";
|
||||
internal const System.String AssemblyDescription = "A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.";
|
||||
internal const System.String AssemblyVersion = "3.0.0";
|
||||
internal const System.String AssemblyFileVersion = "3.0.0";
|
||||
internal const System.Boolean CLSCompliant = true;
|
||||
internal const System.String AssemblyCopyright = "Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.";
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
// <auto-generated/>
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyTitleAttribute("OpenTK.GLWidget")]
|
||||
[assembly: AssemblyProductAttribute("OpenTK")]
|
||||
[assembly: AssemblyDescriptionAttribute("A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.")]
|
||||
[assembly: AssemblyVersionAttribute("3.0.0")]
|
||||
[assembly: AssemblyFileVersionAttribute("3.0.0")]
|
||||
[assembly: CLSCompliantAttribute(true)]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.")]
|
||||
namespace System {
|
||||
internal static class AssemblyVersionInformation {
|
||||
internal const System.String AssemblyTitle = "OpenTK.GLWidget";
|
||||
internal const System.String AssemblyProduct = "OpenTK";
|
||||
internal const System.String AssemblyDescription = "A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.";
|
||||
internal const System.String AssemblyVersion = "3.0.0";
|
||||
internal const System.String AssemblyFileVersion = "3.0.0";
|
||||
internal const System.Boolean CLSCompliant = true;
|
||||
internal const System.String AssemblyCopyright = "Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.";
|
||||
}
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
// <auto-generated/>
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: AssemblyTitleAttribute("OpenTK")]
|
||||
[assembly: AssemblyProductAttribute("OpenTK")]
|
||||
[assembly: AssemblyDescriptionAttribute("A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.")]
|
||||
[assembly: AssemblyVersionAttribute("3.0.0")]
|
||||
[assembly: AssemblyFileVersionAttribute("3.0.0")]
|
||||
[assembly: CLSCompliantAttribute(true)]
|
||||
[assembly: AssemblyCopyrightAttribute("Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.")]
|
||||
[assembly: InternalsVisibleToAttribute("OpenTK.GLWidget, PublicKey=0024000004800000940000000602000000240000525341310004000011000000a3e05aafb87f71fb8fd02b512707f289c12341de98c6ce2ec1494b71c20cb2032cbd65d091b447df3ec772257efb9fa3591201937890e067da1d29a339948a12b29c2847a787cc9fbef2a3bf78267026e85f36aab827228df4bb580e3ae0599ade036f0a97a0e6982f5406d98d114455f332350f6d8369db655e9c3e7976c2c8")]
|
||||
namespace System {
|
||||
internal static class AssemblyVersionInformation {
|
||||
internal const System.String AssemblyTitle = "OpenTK";
|
||||
internal const System.String AssemblyProduct = "OpenTK";
|
||||
internal const System.String AssemblyDescription = "A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.";
|
||||
internal const System.String AssemblyVersion = "3.0.0";
|
||||
internal const System.String AssemblyFileVersion = "3.0.0";
|
||||
internal const System.Boolean CLSCompliant = true;
|
||||
internal const System.String AssemblyCopyright = "Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.";
|
||||
internal const System.String InternalsVisibleTo = "OpenTK.GLWidget, PublicKey=0024000004800000940000000602000000240000525341310004000011000000a3e05aafb87f71fb8fd02b512707f289c12341de98c6ce2ec1494b71c20cb2032cbd65d091b447df3ec772257efb9fa3591201937890e067da1d29a339948a12b29c2847a787cc9fbef2a3bf78267026e85f36aab827228df4bb580e3ae0599ade036f0a97a0e6982f5406d98d114455f332350f6d8369db655e9c3e7976c2c8";
|
||||
}
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
namespace OpenTK.Tests.Integration.AssemblyInfo
|
||||
|
||||
open System.Reflection
|
||||
open System.Runtime.CompilerServices
|
||||
open System.Runtime.InteropServices
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[<assembly: AssemblyTitle("OpenTK.Tests.Integration")>]
|
||||
[<assembly: AssemblyDescription("")>]
|
||||
[<assembly: AssemblyConfiguration("")>]
|
||||
[<assembly: AssemblyCompany("")>]
|
||||
[<assembly: AssemblyProduct("OpenTK.Tests.Integration")>]
|
||||
[<assembly: AssemblyCopyright("Copyright © 2017")>]
|
||||
[<assembly: AssemblyTrademark("")>]
|
||||
[<assembly: AssemblyCulture("")>]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[<assembly: ComVisible(false)>]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[<assembly: Guid("522d9279-3ed6-475f-867a-6ae69a53c24a")>]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [<assembly: AssemblyVersion("1.0.*")>]
|
||||
[<assembly: AssemblyVersion("1.0.0.0")>]
|
||||
[<assembly: AssemblyFileVersion("1.0.0.0")>]
|
||||
|
||||
do
|
||||
()
|
|
@ -1,41 +0,0 @@
|
|||
namespace OpenTK.Tests.AssemblyInfo
|
||||
|
||||
open System.Reflection
|
||||
open System.Runtime.CompilerServices
|
||||
open System.Runtime.InteropServices
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[<assembly: AssemblyTitle("OpenTK.Tests")>]
|
||||
[<assembly: AssemblyDescription("")>]
|
||||
[<assembly: AssemblyConfiguration("")>]
|
||||
[<assembly: AssemblyCompany("")>]
|
||||
[<assembly: AssemblyProduct("OpenTK.Tests")>]
|
||||
[<assembly: AssemblyCopyright("Copyright © 2017")>]
|
||||
[<assembly: AssemblyTrademark("")>]
|
||||
[<assembly: AssemblyCulture("")>]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[<assembly: ComVisible(false)>]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[<assembly: Guid("6801c263-adda-4a7b-979d-649bcb5a1df7")>]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [<assembly: AssemblyVersion("1.0.*")>]
|
||||
[<assembly: AssemblyVersion("1.0.0.0")>]
|
||||
[<assembly: AssemblyFileVersion("1.0.0.0")>]
|
||||
|
||||
do
|
||||
()
|
Loading…
Reference in a new issue