mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
c01b81c99c
This types adds a container for formats + modifiers. A list that is of [format [modifier]] was chosen instead of [format modifer] because that is how GBM accepts them. Co-Authored-By: emersion <contact@emersion.fr>
38 lines
687 B
Meson
38 lines
687 B
Meson
glgen = find_program('../glgen.sh')
|
|
|
|
glapi = custom_target(
|
|
'glapi',
|
|
input: 'glapi.txt',
|
|
output: ['@BASENAME@.c', '@BASENAME@.h'],
|
|
command: [glgen, '@INPUT@', '@OUTDIR@'],
|
|
)
|
|
|
|
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,
|
|
drm.partial_dependency(compile_args: true), # <drm_fourcc.h>
|
|
glesv2,
|
|
pixman,
|
|
wayland_server,
|
|
],
|
|
)
|
|
|
|
wlr_render = declare_dependency(
|
|
link_with: lib_wlr_render,
|
|
sources: glapi[1],
|
|
)
|