-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add dummy files to ensure c source is maintained
- Loading branch information
1 parent
6f7a984
commit 0e1e096
Showing
7 changed files
with
48 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,17 @@ | ||
// +build required | ||
|
||
package glfw | ||
|
||
// this file exists purely to prevent the golang toolchain from stripping | ||
// away the c source directories and files. | ||
// | ||
// 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.3/glfw/glfw/deps" | ||
_ "github.com/go-gl/glfw/v3.3/glfw/glfw/include/GLFW" | ||
_ "github.com/go-gl/glfw/v3.3/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,11 @@ | ||
// +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.3/glfw/glfw/deps/glad" | ||
_ "github.com/go-gl/glfw/v3.3/glfw/glfw/deps/mingw" | ||
_ "github.com/go-gl/glfw/v3.3/glfw/glfw/deps/vs2008" | ||
) |
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 |