From f92f6aabb4c33394b52d342a6bf43413c3144d71 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Tue, 10 Nov 2020 20:01:00 +0100 Subject: [PATCH] make libwebsockets optional --- meson.build | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index baef3cf..a47037c 100644 --- a/meson.build +++ b/meson.build @@ -2,8 +2,12 @@ project('webfuse', 'c', 'cpp', version: '0.6.0', license: 'LGPL-3.0+') without_tests = get_option('without_tests') -libwebsockets_dep = dependency('libwebsockets', version: '>=4.0.0') -libfuse_dep = dependency('fuse3', version: '>=3.8.0') +libwebsockets_dep = dependency('libwebsockets', version: '>=4.0.0', required: false) +if not libwebsockets_dep.found() + libwebsockets_dep = declare_dependency(link_with: 'websockets') +endif + +libfuse_dep = dependency('fuse3', version: '>=3.1.0') pkg_config = import('pkgconfig') @@ -202,4 +206,4 @@ alltests = executable('alltests', test('alltests', alltests) -endif \ No newline at end of file +endif