Skip to content

Commit 0922029

Browse files
authored
chore: update xbox toolchain and disable FS-dependent tests (#1302)
* disable tests that require FS access * disable modulefinder test * chore: update xbox toolchains * fixup * try to reenable modulefinder * chore: changelog
1 parent 98b1bd8 commit 0922029

File tree

8 files changed

+22
-9
lines changed

8 files changed

+22
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
- Compiles also on Xbox One ([#1294](https://github.com/getsentry/sentry-native/pull/1294))
99
- Provide `sentry_regenerate_trace()` to allow users to set manual trace boundaries. ([#1293](https://github.com/getsentry/sentry-native/pull/1293))
1010

11+
**Fixes**:
12+
13+
- Update Xbox toolchain to include `UseDebugLibraries` fix for Debug builds. ([#1302](https://github.com/getsentry/sentry-native/pull/1302))
14+
1115
## 0.9.1
1216

1317
**Features**:

tests/unit/test_basic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ SENTRY_TEST(capture_minidump_basic)
225225
{
226226
// skipping on platforms that don't have access to fixtures on the local FS
227227
#if defined(SENTRY_PLATFORM_ANDROID) || defined(SENTRY_PLATFORM_NX) \
228-
|| defined(SENTRY_PLATFORM_PS)
228+
|| defined(SENTRY_PLATFORM_PS) || defined(SENTRY_PLATFORM_XBOX)
229229
SKIP_TEST();
230230
#else
231231
SENTRY_TEST_OPTIONS_NEW(options);

tests/unit/test_fuzzfailures.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ SENTRY_TEST(fuzz_json)
4343
{
4444
// skipping on platforms that don't have access to fixtures on the local FS
4545
#if defined(SENTRY_PLATFORM_ANDROID) || defined(SENTRY_PLATFORM_NX) \
46-
|| defined(SENTRY_PLATFORM_PS)
46+
|| defined(SENTRY_PLATFORM_PS) || defined(SENTRY_PLATFORM_XBOX)
4747
SKIP_TEST();
4848
#else
4949
sentry_path_t *path = sentry__path_from_str(__FILE__);

toolchains/xbox/GDK-targets.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Adapted by Sentry from:
2-
# https://github.com/microsoft/Xbox-GDK-Samples/blob/e5328b9c06443739ec9c7c0089a36c5743c9da15/Samples/Tools/CMakeExample/CMake/GDK-targets.cmake
2+
# https://github.com/microsoft/Xbox-GDK-Samples/blob/710f4bd9095d3796d07505249a7b383857e8a23f/Samples/Tools/CMakeExample/CMake/GDK-targets.cmake
33
#
44
# GDK-targets.cmake : Defines library imports for the Microsoft GDK shared libraries
55
#

toolchains/xbox/gdk_build.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<!--
2+
The `gdk_build.props` file was sourced and sdapted by Sentry from:
3+
https://github.com/microsoft/Xbox-GDK-Samples/blob/3acf5ffbe5cdb0d42db773a46bc083cc8b481233/Samples/Tools/CMakeGDKExample/gdk_build.props
4+
-->
5+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
26

37
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Gaming.Desktop.x64'">
48
<LibraryPath>$(Console_SdkLibPath);$(LibraryPath)</LibraryPath>

toolchains/xbox/gdk_build.props.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

toolchains/xbox/gxdk_toolchain.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Adapted by Sentry from:
2-
# https://github.com/microsoft/Xbox-GDK-Samples/blob/aa45b831e7a71160a69a7d13e9d74844dc6aa210/Samples/Tools/CMakeGDKExample/gxdk_toolchain.cmake
2+
# https://github.com/microsoft/Xbox-GDK-Samples/blob/710f4bd9095d3796d07505249a7b383857e8a23f/Samples/Tools/CMakeGDKExample/gxdk_toolchain.cmake
33
#
44
# grdk_toolchain.cmake : CMake Toolchain file for Gaming.Xbox.XboxOne.x64
55
#
@@ -30,8 +30,12 @@ set(CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE "x64" CACHE STRING "" FORCE)
3030
# Let the GDK MSBuild rules decide the WindowsTargetPlatformVersion
3131
set(CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION "" CACHE STRING "" FORCE)
3232

33+
if(${CMAKE_VERSION} GREATER_EQUAL "3.30")
34+
set(CMAKE_VS_USE_DEBUG_LIBRARIES "$<CONFIG:Debug>" CACHE STRING "" FORCE)
35+
endif()
36+
3337
# Sets platform defines
34-
set(CMAKE_CXX_FLAGS_INIT "$ENV{CFLAGS} ${CMAKE_CXX_FLAGS_INIT} -D_GAMING_XBOX -D_GAMING_XBOX_XBOXONE -DWINAPI_FAMILY=WINAPI_FAMILY_GAMES -D_ATL_NO_DEFAULT_LIBS -D__WRL_NO_DEFAULT_LIB__ -D_CRT_USE_WINAPI_PARTITION_APP -D_UITHREADCTXT_SUPPORT=0 -D__WRL_CLASSIC_COM_STRICT__ /arch:AVX2 /favor:AMD64" CACHE STRING "" FORCE)
38+
set(CMAKE_CXX_FLAGS_INIT "$ENV{CFLAGS} ${CMAKE_CXX_FLAGS_INIT} -D_GAMING_XBOX -D_GAMING_XBOX_ONE -DWINAPI_FAMILY=WINAPI_FAMILY_GAMES -D_ATL_NO_DEFAULT_LIBS -D__WRL_NO_DEFAULT_LIB__ -D_CRT_USE_WINAPI_PARTITION_APP -D_UITHREADCTXT_SUPPORT=0 -D__WRL_CLASSIC_COM_STRICT__ /arch:AVX /favor:AMD64" CACHE STRING "" FORCE)
3539

3640
# Set platform libraries
3741
set(CMAKE_CXX_STANDARD_LIBRARIES_INIT "xgameplatform.lib" CACHE STRING "" FORCE)

toolchains/xbox/gxdk_xs_toolchain.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ set(CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE "x64" CACHE STRING "" FORCE)
3030
# Let the GDK MSBuild rules decide the WindowsTargetPlatformVersion
3131
set(CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION "" CACHE STRING "" FORCE)
3232

33+
if(${CMAKE_VERSION} GREATER_EQUAL "3.30")
34+
set(CMAKE_VS_USE_DEBUG_LIBRARIES "$<CONFIG:Debug>" CACHE STRING "" FORCE)
35+
endif()
36+
3337
# Sets platform defines
3438
set(CMAKE_CXX_FLAGS_INIT "$ENV{CFLAGS} ${CMAKE_CXX_FLAGS_INIT} -D_GAMING_XBOX -D_GAMING_XBOX_SCARLETT -DWINAPI_FAMILY=WINAPI_FAMILY_GAMES -D_ATL_NO_DEFAULT_LIBS -D__WRL_NO_DEFAULT_LIB__ -D_CRT_USE_WINAPI_PARTITION_APP -D_UITHREADCTXT_SUPPORT=0 -D__WRL_CLASSIC_COM_STRICT__ /arch:AVX2 /favor:AMD64" CACHE STRING "" FORCE)
3539

0 commit comments

Comments
 (0)