Skip to content

Add an UNO_SKIA_DESKTOP constant #20876

Closed
Closed

Description

@ramezgerges

What would you like to be added? 💡

Currently, there's __UNO_SKIA_X11__, __UNO_SKIA_WIN32__, etc. but it would be great to have a constant that combines all of them

Why is this needed? 🤔

No response

Renderer 🎨

  • Skia
  • Native

For which platforms 📱💻🖥️

No response

Anything else we need to know? 💬

No response

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    on Jun 25, 2025
  2. added theissue type on Jun 25, 2025
  3. DevTKSS commented on Jun 25, 2025

    @DevTKSS
    Contributor

    @ramezgerges hm similar topic on #20753 could we maybe get the appropriate docs updated @jeromelaban linked there, so everyone can see which of those constants does what and maybe some examples of combining them?
    I would think "UNO_SKIA" would be equal to an "UNO_SKIA_DESKTOP" is that not correct?
    adding a list of available contants the IDE shows at least me:

    Image

    same list with "HAS" prefix... is that just for fluent syntax?

    Image
    there is a Desktop one, but what are the differences...

  4. jeromelaban commented on Jun 26, 2025

    @jeromelaban
    Member

    __UNO_SKIA__ only says that Skia rendering is active. We could say that __UNO_SKIA__ && DESKTOP is enough, or add __UNO_SKIA_DESKTOP__ to match.

    It would have to be defined in all runtime projects at locations like:

    <DefineConstants>$(DefineConstants);UNO_REFERENCE_API;HAS_UNO_SKIA;HAS_UNO_SKIA_WPF;__DESKTOP__;__UNO_SKIA__;__UNO_SKIA_WPF__</DefineConstants>

  5. MartinZikmund commented on Jun 26, 2025

    @MartinZikmund
    Member

    The __DESKTOP__ is the same as __UNO_SKIA_DESKTOP__ essentially, as we only have Skia-based desktop backend and __DESKTOP__ is our custom constant

  6. ramezgerges commented on Jun 26, 2025

    @ramezgerges
    ContributorAuthor

    I meant a publicly visible constant that users can guard with. Currently, neither DESKTOP or DESKTOP are present.

  7. MartinZikmund commented on Jun 26, 2025

    @MartinZikmund
    Member

    @ramezgerges it should be, unless I missed something - #20480

  8. ramezgerges commented on Jun 26, 2025

    @ramezgerges
    ContributorAuthor

    Oh, my bad. It was an IDE highlighting issue.

  9. self-assigned this
    on Jul 2, 2025
  10. booskander commented on Jul 3, 2025

    @booskander
    Contributor

    Constant UNO_SKIA is present in rider and VisualStudio

  11. changed the issue type fromtoon Jul 9, 2025
  12. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  13. locked as resolved and limited conversation to collaborators on May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/tbdkind/enhancementtriage/untriaged

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions