wlroots/render/meson.build

39 lines
687 B
Meson
Raw Permalink Normal View History

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