summaryrefslogtreecommitdiff
path: root/render/fx_renderer/meson.build
blob: 624640e8035e352c727b9a1ca74c9041447b53f5 (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
renderers = get_option('renderers')
if 'auto' in renderers and get_option('auto_features').enabled()
	renderers = ['gles2']
elif 'auto' in renderers and get_option('auto_features').disabled()
	renderers = []
endif

scenefx_files += files(
	'matrix.c',
	'util.c',
	'shaders.c',
	'pixel_format.c',
	'fx_pass.c',
	'fx_framebuffer.c',
	'fx_effect_framebuffers.c',
	'fx_texture.c',
	'fx_renderer.c',
)

if 'gles2' in renderers or 'auto' in renderers
	egl = dependency('egl', required: 'gles2' in renderers)
	gbm = dependency('gbm', required: 'gles2' in renderers)
	glesv2 = dependency('glesv2', required: 'gles2' in renderers)

	if egl.found() and gbm.found() and glesv2.found()
		scenefx_deps += [egl, gbm, glesv2]
	endif
	subdir('gles2')
endif