aboutsummaryrefslogtreecommitdiff
path: root/backend/rdp/meson.build
blob: 40259c652789406851614de47418a598ab8a4520 (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
rdp_libs = []
rdp_required = [
	'freerdp2',
	'winpr2',
]

msg = []
if get_option('freerdp').enabled()
	msg += 'Install "@0@" or pass "-Dfreerdp=disabled".'
endif
if not get_option('freerdp').disabled()
	msg += 'Required for RDP backend support.'
endif

foreach lib : rdp_required
	dep = dependency(lib,
		required: get_option('freerdp'),
		not_found_message: '\n'.join(msg).format(lib),
	)
	if not dep.found()
		subdir_done()
	endif

	rdp_libs += dep
endforeach

wlr_files += files(
	'backend.c',
	'keyboard.c',
	'listener.c',
	'output.c',
	'peer.c',
	'pointer.c',
)
wlr_deps += rdp_libs
conf_data.set10('WLR_HAS_RDP_BACKEND', true)