1if not get_option('backend-rdp') 2 subdir_done() 3endif 4 5config_h.set('BUILD_RDP_COMPOSITOR', '1') 6 7dep_frdp = dependency('freerdp2', version: '>= 2.0.0', required: false) 8if not dep_frdp.found() 9 error('RDP-backend requires freerdp2 which was not found. Or, you can use \'-Dbackend-rdp=false\'.') 10endif 11 12dep_wpr = dependency('winpr2', version: '>= 2.0.0', required: false) 13if not dep_wpr.found() 14 error('RDP-backend requires winpr2 which was not found. Or, you can use \'-Dbackend-rdp=false\'.') 15endif 16 17if cc.has_header('freerdp/version.h', dependencies: dep_frdp) 18 config_h.set('HAVE_FREERDP_VERSION_H', '1') 19endif 20 21if cc.has_member( 22 'SURFACE_BITS_COMMAND', 'bmp', 23 dependencies : dep_frdp, 24 prefix : '#include <freerdp/update.h>' 25) 26 config_h.set('HAVE_SURFACE_BITS_BMP', '1') 27endif 28 29if cc.has_type( 30 'enum SURFCMD_CMDTYPE', 31 dependencies : dep_frdp, 32 prefix : '#include <freerdp/update.h>' 33) 34 config_h.set('HAVE_SURFCMD_CMDTYPE', '1') 35endif 36 37if cc.has_function( 38 'nsc_context_set_parameters', 39 dependencies : dep_frdp, 40 prefix: '#include <freerdp/codec/nsc.h>' 41) 42 config_h.set('HAVE_NSC_CONTEXT_SET_PARAMETERS', '1') 43endif 44 45deps_rdp = [ 46 dep_libweston_private, 47 dep_frdp, 48 dep_wpr, 49] 50plugin_rdp = shared_library( 51 'rdp-backend', 52 'rdp.c', 53 include_directories: common_inc, 54 dependencies: deps_rdp, 55 name_prefix: '', 56 install: true, 57 install_dir: dir_module_libweston 58) 59env_modmap += 'rdp-backend.so=@0@;'.format(plugin_rdp.full_path()) 60install_headers(backend_rdp_h, subdir: dir_include_libweston_install) 61