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
|
if not get_option('renderer-gl')
subdir_done()
endif
config_h.set('ENABLE_EGL', '1')
srcs_renderer_gl = [
'egl-glue.c',
'gl-renderer.c',
linux_dmabuf_unstable_v1_protocol_c,
linux_dmabuf_unstable_v1_server_protocol_h,
]
deps_renderer_gl = [
dep_libm,
dep_pixman,
dep_libweston_private,
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
if get_option('backend-tdm')
foreach name : [ 'libtbm', 'wayland-tbm-server' ]
d = dependency(name, required: false)
if not d.found()
error('backend-tdm of gl-renderer requires @0@ which was not found. Or, you can use \'-Dbackend-tdm=false\'.'.format(name))
endif
deps_renderer_gl += d
endforeach
config_h.set('HAVE_TBM', '1')
endif
plugin_gl = shared_library(
'gl-renderer',
srcs_renderer_gl,
include_directories: common_inc,
dependencies: deps_renderer_gl,
name_prefix: '',
install: true,
install_dir: dir_module_libweston
)
env_modmap += 'gl-renderer.so=@0@;'.format(plugin_gl.full_path())
|