summaryrefslogtreecommitdiff
path: root/libweston
diff options
context:
space:
mode:
authorGuillaume Champagne <champagne.guillaume.c@gmail.com>2020-02-10 11:34:25 -0500
committerPekka Paalanen <pq@iki.fi>2020-03-05 14:43:58 +0000
commit7f42b350de4d334793e7131d7c8753b409e4ad85 (patch)
tree999c634e2c28950a58eb3b06309bab8b98321066 /libweston
parent147e67c4256ebd75491f40ce9d03c198ed5fe63c (diff)
downloadweston-7f42b350de4d334793e7131d7c8753b409e4ad85.tar.gz
backend-rdp: fix unresolved symbols errors
The RDP backend uses functions defined by the Windows Portable Runtime library (WinPR). The library's code is contained within FreeRDP repository, but it is packaged as its own library (seperate pkg-config file). WinPR is added as a dependency to the RDP backend. The version 2.0 is choosen as the version to on since the backend depends on FreeRDP 2.0. Signed-off-by: Guillaume Champagne <champagne.guillaume.c@gmail.com>
Diffstat (limited to 'libweston')
-rw-r--r--libweston/backend-rdp/meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/libweston/backend-rdp/meson.build b/libweston/backend-rdp/meson.build
index 237cd0a7..a033969e 100644
--- a/libweston/backend-rdp/meson.build
+++ b/libweston/backend-rdp/meson.build
@@ -9,6 +9,11 @@ if not dep_frdp.found()
error('RDP-backend requires freerdp2 which was not found. Or, you can use \'-Dbackend-rdp=false\'.')
endif
+dep_wpr = dependency('winpr2', version: '>= 2.0.0', required: false)
+if not dep_wpr.found()
+ error('RDP-backend requires winpr2 which was not found. Or, you can use \'-Dbackend-rdp=false\'.')
+endif
+
if cc.has_header('freerdp/version.h', dependencies: dep_frdp)
config_h.set('HAVE_FREERDP_VERSION_H', '1')
endif
@@ -24,6 +29,7 @@ endif
deps_rdp = [
dep_libweston_private,
dep_frdp,
+ dep_wpr,
]
plugin_rdp = shared_library(
'rdp-backend',