In this tutorial, steps of generating the dll lib of GLFW library are shown. I compile them from the source file with Visual Studio 2017.
Run the x64 Native Tools command prompt for VS 2017
c:\>git clone --depth=10 https://github.com/glfw/glfw.git glfw
c:\>cd glfw
c:\glfw>mkdir glfw-build
c:\glfw>cd glfw-build
c:\glfw\glfw-build>cmake -G"NMake Makefiles" -DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_TESTS=ON -DGLFW_BUILD_EXAMPLES=ON -DGLFW_BUILD_DOCS=ON ..
c:\glfw\glfw-build>nmake
c:\glfw\glfw-build>cd c:\
c:\>git clone --depth=10 https://github.com/glfw/glfw.git glfw
c:\>cd glfw
c:\glfw>mkdir glfw-build
c:\glfw>cd glfw-build
c:\glfw\glfw-build>cmake -G"MinGW Makefiles" -DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_TESTS=ON -DGLFW_BUILD_EXAMPLES=ON -DGLFW_BUILD_DOCS=ON ..
c:\glfw\glfw-build>mingw32-make
c:\glfw\glfw-build>cd c:\
c:\>set HB_WITH_GLFW=c:\glfw\include
c:\>set PATH=c:\glfw\glfw-build\src
c:\>git clone --depth=10 https://github.com/rjopek/hb-glfw.git hbglfw
c:\>cd hbglfw
c:\hbglfw>hbmk2 hbglfw.hbp
c:\hbglfw>cd tests
c:\hbglfw\tests>hbmk2 sharing.prg -run
These packages contain complete GLFW header file, documentation and release mode DLL and static library binaries for Visual C++ 2010 (32-bit only), Visual C++ 2012, Visual C++ 2013, Visual C++ 2015, MinGW (32-bit only) and MinGW-w64.