iOS opengles extensions imports

This commit is contained in:
vsaint1 2026-05-23 04:51:23 -03:00
commit c550fbf229

View file

@ -38,6 +38,12 @@ set(raylib_sources
rtextures.c
)
if (${PLATFORM} STREQUAL "iOS")
list(APPEND raylib_sources
rcore_ios_main.m
)
endif()
# <root>/cmake/GlfwImport.cmake handles the details around the inclusion of glfw
if (NOT ${PLATFORM} MATCHES "Web")
include(GlfwImport)
@ -104,6 +110,11 @@ target_link_libraries(raylib PUBLIC ${LIBS_PUBLIC})
# and you will be able to select more build options
include(CompileDefinitions)
if (${PLATFORM} STREQUAL "iOS")
target_compile_definitions(raylib PRIVATE GLES_SILENCE_DEPRECATION=1)
target_compile_options(raylib PRIVATE -Wno-deprecated-declarations)
endif()
# Registering include directories
target_include_directories(raylib
PUBLIC