backend-vnc: add meson subprojects support
Make use of meson subprojects support. Allow to optionally build the libraries required for the VNC backend as subproject of Weston. Signed-off-by: Stefan Agner <stefan@agner.ch> [philipp.zabel@gmail.com: update neatvnc and aml versions] Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
This commit is contained in:
parent
df6ffb8cbc
commit
64dea007c6
@ -3,12 +3,12 @@ if not get_option('backend-vnc')
|
||||
endif
|
||||
|
||||
config_h.set('BUILD_VNC_COMPOSITOR', '1')
|
||||
dep_neatvnc = dependency('neatvnc', version: ['>= 0.6.0', '< 0.7.0'], required: false)
|
||||
dep_neatvnc = dependency('neatvnc', version: ['>= 0.6.0', '< 0.7.0'], required: false, fallback: ['neatvnc', 'neatvnc_dep'])
|
||||
if not dep_neatvnc.found()
|
||||
error('VNC backend requires neatvnc which was not found. Or, you can use \'-Dbackend-vnc=false\'.')
|
||||
endif
|
||||
|
||||
dep_aml = dependency('aml', version: ['>= 0.3.0', '< 0.4.0'], required: false)
|
||||
dep_aml = dependency('aml', version: ['>= 0.3.0', '< 0.4.0'], required: false, fallback: ['aml', 'aml_dep'])
|
||||
if not dep_aml.found()
|
||||
error('VNC backend requires libaml which was not found. Or, you can use \'-Dbackend-vnc=false\'.')
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user