mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
added option to prevent installation
This commit is contained in:
parent
6b59763d7c
commit
b94dc9f612
16
meson.build
16
meson.build
@ -1,5 +1,7 @@
|
|||||||
project('webfuse', 'c', 'cpp', version: '0.3.0', license: 'LGPL-3.0+')
|
project('webfuse', 'c', 'cpp', version: '0.3.0', license: 'LGPL-3.0+')
|
||||||
|
|
||||||
|
without_install = get_option('without_install')
|
||||||
|
|
||||||
libwebsockets_dep = dependency('libwebsockets', version: '>=4.0.1')
|
libwebsockets_dep = dependency('libwebsockets', version: '>=4.0.1')
|
||||||
jansson_dep = dependency('jansson', version: '>=2.11', fallback: ['jansson', 'jansson_dep'])
|
jansson_dep = dependency('jansson', version: '>=2.11', fallback: ['jansson', 'jansson_dep'])
|
||||||
libfuse_dep = dependency('fuse3', version: '>=3.8.0', fallback: ['fuse3', 'libfuse_dep'])
|
libfuse_dep = dependency('fuse3', version: '>=3.8.0', fallback: ['fuse3', 'libfuse_dep'])
|
||||||
@ -41,7 +43,9 @@ webfuse_core_dep = declare_dependency(
|
|||||||
link_with: webfuse_core,
|
link_with: webfuse_core,
|
||||||
dependencies: [jansson_dep, libwebsockets_dep])
|
dependencies: [jansson_dep, libwebsockets_dep])
|
||||||
|
|
||||||
|
if not without_install
|
||||||
install_subdir('include/webfuse/core', install_dir: 'include/webfuse')
|
install_subdir('include/webfuse/core', install_dir: 'include/webfuse')
|
||||||
|
endif
|
||||||
|
|
||||||
# Webfuse provider
|
# Webfuse provider
|
||||||
|
|
||||||
@ -75,13 +79,15 @@ webfuse_provider = shared_library('webfuse_provider',
|
|||||||
c_args: ['-fvisibility=hidden', '-DWFP_API=WFP_EXPORT'],
|
c_args: ['-fvisibility=hidden', '-DWFP_API=WFP_EXPORT'],
|
||||||
include_directories: private_inc_dir,
|
include_directories: private_inc_dir,
|
||||||
dependencies: [webfuse_provider_static_dep],
|
dependencies: [webfuse_provider_static_dep],
|
||||||
install: true)
|
install: not without_install)
|
||||||
|
|
||||||
webfuse_provider_dep = declare_dependency(
|
webfuse_provider_dep = declare_dependency(
|
||||||
include_directories: inc_dir,
|
include_directories: inc_dir,
|
||||||
link_with: [webfuse_provider],
|
link_with: [webfuse_provider],
|
||||||
dependencies: [libwebsockets_dep, jansson_dep])
|
dependencies: [libwebsockets_dep, jansson_dep])
|
||||||
|
|
||||||
|
if not without_install
|
||||||
|
|
||||||
install_headers('include/webfuse_provider.h', subdir: 'webfuse')
|
install_headers('include/webfuse_provider.h', subdir: 'webfuse')
|
||||||
install_subdir('include/webfuse/provider', install_dir: 'include/webfuse')
|
install_subdir('include/webfuse/provider', install_dir: 'include/webfuse')
|
||||||
|
|
||||||
@ -93,6 +99,8 @@ pkg_config.generate(
|
|||||||
filebase: 'webfuse_provider',
|
filebase: 'webfuse_provider',
|
||||||
description: 'Provider library for websockets filesystem')
|
description: 'Provider library for websockets filesystem')
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
# Webfuse adapter
|
# Webfuse adapter
|
||||||
|
|
||||||
webfuse_adapter_static = static_library('webfuse_adapter',
|
webfuse_adapter_static = static_library('webfuse_adapter',
|
||||||
@ -130,13 +138,15 @@ webfuse_adapter = shared_library('webfuse_adapter',
|
|||||||
c_args: ['-fvisibility=hidden', '-DWF_API=WF_EXPORT'],
|
c_args: ['-fvisibility=hidden', '-DWF_API=WF_EXPORT'],
|
||||||
include_directories: private_inc_dir,
|
include_directories: private_inc_dir,
|
||||||
dependencies: [webfuse_adapter_static_dep, libfuse_dep],
|
dependencies: [webfuse_adapter_static_dep, libfuse_dep],
|
||||||
install: true)
|
install: not without_install)
|
||||||
|
|
||||||
webfuse_adapter_dep = declare_dependency(
|
webfuse_adapter_dep = declare_dependency(
|
||||||
include_directories: inc_dir,
|
include_directories: inc_dir,
|
||||||
link_with: [webfuse_adapter],
|
link_with: [webfuse_adapter],
|
||||||
dependencies: [libfuse_dep, libwebsockets_dep, jansson_dep])
|
dependencies: [libfuse_dep, libwebsockets_dep, jansson_dep])
|
||||||
|
|
||||||
|
if not without_install
|
||||||
|
|
||||||
install_headers('include/webfuse_adapter.h', subdir: 'webfuse')
|
install_headers('include/webfuse_adapter.h', subdir: 'webfuse')
|
||||||
install_subdir('include/webfuse/adapter', install_dir: 'include/webfuse')
|
install_subdir('include/webfuse/adapter', install_dir: 'include/webfuse')
|
||||||
|
|
||||||
@ -148,6 +158,8 @@ pkg_config.generate(
|
|||||||
filebase: 'webfuse_adapter',
|
filebase: 'webfuse_adapter',
|
||||||
description: 'Websockets filesystem server library')
|
description: 'Websockets filesystem server library')
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
# Unit Tests
|
# Unit Tests
|
||||||
|
|
||||||
fscheck = executable('fs_check',
|
fscheck = executable('fs_check',
|
||||||
|
1
meson_options.txt
Normal file
1
meson_options.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
option('without_install', type: 'boolean', value: false, description: 'skip installation shared libraries, headers and pkg-config files')
|
Loading…
Reference in New Issue
Block a user