diff --git a/examples/tetris/README.md b/examples/tetris/README.md index 67b738ebb9..ab0ecb06ed 100644 --- a/examples/tetris/README.md +++ b/examples/tetris/README.md @@ -1 +1,12 @@ + +Tetris has a temporary dependency on GLFW. + +## macOS +`brew install glfw` + +## Ubuntu +sudo apt install libglfw3 libglfw3-dev + +## Windows +Copy `thirdparty/glfw/glfw3.dll` to this directory. diff --git a/examples/tetris/RobotoMono-Regular.ttf b/examples/tetris/RobotoMono-Regular.ttf deleted file mode 100644 index b158a334eb..0000000000 Binary files a/examples/tetris/RobotoMono-Regular.ttf and /dev/null differ diff --git a/vlib/glfw/glfw.v b/vlib/glfw/glfw.v index b6f63e530d..af6cd10a05 100644 --- a/vlib/glfw/glfw.v +++ b/vlib/glfw/glfw.v @@ -5,23 +5,19 @@ module glfw #flag -I @VROOT/thirdparty/glfw - -#flag windows @VROOT/thirdparty/glfw/libglfw3.a +#flag -L @VROOT/thirdparty/glfw // Debugging a custom build -#flag darwin -L/var/tmp/glfw/src/ +//-#flag darwin -L/var/tmp/glfw/src/ + #flag darwin -lglfw #flag linux -lglfw -#flag windows -I/usr/local/Cellar/glfw/3.2.1/include/ -// #include // !gen.go include GLFW.v +#flag windows -lglfw3 #include // #flag darwin -framework Carbon // #flag darwin -framework Cocoa // #flag darwin -framework CoreVideo // #flag darwin -framework IOKit -// struct C.GL -// @GLFWwindow* C.glfwCreateWindow -// #int gconst_init = 0; const ( RESIZABLE = 1 DECORATED = 2