backend-rdp: move into new subdir
For consistency with other backends. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
committed by
Daniel Stone
parent
8059d317a5
commit
b70ee941b5
@@ -0,0 +1,38 @@
|
|||||||
|
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,
|
||||||
|
dep_frdp,
|
||||||
|
]
|
||||||
|
plugin_rdp = shared_library(
|
||||||
|
'rdp-backend',
|
||||||
|
'rdp.c',
|
||||||
|
include_directories: include_directories('../..', '../../shared'),
|
||||||
|
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)
|
||||||
+1
-38
@@ -185,44 +185,6 @@ dep_libinput_backend = declare_dependency(
|
|||||||
include_directories: include_directories('.')
|
include_directories: include_directories('.')
|
||||||
)
|
)
|
||||||
|
|
||||||
if get_option('backend-rdp')
|
|
||||||
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,
|
|
||||||
dep_frdp,
|
|
||||||
]
|
|
||||||
plugin_rdp = shared_library(
|
|
||||||
'rdp-backend',
|
|
||||||
'compositor-rdp.c',
|
|
||||||
include_directories: include_directories('..', '../shared'),
|
|
||||||
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)
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
if get_option('backend-wayland')
|
if get_option('backend-wayland')
|
||||||
config_h.set('BUILD_WAYLAND_COMPOSITOR', '1')
|
config_h.set('BUILD_WAYLAND_COMPOSITOR', '1')
|
||||||
|
|
||||||
@@ -377,3 +339,4 @@ endif
|
|||||||
subdir('renderer-gl')
|
subdir('renderer-gl')
|
||||||
subdir('backend-drm')
|
subdir('backend-drm')
|
||||||
subdir('backend-headless')
|
subdir('backend-headless')
|
||||||
|
subdir('backend-rdp')
|
||||||
|
|||||||
Reference in New Issue
Block a user