aboutsummaryrefslogtreecommitdiff
path: root/render/meson.build
blob: 749d139374de2f9d50a906ed9a11a029ae4f7098 (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
glgen = find_program('../glgen.sh')

glapi_c = custom_target('glapi.c',
	input: 'glapi.txt',
	output: '@BASENAME@.c',
	command: [glgen, '@INPUT@', '@OUTPUT@'],
)
glapi_h = custom_target('glapi.h',
	input: 'glapi.txt',
	output: '@BASENAME@.h',
	command: [glgen, '@INPUT@', '@OUTPUT@'],
)

lib_wlr_render = static_library(
	'wlr_render',
	files(
		'egl.c',
		'matrix.c',
		'gles2/pixel_format.c',
		'gles2/renderer.c',
		'gles2/shaders.c',
		'gles2/texture.c',
		'gles2/util.c',
		'wlr_renderer.c',
		'wlr_texture.c',
	),
	glapi_c,
	glapi_h,
	include_directories: wlr_inc,
	dependencies: [glesv2, egl],
)

wlr_render = declare_dependency(
	link_with: lib_wlr_render,
	sources: glapi_h,
)