Merge pull request #703 from Nihlus/remove-bindings-from.git

Remove bindings from Git
This commit is contained in:
Jarl Gullberg 2017-12-27 21:52:42 +01:00 committed by GitHub
commit 3f1f427c94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 47 additions and 490264 deletions

20
.gitignore vendored
View file

@ -376,12 +376,9 @@ nuget/*.nupkg
release.cmd release.cmd
release.sh release.sh
localpackages/ localpackages/
paket-files
*.orig *.orig
.paket/paket.exe
docs/content/license.md docs/content/license.md
docs/content/release-notes.md docs/content/release-notes.md
.fake
docs/tools/FSharp.Formatting.svclog docs/tools/FSharp.Formatting.svclog
# =========== # ===========
@ -441,11 +438,9 @@ fabric.properties
# ============ # ============
#User Specific #User Specific
*.userprefs
*.usertasks *.usertasks
#Mono Project Files #Mono Project Files
*.pidb
*.resources *.resources
test-results/ test-results/
@ -453,8 +448,6 @@ test-results/
# Linux-specific # Linux-specific
# ================ # ================
*~
# temporary files which can be created if a process still has a handle open of a deleted file # temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden* .fuse_hidden*
@ -482,7 +475,6 @@ test-results/
# ============ # ============
# -*- mode: gitignore; -*- # -*- mode: gitignore; -*-
*~
\#*\# \#*\#
/.emacs.desktop /.emacs.desktop
/.emacs.desktop.lock /.emacs.desktop.lock
@ -542,6 +534,16 @@ Session.vim
# Temporary # Temporary
.netrwhist .netrwhist
*~
# Auto-generated tag files # Auto-generated tag files
tags tags
# OpenTK Binding files
.bindingsGenerated
src/OpenTK/Graphics/ES11/ES11.cs
src/OpenTK/Graphics/ES11/ES11Enums.cs
src/OpenTK/Graphics/ES20/ES20.cs
src/OpenTK/Graphics/ES20/ES20Enums.cs
src/OpenTK/Graphics/OpenGL/GL.cs
src/OpenTK/Graphics/OpenGL/GLEnums.cs
src/OpenTK/Graphics/OpenGL4/GL4.cs
src/OpenTK/Graphics/OpenGL4/GL4Enums.cs

View file

@ -50,9 +50,7 @@ Note what installing NuGet package will add reference to OpenTK.dll, but OpenTK.
will not be copied to the project output directory automatically, so you need to add it to your project will not be copied to the project output directory automatically, so you need to add it to your project
and then enable the "Copy to Output Directory" option (as in step 3 below). and then enable the "Copy to Output Directory" option (as in step 3 below).
To build OpenTK from source, simply double-click OpenTK.sln and build through your IDE. To build OpenTK from source, do the following once:
Alternatively, open a command prompt and type:
``` ```
git clone https://github.com/opentk/opentk # Download source code from git git clone https://github.com/opentk/opentk # Download source code from git
cd opentk # Enter the source directory cd opentk # Enter the source directory
@ -60,6 +58,8 @@ cd opentk # Enter the source directory
./build.sh # Build on Mono (Linux / Mac OS X) ./build.sh # Build on Mono (Linux / Mac OS X)
``` ```
After this is done at least once, you can build OpenTK normally through
your IDE.
News News
==== ====

View file

@ -11,6 +11,7 @@ open Fake.UserInputHelper
open Fake.Testing open Fake.Testing
open System open System
open System.IO open System.IO
open System.Diagnostics
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
// START TODO: Provide project-specific details below // START TODO: Provide project-specific details below
@ -78,7 +79,10 @@ let (|Fsproj|Csproj|Vbproj|) (projFileName:string) =
| _ -> failwith (sprintf "Project file %s not supported. Unknown project type." projFileName) | _ -> failwith (sprintf "Project file %s not supported. Unknown project type." projFileName)
let activeProjects = let buildProjects =
!! "src/Generator.*/**.csproj"
let runtimeProjects =
let xamarinFilter f = let xamarinFilter f =
if isXamarinPlatform then if isXamarinPlatform then
f f
@ -89,8 +93,24 @@ let activeProjects =
!! "src/**/*.??proj" !! "src/**/*.??proj"
++ "tests/**/OpenTK.Tests*.fsproj" ++ "tests/**/OpenTK.Tests*.fsproj"
-- "src/Generator.*/**.csproj"
|> xamarinFilter |> xamarinFilter
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 // Generate assembly info files with the right version & up-to-date information
Target "AssemblyInfo" (fun _ -> Target "AssemblyInfo" (fun _ ->
let getAssemblyInfoAttributes (projectName:string) = let getAssemblyInfoAttributes (projectName:string) =
@ -142,10 +162,18 @@ Target "Clean" (fun _ ->
CleanDirs ["bin"; "temp"] CleanDirs ["bin"; "temp"]
) )
// --------------------------------------------------------------------------------------
// Build generator projects, and generate bindings if neccesary
Target "GenerateBindings" (fun _ ->
generateBindings
|> ignore
)
// -------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------
// Build library & test project // Build library & test project
Target "Build" (fun _ -> Target "Build" (fun _ ->
generateBindings
activeProjects activeProjects
|> MSBuildRelease "" "Build" |> MSBuildRelease "" "Build"
|> ignore |> ignore

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff