meson: Use static linking for libvncserver subproject

qemu-extended-key-event
Andri Yngvason 2020-12-06 14:57:09 +00:00
parent 4493e68115
commit 56ffc014ca
1 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,10 @@ pixman = dependency('pixman-1')
wayland_client = dependency('wayland-client')
wayland_cursor = dependency('wayland-cursor')
libvncserver_project = cmake.subproject('libvncserver')
libvncserver_opt = cmake.subproject_options()
libvncserver_opt.add_cmake_defines({'BUILD_SHARED_LIBS': false})
libvncserver_project = cmake.subproject('libvncserver', options: libvncserver_opt)
if libvncserver_project.found()
libvncclient = libvncserver_project.dependency('vncclient')
else