Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • libadwaita libadwaita
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 154
    • Issues 154
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 29
    • Merge requests 29
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • libadwaitalibadwaita
  • Merge requests
  • !648

src/meson.build: Look for Vulkan as well

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Chun-wei Fan requested to merge vulkan-dep into main Aug 15, 2022
  • Overview 2
  • Commits 1
  • Pipelines 1
  • Changes 1

Hi,

This attempts to fix builds against GTK that has Vulkan support enabled, as the GTK headers pull in the Vulkan headers in this case and the GTK dependency only pulls in the Vulkan dependency only when Vulkan was found via pkg-config when GTK was being built (which is typically not the case outside of *nix platforms, from the stock LunarG Vulkan SDK).

In this case, as we have no way to query the GTK dependencies to see whether Vulkan is enabled, make an optional dependency on Vulkan and use it if it was not found via pkg-config, so that we can find Vulkan's headers during the build, so that the builds won't break.

With blessings, thank you!

Edited Aug 15, 2022 by Chun-wei Fan
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: vulkan-dep