aboutsummaryrefslogtreecommitdiff
path: root/backend/rdp/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'backend/rdp/meson.build')
-rw-r--r--backend/rdp/meson.build36
1 files changed, 36 insertions, 0 deletions
diff --git a/backend/rdp/meson.build b/backend/rdp/meson.build
new file mode 100644
index 00000000..40259c65
--- /dev/null
+++ b/backend/rdp/meson.build
@@ -0,0 +1,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)