diff options
Diffstat (limited to 'render/meson.build')
-rw-r--r-- | render/meson.build | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/render/meson.build b/render/meson.build new file mode 100644 index 00000000..e45ea90b --- /dev/null +++ b/render/meson.build @@ -0,0 +1,37 @@ +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', + '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], +) |