Skip to content

Commit

Permalink
thirdparty/dxsdk_aug2007: Bundle D3D8 headers from Aug 2007 DirectX SDK.
Browse files Browse the repository at this point in the history
A bit of a grey area but common practice according to Microsoft:
https://web.archive.org/web/20170322105210/https://blogs.msdn.microsoft.com/chuckw/2015/03/23/the-zombie-directx-sdk/

These headers are only used with MSVC.  And they greatly simplify
building apitrace for Windows, since modern Windows SDK include all
necessary headers except D3D8's.
  • Loading branch information
jrfonseca committed Mar 22, 2017
1 parent f5df5d0 commit 8f55cb5
Show file tree
Hide file tree
Showing 5 changed files with 3,334 additions and 6 deletions.
8 changes: 7 additions & 1 deletion cmake/FindDirectX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ if (WIN32)

find_winsdk_header (D3D d3d.h)

find_dxsdk_header (D3D8 d3d8.h)
if (MSVC)
set (DirectX_D3D8_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/dxsdk_aug2007)
set (DirectX_D3D8_INCLUDE_FOUND TRUE)
mark_as_advanced (DirectX_D3D8_INCLUDE_FOUND)
else ()
find_dxsdk_header (D3D8 d3d8.h)
endif ()

find_winsdk_header (D3D9 d3d9.h)

Expand Down
5 changes: 0 additions & 5 deletions docs/INSTALL.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,6 @@ Additional requirements:
* [Windows 10 SDK](https://dev.windows.com/en-us/downloads/windows-10-sdk)
for D3D11.3 headers.

* Microsoft DirectX SDK is now part of Microsoft Visual Studio (from version
2012), but D3D8 headers are not included, so if you want D3D8 support you'll
need to donwload and install the
[August 2007 release of DirectX SDK](https://www.microsoft.com/en-gb/download/details.aspx?id=13287)

### CMake GUI ###

To build with Visual Studio first open a Command Prompt window (*not* Visual
Expand Down
Loading

0 comments on commit 8f55cb5

Please sign in to comment.