2017-10-08 02:19:25 +02:00
|
|
|
glgen = find_program('../glgen.sh')
|
|
|
|
|
2018-08-24 09:35:02 +02:00
|
|
|
glapi = custom_target(
|
|
|
|
'glapi',
|
2017-10-08 02:19:25 +02:00
|
|
|
input: 'glapi.txt',
|
2017-11-22 02:04:29 +01:00
|
|
|
output: ['@BASENAME@.c', '@BASENAME@.h'],
|
2018-08-24 09:33:35 +02:00
|
|
|
command: [glgen, '@INPUT@', '@OUTDIR@'],
|
2017-10-08 02:19:25 +02:00
|
|
|
)
|
|
|
|
|
2017-08-30 20:30:47 +02:00
|
|
|
lib_wlr_render = static_library(
|
|
|
|
'wlr_render',
|
|
|
|
files(
|
2018-05-31 13:33:27 +02:00
|
|
|
'dmabuf.c',
|
2017-08-30 20:30:47 +02:00
|
|
|
'egl.c',
|
2019-04-01 18:15:56 +02:00
|
|
|
'drm_format_set.c',
|
2017-08-30 20:30:47 +02:00
|
|
|
'gles2/pixel_format.c',
|
|
|
|
'gles2/renderer.c',
|
|
|
|
'gles2/shaders.c',
|
|
|
|
'gles2/texture.c',
|
|
|
|
'wlr_renderer.c',
|
|
|
|
'wlr_texture.c',
|
|
|
|
),
|
2018-08-24 09:35:02 +02:00
|
|
|
glapi,
|
2017-08-30 20:30:47 +02:00
|
|
|
include_directories: wlr_inc,
|
2018-10-15 00:39:35 +02:00
|
|
|
dependencies: [
|
|
|
|
egl,
|
2018-10-15 22:34:23 +02:00
|
|
|
drm.partial_dependency(compile_args: true), # <drm_fourcc.h>
|
2018-10-15 00:39:35 +02:00
|
|
|
glesv2,
|
|
|
|
pixman,
|
2019-04-01 18:15:56 +02:00
|
|
|
wayland_server,
|
2018-10-15 00:39:35 +02:00
|
|
|
],
|
2017-08-30 20:30:47 +02:00
|
|
|
)
|
2017-10-08 02:19:25 +02:00
|
|
|
|
|
|
|
wlr_render = declare_dependency(
|
|
|
|
link_with: lib_wlr_render,
|
2017-11-22 02:04:29 +01:00
|
|
|
sources: glapi[1],
|
2017-10-08 02:19:25 +02:00
|
|
|
)
|