Fix Apple platform target link surface

This commit is contained in:
2026-06-17 15:16:01 +02:00
parent 624f1bb99d
commit 0249ecab28
3 changed files with 37 additions and 2 deletions

View File

@@ -277,6 +277,27 @@ target_link_libraries(pp_platform_apple
pp_project_options
PRIVATE
pp_project_warnings)
if(TARGET pp_renderer_gl)
target_link_libraries(pp_platform_apple PUBLIC pp_renderer_gl)
endif()
if(APPLE)
if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
target_link_libraries(pp_platform_apple
PUBLIC
"-framework Foundation"
"-framework AVFoundation"
"-framework UIKit"
"-framework GLKit"
"-framework OpenGLES")
else()
target_link_libraries(pp_platform_apple
PUBLIC
"-framework Foundation"
"-framework AVFoundation"
"-framework AppKit"
"-framework OpenGL")
endif()
endif()
add_library(pp_platform_linux STATIC
${PP_PLATFORM_LINUX_SOURCES})