diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2017-03-20 12:50:52 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2017-03-20 12:50:52 +0000 |
commit | 16b76a287134a08d9db3e57ceb9e772e367a2b86 (patch) | |
tree | ad03258133cf039c61106ddf7696ec0acf1e7f5d /cmake | |
parent | 977990ef90d3a79c2215295b3c75a2ecf777a17b (diff) |
Remove Windows XP support.
I'm not aware of people using it, so I believe it's not worth the hassle
as I'm trying to cut maintenance burden down.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindDirectX.cmake | 87 |
1 files changed, 38 insertions, 49 deletions
diff --git a/cmake/FindDirectX.cmake b/cmake/FindDirectX.cmake index f4d9dddd..c0a0bcbc 100644 --- a/cmake/FindDirectX.cmake +++ b/cmake/FindDirectX.cmake @@ -147,16 +147,7 @@ if (WIN32) find_winsdk_library (DDRAW ddraw) find_combined (DDRAW DDRAW DDRAW) - if (CMAKE_GENERATOR_TOOLSET MATCHES "_xp$") - set (WINDOWS_XP TRUE) - endif () - - if (WINDOWS_XP) - # Windows 7 SDKs, used by XP toolset, do not include d3d.h - find_dxsdk_header (D3D d3d.h) - else () - find_winsdk_header (D3D d3d.h) - endif () + find_winsdk_header (D3D d3d.h) find_combined (D3D D3D DDRAW) find_dxsdk_header (D3DX d3dx.h) @@ -178,45 +169,43 @@ if (WIN32) find_dxsdk_library (D3DX9 d3dx9) find_combined (D3DX9 D3DX9 D3DX9) - if (NOT WINDOWS_XP) - find_winsdk_header (DXGI dxgi.h) - find_winsdk_header (DXGI1_2 dxgi1_2.h) - find_winsdk_header (DXGI1_3 dxgi1_3.h) - find_winsdk_header (DXGI1_4 dxgi1_4.h) - find_winsdk_library (DXGI dxgi) - - find_winsdk_header (D3D10 d3d10.h) - find_winsdk_library (D3D10 d3d10) - find_combined (D3D10 D3D10 D3D10) - - find_winsdk_header (D3D10_1 d3d10_1.h) - find_winsdk_library (D3D10_1 d3d10_1) - find_combined (D3D10_1 D3D10_1 D3D10_1) - - find_dxsdk_header (D3DX10 d3dx10.h) - find_dxsdk_library (D3DX10 d3dx10) - find_combined (D3DX10 D3DX10 D3DX10) - - find_winsdk_header (D3D11 d3d11.h) - find_winsdk_library (D3D11 d3d11) - find_combined (D3D11 D3D11 D3D11) - find_winsdk_header (D3D11_1 d3d11_1.h) - find_combined (D3D11_1 D3D11_1 D3D11) - find_winsdk_header (D3D11_2 d3d11_2.h) - find_combined (D3D11_2 D3D11_2 D3D11) - find_winsdk_header (D3D11_3 d3d11_3.h) - find_combined (D3D11_3 D3D11_3 D3D11) - - find_dxsdk_header (D3DX11 d3dx11.h) - find_dxsdk_library (D3DX11 d3dx11) - find_combined (D3DX11 D3DX11 D3DX11) - - find_winsdk_header (D2D1 d2d1.h) - find_winsdk_library (D2D1 d2d1) - find_combined (D2D1 D2D1 D2D1) - find_winsdk_header (D2D1_1 d2d1_1.h) - find_combined (D2D1_1 D2D1_1 D2D1) - endif () + find_winsdk_header (DXGI dxgi.h) + find_winsdk_header (DXGI1_2 dxgi1_2.h) + find_winsdk_header (DXGI1_3 dxgi1_3.h) + find_winsdk_header (DXGI1_4 dxgi1_4.h) + find_winsdk_library (DXGI dxgi) + + find_winsdk_header (D3D10 d3d10.h) + find_winsdk_library (D3D10 d3d10) + find_combined (D3D10 D3D10 D3D10) + + find_winsdk_header (D3D10_1 d3d10_1.h) + find_winsdk_library (D3D10_1 d3d10_1) + find_combined (D3D10_1 D3D10_1 D3D10_1) + + find_dxsdk_header (D3DX10 d3dx10.h) + find_dxsdk_library (D3DX10 d3dx10) + find_combined (D3DX10 D3DX10 D3DX10) + + find_winsdk_header (D3D11 d3d11.h) + find_winsdk_library (D3D11 d3d11) + find_combined (D3D11 D3D11 D3D11) + find_winsdk_header (D3D11_1 d3d11_1.h) + find_combined (D3D11_1 D3D11_1 D3D11) + find_winsdk_header (D3D11_2 d3d11_2.h) + find_combined (D3D11_2 D3D11_2 D3D11) + find_winsdk_header (D3D11_3 d3d11_3.h) + find_combined (D3D11_3 D3D11_3 D3D11) + + find_dxsdk_header (D3DX11 d3dx11.h) + find_dxsdk_library (D3DX11 d3dx11) + find_combined (D3DX11 D3DX11 D3DX11) + + find_winsdk_header (D2D1 d2d1.h) + find_winsdk_library (D2D1 d2d1) + find_combined (D2D1 D2D1 D2D1) + find_winsdk_header (D2D1_1 d2d1_1.h) + find_combined (D2D1_1 D2D1_1 D2D1) find_program (DirectX_FXC_EXECUTABLE fxc HINTS ${DirectX_BIN_SEARCH_PATH} |