2019-03-28 04:03:35 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2019-03-28 08:56:14 +00:00
|
|
|
project(renderer_EGL LANGUAGES C)
|
2019-03-28 00:02:36 +00:00
|
|
|
|
2019-03-28 04:01:52 +00:00
|
|
|
find_package(PkgConfig)
|
2019-03-28 00:02:36 +00:00
|
|
|
pkg_check_modules(RENDERER_EGL_PKGCONFIG REQUIRED
|
|
|
|
egl
|
|
|
|
wayland-egl
|
2019-03-28 01:31:28 +00:00
|
|
|
gl
|
2019-03-28 00:02:36 +00:00
|
|
|
)
|
|
|
|
|
2019-03-28 04:01:52 +00:00
|
|
|
include(MakeObject)
|
2019-03-28 03:59:54 +00:00
|
|
|
make_object(
|
|
|
|
EGL_SHADER
|
|
|
|
shader/desktop.vert
|
|
|
|
shader/desktop_rgb.frag
|
|
|
|
shader/desktop_yuv.frag
|
2019-03-28 04:53:15 +00:00
|
|
|
shader/cursor.vert
|
|
|
|
shader/cursor_rgb.frag
|
|
|
|
shader/cursor_mono.frag
|
|
|
|
shader/fps.vert
|
|
|
|
shader/fps.frag
|
|
|
|
shader/fps_bg.frag
|
|
|
|
shader/alert.vert
|
|
|
|
shader/alert.frag
|
|
|
|
shader/alert_bg.frag
|
|
|
|
shader/splash_bg.vert
|
|
|
|
shader/splash_bg.frag
|
|
|
|
shader/splash_logo.vert
|
|
|
|
shader/splash_logo.frag
|
2019-03-28 03:59:54 +00:00
|
|
|
)
|
|
|
|
|
2019-03-28 08:56:14 +00:00
|
|
|
add_library(renderer_EGL STATIC
|
2019-03-28 00:02:36 +00:00
|
|
|
egl.c
|
2019-08-30 01:33:43 +00:00
|
|
|
debug.c
|
2019-03-28 00:02:36 +00:00
|
|
|
shader.c
|
|
|
|
texture.c
|
|
|
|
model.c
|
|
|
|
desktop.c
|
|
|
|
cursor.c
|
|
|
|
fps.c
|
|
|
|
draw.c
|
|
|
|
splash.c
|
|
|
|
alert.c
|
2019-03-28 03:59:54 +00:00
|
|
|
${EGL_SHADER_OBJS}
|
2019-03-28 00:02:36 +00:00
|
|
|
)
|
|
|
|
|
2019-03-28 08:56:14 +00:00
|
|
|
target_link_libraries(renderer_EGL
|
2019-03-28 00:02:36 +00:00
|
|
|
${RENDERER_EGL_PKGCONFIG_LIBRARIES}
|
2019-04-11 01:12:59 +00:00
|
|
|
lg_common
|
2019-03-28 08:56:14 +00:00
|
|
|
fonts
|
2019-03-28 00:02:36 +00:00
|
|
|
)
|
|
|
|
|
2019-03-28 08:56:14 +00:00
|
|
|
target_include_directories(renderer_EGL
|
2019-03-28 00:02:36 +00:00
|
|
|
PRIVATE
|
|
|
|
src
|
2019-03-28 03:59:54 +00:00
|
|
|
${EGL_SHADER_INCS}
|
2019-03-28 00:02:36 +00:00
|
|
|
${RENDERER_EGL_PKGCONFIG_INCLUDE_DIRS}
|
|
|
|
)
|