Skip to content

Auto detect latest GDK and Windows SDK#1124

Merged
supervacuus merged 4 commits into
masterfrom
feat/auto_detect_gdk
Jan 27, 2025
Merged

Auto detect latest GDK and Windows SDK#1124
supervacuus merged 4 commits into
masterfrom
feat/auto_detect_gdk

Conversation

@PlasmaDev5

Copy link
Copy Markdown
Contributor

This PR modifies the CMake configuration to automatically detect the GDK version and WindowsSDK. This method ensures the selection of the latest installed version of the SDK. Consequently, the minimum required CMake version has been increased to 3.18 to utilize the list compare behavior.

@github-actions

github-actions Bot commented Jan 22, 2025

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against f23907c

@codecov

codecov Bot commented Jan 22, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.67%. Comparing base (2aa4b16) to head (f23907c).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1124      +/-   ##
==========================================
- Coverage   82.71%   82.67%   -0.04%     
==========================================
  Files          53       53              
  Lines        7930     7930              
  Branches     1240     1240              
==========================================
- Hits         6559     6556       -3     
- Misses       1261     1262       +1     
- Partials      110      112       +2     

@supervacuus supervacuus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, only minor things.

I wondered if removing any explicit settings regarding the Windows SDK wouldn't lead to the same outcome (i.e., CMake will select the latest Windows SDK installed by default).

Then, we would only have the GDK detection code. However, since we need the SDK paths anyway, it is okay to couple it with the version detection.

Comment thread CHANGELOG.md Outdated
Comment thread toolchains/xbox/CMakeGDKScarlett.cmake Outdated
Comment thread toolchains/xbox/gxdk_xs_toolchain.cmake Outdated
@supervacuus
supervacuus merged commit 1fc2c77 into master Jan 27, 2025
@supervacuus
supervacuus deleted the feat/auto_detect_gdk branch January 27, 2025 19:11
BernhardMarconato pushed a commit to elgatosf/sentry-native that referenced this pull request Apr 21, 2026
* Auto detect latest GDK and Windows SDK

* Update changelog

* Accept Suggestions and allow GDK override

---------

Co-authored-by: PlasmaDev5 <[email protected]>
Co-authored-by: Mischan Toosarani-Hausberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants