2022-07-12 03:51:27 +00:00
|
|
|
project(media-layer-gles)
|
|
|
|
|
|
|
|
# Build
|
2022-07-13 15:58:35 +00:00
|
|
|
if(MCPI_HEADLESS_MODE)
|
|
|
|
# Stubs For Headless Mode
|
2023-08-05 02:52:30 +00:00
|
|
|
add_library(GLESv1_CM OBJECT src/stubs.c)
|
|
|
|
target_link_libraries(GLESv1_CM PRIVATE media-layer-headers)
|
2022-07-13 15:58:35 +00:00
|
|
|
elseif(MCPI_USE_GLES1_COMPATIBILITY_LAYER)
|
|
|
|
# GLESv1_CM Compatibility Layer
|
2023-08-05 05:42:47 +00:00
|
|
|
add_library(GLESv1_CM INTERFACE)
|
|
|
|
target_link_libraries(GLESv1_CM INTERFACE gles-compatibility-layer)
|
2022-07-13 15:58:35 +00:00
|
|
|
else()
|
|
|
|
# Passthrough To glfwGetProcAddress()
|
2023-08-05 02:52:30 +00:00
|
|
|
add_library(GLESv1_CM OBJECT src/passthrough.c)
|
|
|
|
target_link_libraries(GLESv1_CM PRIVATE glfw media-layer-headers)
|
2022-07-12 03:51:27 +00:00
|
|
|
endif()
|