forked from go-gl/glfw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from techievee/fix/v3.2-vendoring-issues
add dummy files similar to fix of go-gl#258 for version of 3.3 to make the…
- Loading branch information
Showing
8 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// +build required | ||
|
||
package glfw | ||
|
||
// This file exists purely to prevent the golang toolchain from stripping | ||
// away the c source directories and files when `go mod vendor` is used | ||
// to populate a `vendor/` directory of a project depending on `go-gl/glfw`. | ||
// | ||
// How it works: | ||
// - every directory which only includes c source files receives a dummy.go file. | ||
// - every directory we want to preserve is included here as a _ import. | ||
// - this file is given a build to exclude it from the regular build. | ||
import ( | ||
// Prevent go tooling from stripping out the c source files. | ||
_ "github.com/go-gl/glfw/v3.2/glfw/glfw/deps" | ||
_ "github.com/go-gl/glfw/v3.2/glfw/glfw/include/GLFW" | ||
_ "github.com/go-gl/glfw/v3.2/glfw/glfw/src" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// +build required | ||
|
||
// Package dummy prevents go tooling from stripping the c dependencies. | ||
package dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// +build required | ||
|
||
// Package dummy prevents go tooling from stripping the c dependencies. | ||
package dummy | ||
|
||
import ( | ||
// Prevent go tooling from stripping out the c source files. | ||
_ "github.com/go-gl/glfw/v3.2/glfw/glfw/deps/KHR" | ||
_ "github.com/go-gl/glfw/v3.2/glfw/glfw/deps/glad" | ||
_ "github.com/go-gl/glfw/v3.2/glfw/glfw/deps/mingw" | ||
_ "github.com/go-gl/glfw/v3.2/glfw/glfw/deps/vulkan" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// +build required | ||
|
||
// Package dummy prevents go tooling from stripping the c dependencies. | ||
package dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// +build required | ||
|
||
// Package dummy prevents go tooling from stripping the c dependencies. | ||
package dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// +build required | ||
|
||
// Package dummy prevents go tooling from stripping the c dependencies. | ||
package dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// +build required | ||
|
||
// Package dummy prevents go tooling from stripping the c dependencies. | ||
package dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// +build required | ||
|
||
// Package dummy prevents go tooling from stripping the c dependencies. | ||
package dummy |