2019-04-05 13:14:15 +03:00
|
|
|
if not get_option('backend-rdp')
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
config_h.set('BUILD_RDP_COMPOSITOR', '1')
|
|
|
|
|
2022-04-29 15:22:41 +03:00
|
|
|
if get_option('rdp-thread-check')
|
|
|
|
config_h.set('ENABLE_RDP_THREAD_CHECK', '1')
|
|
|
|
endif
|
|
|
|
|
2020-09-30 00:56:06 +03:00
|
|
|
dep_frdp = dependency('freerdp2', version: '>= 2.2.0', required: false)
|
2019-04-05 13:14:15 +03:00
|
|
|
if not dep_frdp.found()
|
2020-09-30 00:56:06 +03:00
|
|
|
error('RDP-backend requires freerdp >= 2.2.0 which was not found. Or, you can use \'-Dbackend-rdp=false\'.')
|
2019-04-05 13:14:15 +03:00
|
|
|
endif
|
|
|
|
|
2020-09-30 00:56:06 +03:00
|
|
|
dep_wpr = dependency('winpr2', version: '>= 2.2.0', required: false)
|
2020-02-10 19:34:25 +03:00
|
|
|
if not dep_wpr.found()
|
2020-09-30 00:56:06 +03:00
|
|
|
error('RDP-backend requires winpr >= 2.2.0 which was not found. Or, you can use \'-Dbackend-rdp=false\'.')
|
2020-04-12 01:05:59 +03:00
|
|
|
endif
|
|
|
|
|
2019-04-05 13:14:15 +03:00
|
|
|
deps_rdp = [
|
2019-04-18 16:43:55 +03:00
|
|
|
dep_libweston_private,
|
2019-04-05 13:14:15 +03:00
|
|
|
dep_frdp,
|
2020-02-10 19:34:25 +03:00
|
|
|
dep_wpr,
|
2019-04-05 13:14:15 +03:00
|
|
|
]
|
2022-03-11 22:29:11 +03:00
|
|
|
srcs_rdp = [
|
|
|
|
'rdp.c',
|
|
|
|
'rdputil.c',
|
|
|
|
]
|
|
|
|
|
2019-04-05 13:14:15 +03:00
|
|
|
plugin_rdp = shared_library(
|
|
|
|
'rdp-backend',
|
2022-03-11 22:29:11 +03:00
|
|
|
srcs_rdp,
|
2019-04-05 17:09:28 +03:00
|
|
|
include_directories: common_inc,
|
2019-04-05 13:14:15 +03:00
|
|
|
dependencies: deps_rdp,
|
|
|
|
name_prefix: '',
|
|
|
|
install: true,
|
|
|
|
install_dir: dir_module_libweston
|
|
|
|
)
|
|
|
|
env_modmap += 'rdp-backend.so=@0@;'.format(plugin_rdp.full_path())
|
|
|
|
install_headers(backend_rdp_h, subdir: dir_include_libweston_install)
|