From f22e7dfab44d1f7fa56712c1be91049b775de2f1 Mon Sep 17 00:00:00 2001 From: Peter Waller
Date: Sun, 24 Nov 2019 21:06:12 +0000 Subject: [PATCH 1/2] Add dummy.go to glfw source directory This allows "go mod vendor" to copy the files out of the tree, where otherwise they would be ignored. Fixes #251. --- v3.1/glfw/glfw/deps/EGL/dummy.go | 5 +++++ v3.1/glfw/glfw/deps/GL/dummy.go | 5 +++++ v3.1/glfw/glfw/deps/KHR/dummy.go | 5 +++++ v3.1/glfw/glfw/deps/dummy.go | 5 +++++ v3.1/glfw/glfw/deps/glad/dummy.go | 5 +++++ v3.1/glfw/glfw/include/GLFW/dummy.go | 5 +++++ v3.1/glfw/glfw/include/dummy.go | 5 +++++ v3.1/glfw/glfw/src/dummy.go | 5 +++++ v3.2/glfw/glfw/deps/KHR/dummy.go | 5 +++++ v3.2/glfw/glfw/deps/dummy.go | 5 +++++ v3.2/glfw/glfw/deps/glad/dummy.go | 5 +++++ v3.2/glfw/glfw/deps/mingw/dummy.go | 5 +++++ v3.2/glfw/glfw/deps/vulkan/dummy.go | 5 +++++ v3.2/glfw/glfw/include/GLFW/dummy.go | 5 +++++ v3.2/glfw/glfw/include/dummy.go | 5 +++++ v3.2/glfw/glfw/src/dummy.go | 5 +++++ v3.3/glfw/glfw/deps/dummy.go | 5 +++++ v3.3/glfw/glfw/deps/glad/dummy.go | 5 +++++ v3.3/glfw/glfw/deps/mingw/dummy.go | 5 +++++ v3.3/glfw/glfw/deps/vs2008/dummy.go | 5 +++++ v3.3/glfw/glfw/include/GLFW/dummy.go | 5 +++++ v3.3/glfw/glfw/include/dummy.go | 5 +++++ v3.3/glfw/glfw/src/dummy.go | 5 +++++ 23 files changed, 115 insertions(+) create mode 100644 v3.1/glfw/glfw/deps/EGL/dummy.go create mode 100644 v3.1/glfw/glfw/deps/GL/dummy.go create mode 100644 v3.1/glfw/glfw/deps/KHR/dummy.go create mode 100644 v3.1/glfw/glfw/deps/dummy.go create mode 100644 v3.1/glfw/glfw/deps/glad/dummy.go create mode 100644 v3.1/glfw/glfw/include/GLFW/dummy.go create mode 100644 v3.1/glfw/glfw/include/dummy.go create mode 100644 v3.1/glfw/glfw/src/dummy.go create mode 100644 v3.2/glfw/glfw/deps/KHR/dummy.go create mode 100644 v3.2/glfw/glfw/deps/dummy.go create mode 100644 v3.2/glfw/glfw/deps/glad/dummy.go create mode 100644 v3.2/glfw/glfw/deps/mingw/dummy.go create mode 100644 v3.2/glfw/glfw/deps/vulkan/dummy.go create mode 100644 v3.2/glfw/glfw/include/GLFW/dummy.go create mode 100644 v3.2/glfw/glfw/include/dummy.go create mode 100644 v3.2/glfw/glfw/src/dummy.go create mode 100644 v3.3/glfw/glfw/deps/dummy.go create mode 100644 v3.3/glfw/glfw/deps/glad/dummy.go create mode 100644 v3.3/glfw/glfw/deps/mingw/dummy.go create mode 100644 v3.3/glfw/glfw/deps/vs2008/dummy.go create mode 100644 v3.3/glfw/glfw/include/GLFW/dummy.go create mode 100644 v3.3/glfw/glfw/include/dummy.go create mode 100644 v3.3/glfw/glfw/src/dummy.go diff --git a/v3.1/glfw/glfw/deps/EGL/dummy.go b/v3.1/glfw/glfw/deps/EGL/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.1/glfw/glfw/deps/EGL/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.1/glfw/glfw/deps/GL/dummy.go b/v3.1/glfw/glfw/deps/GL/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.1/glfw/glfw/deps/GL/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.1/glfw/glfw/deps/KHR/dummy.go b/v3.1/glfw/glfw/deps/KHR/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.1/glfw/glfw/deps/KHR/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.1/glfw/glfw/deps/dummy.go b/v3.1/glfw/glfw/deps/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.1/glfw/glfw/deps/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.1/glfw/glfw/deps/glad/dummy.go b/v3.1/glfw/glfw/deps/glad/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.1/glfw/glfw/deps/glad/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.1/glfw/glfw/include/GLFW/dummy.go b/v3.1/glfw/glfw/include/GLFW/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.1/glfw/glfw/include/GLFW/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.1/glfw/glfw/include/dummy.go b/v3.1/glfw/glfw/include/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.1/glfw/glfw/include/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.1/glfw/glfw/src/dummy.go b/v3.1/glfw/glfw/src/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.1/glfw/glfw/src/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.2/glfw/glfw/deps/KHR/dummy.go b/v3.2/glfw/glfw/deps/KHR/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.2/glfw/glfw/deps/KHR/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.2/glfw/glfw/deps/dummy.go b/v3.2/glfw/glfw/deps/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.2/glfw/glfw/deps/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.2/glfw/glfw/deps/glad/dummy.go b/v3.2/glfw/glfw/deps/glad/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.2/glfw/glfw/deps/glad/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.2/glfw/glfw/deps/mingw/dummy.go b/v3.2/glfw/glfw/deps/mingw/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.2/glfw/glfw/deps/mingw/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.2/glfw/glfw/deps/vulkan/dummy.go b/v3.2/glfw/glfw/deps/vulkan/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.2/glfw/glfw/deps/vulkan/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.2/glfw/glfw/include/GLFW/dummy.go b/v3.2/glfw/glfw/include/GLFW/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.2/glfw/glfw/include/GLFW/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.2/glfw/glfw/include/dummy.go b/v3.2/glfw/glfw/include/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.2/glfw/glfw/include/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.2/glfw/glfw/src/dummy.go b/v3.2/glfw/glfw/src/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.2/glfw/glfw/src/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.3/glfw/glfw/deps/dummy.go b/v3.3/glfw/glfw/deps/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.3/glfw/glfw/deps/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.3/glfw/glfw/deps/glad/dummy.go b/v3.3/glfw/glfw/deps/glad/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.3/glfw/glfw/deps/glad/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.3/glfw/glfw/deps/mingw/dummy.go b/v3.3/glfw/glfw/deps/mingw/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.3/glfw/glfw/deps/mingw/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.3/glfw/glfw/deps/vs2008/dummy.go b/v3.3/glfw/glfw/deps/vs2008/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.3/glfw/glfw/deps/vs2008/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.3/glfw/glfw/include/GLFW/dummy.go b/v3.3/glfw/glfw/include/GLFW/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.3/glfw/glfw/include/GLFW/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.3/glfw/glfw/include/dummy.go b/v3.3/glfw/glfw/include/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.3/glfw/glfw/include/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 diff --git a/v3.3/glfw/glfw/src/dummy.go b/v3.3/glfw/glfw/src/dummy.go new file mode 100644 index 00000000..5df8ab73 --- /dev/null +++ b/v3.3/glfw/glfw/src/dummy.go @@ -0,0 +1,5 @@ +//+build ignore + +package dummy + +// This package exists to support go mod vendor. See #251 From e7544ef5eb30662c101df38dc8fdd1df3fa63246 Mon Sep 17 00:00:00 2001 From: Peter Waller
Date: Wed, 11 Mar 2020 21:10:43 +0000 Subject: [PATCH 2/2] Fix build tag --- v3.1/glfw/glfw/deps/EGL/dummy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3.1/glfw/glfw/deps/EGL/dummy.go b/v3.1/glfw/glfw/deps/EGL/dummy.go index 5df8ab73..922f3ea2 100644 --- a/v3.1/glfw/glfw/deps/EGL/dummy.go +++ b/v3.1/glfw/glfw/deps/EGL/dummy.go @@ -1,4 +1,4 @@ -//+build ignore +// +build ignore package dummy