[gpu] Add Metal demo support to CMake build

Conditionally compile demo-metal.mm and link Metal frameworks
on macOS.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Behdad EsfahbodandClaude Opus 4.6 committed 2026-03-29 18:22:08 -06:00
1 parent 194baade32
commit 47f8f56bb8
1 file changed
+7
+7
View File
@@ -1076,6 +1076,13 @@ if (HB_BUILD_UTILS)
)
target_link_libraries(hb-gpu-demo harfbuzz-gpu harfbuzz
OpenGL::GL GLEW::GLEW glfw)
if (APPLE)
target_sources(hb-gpu-demo PRIVATE
${PROJECT_SOURCE_DIR}/util/gpu/demo-metal.mm)
target_link_libraries(hb-gpu-demo
"-framework Metal" "-framework QuartzCore"
"-framework Foundation" "-framework AppKit")
endif ()
endif ()
endif ()
endif ()