d1ace4c97f
This is preparation for disallowing unresolved symbols project-wide. This is a temporary fix that should be reverted and fixed properly later. /usr/bin/ld: libweston/backend-rdp/13a5658@@rdp-backend@sha/rdp.c.o: in function `rdp_peer_context_new': /home/pq/build/weston-meson/../../git/weston/libweston/backend-rdp/rdp.c:748: undefined reference to `Stream_New' /usr/bin/ld: libweston/backend-rdp/13a5658@@rdp-backend@sha/rdp.c.o: in function `rdp_peer_context_free': /home/pq/build/weston-meson/../../git/weston/libweston/backend-rdp/rdp.c:781: undefined reference to `Stream_Free' /usr/bin/ld: libweston/backend-rdp/13a5658@@rdp-backend@sha/rdp.c.o: in function `xf_input_keyboard_event': /home/pq/build/weston-meson/../../git/weston/libweston/backend-rdp/rdp.c:1220: undefined reference to `GetVirtualKeyCodeFromVirtualScanCode' /usr/bin/ld: /home/pq/build/weston-meson/../../git/weston/libweston/backend-rdp/rdp.c:1224: undefined reference to `GetKeycodeFromVirtualKeyCode' /usr/bin/ld: libweston/backend-rdp/13a5658@@rdp-backend@sha/rdp.c.o: in function `weston_backend_init': /home/pq/build/weston-meson/../../git/weston/libweston/backend-rdp/rdp.c:1469: undefined reference to `winpr_InitializeSSL' See also #262 Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
40 lines
999 B
Meson
40 lines
999 B
Meson
if not get_option('backend-rdp')
|
|
subdir_done()
|
|
endif
|
|
|
|
config_h.set('BUILD_RDP_COMPOSITOR', '1')
|
|
|
|
dep_frdp = dependency('freerdp2', version: '>= 2.0.0', required: false)
|
|
if not dep_frdp.found()
|
|
error('RDP-backend requires freerdp2 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
|
|
|
|
if cc.has_member(
|
|
'SURFACE_BITS_COMMAND', 'bmp',
|
|
dependencies : dep_frdp,
|
|
prefix : '#include <freerdp/update.h>'
|
|
)
|
|
config_h.set('HAVE_SURFACE_BITS_BMP', '1')
|
|
endif
|
|
|
|
deps_rdp = [
|
|
dep_libweston_private,
|
|
dep_frdp,
|
|
]
|
|
plugin_rdp = shared_library(
|
|
'rdp-backend',
|
|
'rdp.c',
|
|
include_directories: common_inc,
|
|
dependencies: deps_rdp,
|
|
name_prefix: '',
|
|
override_options: [ 'b_lundef=false' ],
|
|
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)
|