blob: eee7514a5b2dd5a2479911d374f03fefad509c3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
set(SOURCES
yagl_bimage.c
yagl_context.c
yagl_display.c
yagl_egl_calls.c
yagl_egl_state.c
yagl_gles_context.c
yagl_gles_image.c
yagl_host_egl_calls.c
yagl_image.c
yagl_log.c
yagl_malloc.c
yagl_offscreen.c
yagl_offscreen_image.c
yagl_offscreen_surface.c
yagl_onscreen.c
yagl_onscreen_display.c
yagl_onscreen_image.c
yagl_onscreen_surface.c
yagl_ref.c
yagl_render.c
yagl_resource.c
yagl_state.c
yagl_surface.c
yagl_utils.c
)
set(LIBRARIES
${CMAKE_THREAD_LIBS_INIT}
${LIBDRM_LIBRARIES}
${LIBDRM_VIGS_LIBRARIES}
dl
)
if (PLATFORM_X11)
set(SOURCES ${SOURCES}
yagl_dri2.c
)
set(LIBRARIES ${LIBRARIES}
${X11_LIBRARIES}
${XEXT_LIBRARIES}
${XFIXES_LIBRARIES}
)
endif ()
if (PLATFORM_GBM)
endif ()
if (PLATFORM_WAYLAND)
endif ()
add_library(EGL SHARED ${SOURCES})
set_target_properties(EGL PROPERTIES VERSION 1.0 SOVERSION 1)
target_link_libraries(EGL ${LIBRARIES})
install(
TARGETS EGL
LIBRARY DESTINATION ${INSTALL_LIB_DIR}
)
|