mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[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:
1 parent
194baade32
commit
47f8f56bb8
1 file changed
+7
@@ -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 ()
|
||||
|
||||
Reference in new issue
Block a user