Skip to content

Commit

Permalink
Retire legacy Xbox One XDK support (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn authored Mar 17, 2023
1 parent e5f8212 commit 5fa9314
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 328 deletions.
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ elseif(CMAKE_GENERATOR_PLATFORM MATCHES "^[Aa][Rr][Mm]64$")
set(DIRECTX_ARCH arm64)
endif()

if(DEFINED XBOX_CONSOLE_TARGET)
if(WINDOWS_STORE OR (DEFINED XBOX_CONSOLE_TARGET))
set(BUILD_DX12 ON)
set(BUILD_TOOLS OFF)
endif()
Expand Down Expand Up @@ -196,7 +196,7 @@ install(FILES
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PACKAGE_NAME})

#--- Command-line tool
if(BUILD_TOOLS AND WIN32 AND (NOT WINDOWS_STORE))
if(BUILD_TOOLS AND WIN32)
set(TOOL_EXES meshconvert)

add_executable(meshconvert
Expand Down Expand Up @@ -342,7 +342,7 @@ if(WIN32)
target_compile_definitions(${PROJECT_NAME} PRIVATE WINAPI_FAMILY=WINAPI_FAMILY_APP)
endif()

if(BUILD_DX12 OR WINDOWS_STORE OR (${DIRECTX_ARCH} MATCHES "^arm64"))
if(BUILD_DX12 OR (${DIRECTX_ARCH} MATCHES "^arm64"))
message(STATUS "Building with DirectX 12 Runtime support")
set(WINVER 0x0A00)
elseif(${DIRECTX_ARCH} MATCHES "^arm")
Expand All @@ -363,13 +363,14 @@ if(WIN32)
endif()
endif()

if(BUILD_TOOLS AND WIN32 AND (NOT WINDOWS_STORE))
if(BUILD_TOOLS AND WIN32)
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT meshconvert)
endif()

#--- Test suite
include(CTest)
if(BUILD_TESTING AND WIN32 AND (NOT WINDOWS_STORE) AND (EXISTS "${CMAKE_CURRENT_LIST_DIR}/Tests/CMakeLists.txt"))
if(BUILD_TESTING AND WIN32 AND (NOT WINDOWS_STORE) AND (NOT (DEFINED XBOX_CONSOLE_TARGET))
AND (EXISTS "${CMAKE_CURRENT_LIST_DIR}/Tests/CMakeLists.txt"))
enable_testing()
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/Tests)
endif()
2 changes: 1 addition & 1 deletion DirectXMesh/DirectXMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#elif defined(_GAMING_XBOX)
#include <d3d12_x.h>
#elif defined(_XBOX_ONE) && defined(_TITLE)
#include <d3d11_x.h>
#error This library no longer supports legacy Xbox One XDK
#else
#include <d3d11_1.h>
#endif
Expand Down
3 changes: 1 addition & 2 deletions DirectXMesh/DirectXMeshP.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@
#include <d3d12_x.h>
#pragma warning(pop)
#elif defined(_XBOX_ONE) && defined(_TITLE)
#include <d3d12_x.h>
#include <d3d11_x.h>
#error This library no longer supports legacy Xbox One XDK
#elif (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
#ifdef USING_DIRECTX_HEADERS
#include <directx/dxgiformat.h>
Expand Down
204 changes: 0 additions & 204 deletions DirectXMesh/DirectXMesh_XboxOneXDK_2017.vcxproj

This file was deleted.

79 changes: 0 additions & 79 deletions DirectXMesh/DirectXMesh_XboxOneXDK_2017.vcxproj.filters

This file was deleted.

33 changes: 0 additions & 33 deletions DirectXMesh_XboxOneXDK_2017.sln

This file was deleted.

4 changes: 0 additions & 4 deletions Meshconvert/Mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@
#include <string>


#if defined(_XBOX_ONE) && defined(_TITLE)
#include <d3d11_x.h>
#else
#include <d3d11_1.h>
#endif

#include <DirectXMath.h>

Expand Down

0 comments on commit 5fa9314

Please sign in to comment.