From ad4c96222421c7f4d1b93492505d882f79c0d729 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 10 Sep 2015 20:58:43 +0100 Subject: [PATCH] Examples: DirectX11: Fixed batch file for VS 2012+, still works for 2008/2010.. Include path order matters... --- examples/directx11_example/build_win32.bat | 4 ++-- examples/directx9_example/build_win32.bat | 2 +- examples/opengl3_example/build_win32.bat | 2 +- examples/opengl_example/build_win32.bat | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/directx11_example/build_win32.bat b/examples/directx11_example/build_win32.bat index 427b2e7b..f3278dbe 100644 --- a/examples/directx11_example/build_win32.bat +++ b/examples/directx11_example/build_win32.bat @@ -1,4 +1,4 @@ -@REM Build for Visual Studio compiler +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line 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 +cl /nologo /MD /I ..\.. /I "%WindowsSdkDir%Include\um" /I "%WindowsSdkDir%Include\shared" /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 index 24d9631a..57ecd36c 100644 --- a/examples/directx9_example/build_win32.bat +++ b/examples/directx9_example/build_win32.bat @@ -1,3 +1,3 @@ -@REM Build for Visual Studio compiler +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line 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 index 8deb851d..277362fd 100644 --- a/examples/opengl3_example/build_win32.bat +++ b/examples/opengl3_example/build_win32.bat @@ -1,3 +1,3 @@ -@REM Build for Visual Studio compiler +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line 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 index 2787d556..7dd1be9b 100644 --- a/examples/opengl_example/build_win32.bat +++ b/examples/opengl_example/build_win32.bat @@ -1,3 +1,3 @@ -@REM Build for Visual Studio compiler +@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line 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