glfw: Use Dockerfile for ease to generate the embedding files for Windows

As MinGW version is specified, the result should be more deterministic.

Fixes #1201
This commit is contained in:
Hajime Hoshi 2020-08-13 01:52:49 +09:00
parent d73472f4f2
commit 7307a148f5
5 changed files with 13 additions and 5 deletions

9
internal/glfw/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM debian:testing
RUN apt-get update && apt-get install -y \
ca-certificates \
golang \
gcc-mingw-w64=10.1.0-3+23 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /work

1
internal/glfw/gen.sh Executable file
View File

@ -0,0 +1 @@
docker run --rm --volume $(pwd)/../..:/work $(docker build -q .) /bin/bash -c "cd ./internal/glfw; go run gen.go"

View File

@ -12,6 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:generate go run gen.go
//go:generate sh ./gen.sh
package glfw

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long