From 853f265025cc9a38177990623b48a7d38fd4e0c0 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 10 Sep 2015 20:34:06 +0100 Subject: [PATCH] Examples: Added batch files to build Windows examples with VS --- examples/directx11_example/build_win32.bat | 4 ++++ examples/directx9_example/build_win32.bat | 3 +++ examples/opengl3_example/build_win32.bat | 3 +++ examples/opengl_example/build_win32.bat | 3 +++ 4 files changed, 13 insertions(+) create mode 100644 examples/directx11_example/build_win32.bat create mode 100644 examples/directx9_example/build_win32.bat create mode 100644 examples/opengl3_example/build_win32.bat create mode 100644 examples/opengl_example/build_win32.bat diff --git a/examples/directx11_example/build_win32.bat b/examples/directx11_example/build_win32.bat new file mode 100644 index 00000000..427b2e7b --- /dev/null +++ b/examples/directx11_example/build_win32.bat @@ -0,0 +1,4 @@ +@REM Build for Visual Studio compiler +mkdir Debug +cl /nologo /MD /I ..\.. /I "%DXSDK_DIR%/Include" /D UNICODE *.cpp ..\..\*.cpp /FeDebug/directx11_example.exe /FoDebug/ /link /LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d11.lib d3dcompiler.lib + diff --git a/examples/directx9_example/build_win32.bat b/examples/directx9_example/build_win32.bat new file mode 100644 index 00000000..24d9631a --- /dev/null +++ b/examples/directx9_example/build_win32.bat @@ -0,0 +1,3 @@ +@REM Build for Visual Studio compiler +mkdir Debug +cl /nologo /MD /I ..\.. /I "%DXSDK_DIR%/Include" /D UNICODE *.cpp ..\..\*.cpp /FeDebug/directx9_example.exe /FoDebug/ /link /LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d9.lib d3dx9d.lib diff --git a/examples/opengl3_example/build_win32.bat b/examples/opengl3_example/build_win32.bat new file mode 100644 index 00000000..8deb851d --- /dev/null +++ b/examples/opengl3_example/build_win32.bat @@ -0,0 +1,3 @@ +@REM Build for Visual Studio compiler +mkdir Debug +cl /nologo /MD /I ..\.. -I ..\libs\glfw\include -I ..\libs\gl3w *.cpp ..\..\*.cpp ..\libs\gl3w\GL\gl3w.c /FeDebug/opengl_example3.exe /FoDebug/ /link /LIBPATH:..\libs\glfw\lib-vc2010-32 glfw3.lib opengl32.lib gdi32.lib shell32.lib diff --git a/examples/opengl_example/build_win32.bat b/examples/opengl_example/build_win32.bat new file mode 100644 index 00000000..2787d556 --- /dev/null +++ b/examples/opengl_example/build_win32.bat @@ -0,0 +1,3 @@ +@REM Build for Visual Studio compiler +mkdir Debug +cl /nologo /MD /I ..\.. -I ..\libs\glfw\include *.cpp ..\..\*.cpp /FeDebug/opengl_example.exe /FoDebug/ /link /LIBPATH:..\libs\glfw\lib-vc2010-32 glfw3.lib opengl32.lib gdi32.lib shell32.lib