mirror of
https://github.com/falk-werner/webfuse
synced 2025-06-04 00:14:12 +00:00
make libwebsockets optional
This commit is contained in:
parent
1e590b20ff
commit
f92f6aabb4
10
meson.build
10
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
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user