xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
686 stars 396 forks source link

Support for imgui metal capability on Mac #4872

Open kissholic opened 2 months ago

kissholic commented 2 months ago

Xmake Version

2.9.3

Operating System Version and Architecture

MacOS Sonoma 14.5

Describe Bug

'add_requires("imgui", {configs={glfw_metal = true}})' takes no effect, and head filers like 'imgui_impl_metal.h' could not be found.

Expected Behavior

'add_requires("imgui", {configs={glfw_metal = true}})' works.

Project Configuration

--

Additional Information and Error Logs

--

SirLynix commented 2 months ago

glfw_metal is not a config for the imgui package, but you can make a pull request to add it: https://github.com/xmake-io/xmake-repo/blob/dev/packages/i/imgui/xmake.lua#L69-L84