meson: Make it possible to build libvncclient as subproject

qemu-extended-key-event
Andri Yngvason 2020-11-30 21:19:10 +00:00
parent 67bd3331e5
commit 04659825a6
1 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,8 @@ project(
],
)
cmake = import('cmake')
buildtype = get_option('buildtype')
host_system = host_machine.system()
prefix = get_option('prefix')
@ -31,7 +33,13 @@ xkbcommon = dependency('xkbcommon')
pixman = dependency('pixman-1')
wayland_client = dependency('wayland-client')
wayland_cursor = dependency('wayland-cursor')
libvncserver_project = cmake.subproject('libvncserver')
if libvncserver_project.found()
libvncclient = libvncserver_project.dependency('vncclient')
else
libvncclient = dependency('libvncclient')
endif
aml_project = subproject('aml', required: false)
if aml_project.found()