libweston: move gl-renderer into a subdir
GL-renderer is expected to grow more files, both by addition and by splitting. Moving them into a new subdirectory helps people to understand which files are relevant. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
#include "weston-debug.h"
|
#include "weston-debug.h"
|
||||||
#include "shared/helpers.h"
|
#include "shared/helpers.h"
|
||||||
#include "shared/timespec-util.h"
|
#include "shared/timespec-util.h"
|
||||||
#include "gl-renderer.h"
|
#include "renderer-gl/gl-renderer.h"
|
||||||
#include "weston-egl-ext.h"
|
#include "weston-egl-ext.h"
|
||||||
#include "pixman-renderer.h"
|
#include "pixman-renderer.h"
|
||||||
#include "pixel-formats.h"
|
#include "pixel-formats.h"
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
#include <libweston/libweston.h>
|
#include <libweston/libweston.h>
|
||||||
#include <libweston/backend-wayland.h>
|
#include <libweston/backend-wayland.h>
|
||||||
#include "gl-renderer.h"
|
#include "renderer-gl/gl-renderer.h"
|
||||||
#include "weston-egl-ext.h"
|
#include "weston-egl-ext.h"
|
||||||
#include "pixman-renderer.h"
|
#include "pixman-renderer.h"
|
||||||
#include "shared/helpers.h"
|
#include "shared/helpers.h"
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
#include "shared/image-loader.h"
|
#include "shared/image-loader.h"
|
||||||
#include "shared/timespec-util.h"
|
#include "shared/timespec-util.h"
|
||||||
#include "shared/file-util.h"
|
#include "shared/file-util.h"
|
||||||
#include "gl-renderer.h"
|
#include "renderer-gl/gl-renderer.h"
|
||||||
#include "weston-egl-ext.h"
|
#include "weston-egl-ext.h"
|
||||||
#include "pixman-renderer.h"
|
#include "pixman-renderer.h"
|
||||||
#include "presentation-time-server-protocol.h"
|
#include "presentation-time-server-protocol.h"
|
||||||
|
|||||||
+2
-36
@@ -438,42 +438,6 @@ dep_vertex_clipping = declare_dependency(
|
|||||||
include_directories: include_directories('.')
|
include_directories: include_directories('.')
|
||||||
)
|
)
|
||||||
|
|
||||||
if get_option('renderer-gl')
|
|
||||||
config_h.set('ENABLE_EGL', '1')
|
|
||||||
|
|
||||||
srcs_renderer_gl = [
|
|
||||||
'gl-renderer.c',
|
|
||||||
linux_dmabuf_unstable_v1_protocol_c,
|
|
||||||
linux_dmabuf_unstable_v1_server_protocol_h,
|
|
||||||
]
|
|
||||||
|
|
||||||
deps_renderer_gl = [
|
|
||||||
dep_pixman,
|
|
||||||
dep_libweston,
|
|
||||||
dep_libdrm_headers,
|
|
||||||
dep_vertex_clipping
|
|
||||||
]
|
|
||||||
|
|
||||||
foreach name : [ 'egl', 'glesv2' ]
|
|
||||||
d = dependency(name, required: false)
|
|
||||||
if not d.found()
|
|
||||||
error('gl-renderer requires @0@ which was not found. Or, you can use \'-Drenderer-gl=false\'.'.format(name))
|
|
||||||
endif
|
|
||||||
deps_renderer_gl += d
|
|
||||||
endforeach
|
|
||||||
|
|
||||||
plugin_gl = shared_library(
|
|
||||||
'gl-renderer',
|
|
||||||
srcs_renderer_gl,
|
|
||||||
include_directories: include_directories('..', '../shared'),
|
|
||||||
dependencies: deps_renderer_gl,
|
|
||||||
name_prefix: '',
|
|
||||||
install: true,
|
|
||||||
install_dir: dir_module_libweston
|
|
||||||
)
|
|
||||||
env_modmap += 'gl-renderer.so=@0@;'.format(plugin_gl.full_path())
|
|
||||||
endif
|
|
||||||
|
|
||||||
if get_option('weston-launch')
|
if get_option('weston-launch')
|
||||||
dep_pam = cc.find_library('pam')
|
dep_pam = cc.find_library('pam')
|
||||||
|
|
||||||
@@ -491,3 +455,5 @@ if get_option('weston-launch')
|
|||||||
|
|
||||||
meson.add_install_script('echo', 'REMINDER: You are installing weston-launch, please make it setuid-root.')
|
meson.add_install_script('echo', 'REMINDER: You are installing weston-launch, please make it setuid-root.')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
subdir('renderer-gl')
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
if not get_option('renderer-gl')
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
|
config_h.set('ENABLE_EGL', '1')
|
||||||
|
|
||||||
|
srcs_renderer_gl = [
|
||||||
|
'gl-renderer.c',
|
||||||
|
linux_dmabuf_unstable_v1_protocol_c,
|
||||||
|
linux_dmabuf_unstable_v1_server_protocol_h,
|
||||||
|
]
|
||||||
|
|
||||||
|
deps_renderer_gl = [
|
||||||
|
dep_pixman,
|
||||||
|
dep_libweston,
|
||||||
|
dep_libdrm_headers,
|
||||||
|
dep_vertex_clipping
|
||||||
|
]
|
||||||
|
|
||||||
|
foreach name : [ 'egl', 'glesv2' ]
|
||||||
|
d = dependency(name, required: false)
|
||||||
|
if not d.found()
|
||||||
|
error('gl-renderer requires @0@ which was not found. Or, you can use \'-Drenderer-gl=false\'.'.format(name))
|
||||||
|
endif
|
||||||
|
deps_renderer_gl += d
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
plugin_gl = shared_library(
|
||||||
|
'gl-renderer',
|
||||||
|
srcs_renderer_gl,
|
||||||
|
include_directories: include_directories('../..', '../../shared'),
|
||||||
|
dependencies: deps_renderer_gl,
|
||||||
|
name_prefix: '',
|
||||||
|
install: true,
|
||||||
|
install_dir: dir_module_libweston
|
||||||
|
)
|
||||||
|
env_modmap += 'gl-renderer.so=@0@;'.format(plugin_gl.full_path())
|
||||||
Reference in New Issue
Block a user