Skip to content

feat: Add .desktop.cs suffix and __DESKTOP__ constant - #20480

Merged
MartinZikmund merged 5 commits into
unoplatform:masterfrom
MartinZikmund:dev/mazi/sdk-inclusions
May 27, 2025
Merged

MartinZikmund merged 5 commits into
unoplatform:masterfrom
MartinZikmund:dev/mazi/sdk-inclusions

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): closes #20344

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

There is no clear way to target desktop-only with #if or .cs

What is the new behavior?

  • New __DESKTOP__ target
  • New .desktop.cs suffix
  • Existing __SKIA__ and .skia.cs still target desktop, but should probably be removed from Sdk in the next major, or should instead target all skia renderer targets
  • Removed docs mentions of reference and crossruntime as they are no longer too meaningful for end users

PR Checklist

Please check if your PR fulfills the following requirements:

@MartinZikmund
MartinZikmund requested a review from jeromelaban May 21, 2025 12:56
@MartinZikmund
MartinZikmund enabled auto-merge May 21, 2025 12:56
@github-actions github-actions Bot added platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia platform/wpf 🪟 Categorizes an issue or PR as relevant to WPF kind/documentation platform/x11 🐧 Categorizes an issue or PR as relevant to X11 labels May 21, 2025
@MartinZikmund

Copy link
Copy Markdown
Member Author

@Mergifyio backport release/stable/6.0

@mergify

mergify Bot commented May 21, 2025 •

Copy link
Copy Markdown
Contributor

backport release/stable/6.0

✅ Backports have been created

Details

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 166305 has failed on Uno.UI - docs.

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 166306 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/sdk-inclusions branch from d4d09e2 to 5038cad Compare May 22, 2025 17:05
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund

Copy link
Copy Markdown
Member Author

@jeromelaban is this good to merge now?

@MartinZikmund
MartinZikmund merged commit e2d6298 into unoplatform:master May 27, 2025
DevTKSS pushed a commit to DevTKSS/uno that referenced this pull request May 31, 2025
@MartinZikmund MartinZikmund self-assigned this Jan 26, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/wpf 🪟 Categorizes an issue or PR as relevant to WPF platform/x11 🐧 Categorizes an issue or PR as relevant to X11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add __DESKTOP__ constant

3 participants