Browse Source

Remove GLEW dependency on Windows

rexim 4 years ago
parent
commit
f869941ae9
2 changed files with 2 additions and 11 deletions
  1. 2 2
      build_msvc.bat
  2. 0 9
      setup_glfw.bat

+ 2 - 2
build_msvc.bat

@@ -2,7 +2,7 @@
 rem launch this from msvc-enabled console
 
 set CFLAGS=/std:c11 /O2 /FC /W4 /WX /Zl /D_USE_MATH_DEFINES /wd4996 /nologo
-set INCLUDES=/I Dependencies\GLFW\include /I Dependencies\GLEW\include
-set LIBS=Dependencies\GLFW\lib\glfw3.lib Dependencies\GLEW\lib\glew32s.lib opengl32.lib User32.lib Gdi32.lib Shell32.lib
+set INCLUDES=/I Dependencies\GLFW\include
+set LIBS=Dependencies\GLFW\lib\glfw3.lib opengl32.lib User32.lib Gdi32.lib Shell32.lib
 
 cl.exe %CFLAGS% %INCLUDES% /Fe"main.exe" ./main.c %LIBS% /link /NODEFAULTLIB:libcmt.lib

+ 0 - 9
setup_glfw.bat

@@ -8,12 +8,3 @@ mkdir Dependencies\GLFW\include\GLFW
 move glfw-3.3.2.bin.WIN64\include\GLFW\glfw3.h Dependencies\GLFW\include\GLFW\glfw3.h
 del glfw-3.3.2.bin.WIN64.zip
 rmdir /s /q glfw-3.3.2.bin.WIN64
-
-curl -fsSL -o glew-2.1.0-win32.zip https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0-win32.zip/download
-tar -xf glew-2.1.0-win32.zip
-mkdir Dependencies\GLEW\lib\
-move glew-2.1.0\lib\Release\x64\glew32s.lib Dependencies\GLEW\lib\glew32s.lib
-mkdir Dependencies\GLEW\include\GL\
-move glew-2.1.0\include\GL\glew.h Dependencies\GLEW\include\GL\glew.h
-del glew-2.1.0-win32.zip
-rmdir /s /q glew-2.1.0