aboutsummaryrefslogtreecommitdiff
path: root/render/meson.build
blob: 3f6bfdcae7cbe30bc74d228547de3f8e29d95d06 (plain)
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
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],
)