Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ project(webos_userland LANGUAGES C CXX)

set(CMAKE_C_STANDARD 11)

option(ENABLE_GLES3_2 "Enable GLES 3.2 library as opposed to 2.0" OFF)

include_directories(include)

add_library(EGL SHARED src/dummy.c)
Expand All @@ -15,7 +17,11 @@ target_link_options(GLESv1_CM PRIVATE ${CMAKE_SOURCE_DIR}/src/GLESv1_CM.lds)

add_library(GLESv2 SHARED src/dummy.c)
set_target_properties(GLESv2 PROPERTIES VERSION 2.1.0 SOVERSION 2)
if (ENABLE_GLES3_2)
target_link_options(GLESv2 PRIVATE ${CMAKE_SOURCE_DIR}/src/GLESv2-gl32.lds)
else()
target_link_options(GLESv2 PRIVATE ${CMAKE_SOURCE_DIR}/src/GLESv2.lds)
endif()

add_library(wayland-egl SHARED src/dummy.c)
if (WAYLAND_EGL_SOVERSION_1)
Expand Down
Loading