From 180329d1d2f0642b0aadee03bb7bfedb7da98fcf Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Sat, 6 Jun 2020 15:07:25 +0200 Subject: [PATCH] enabled meson build --- .gitignore | 5 +++-- meson.build | 15 +++++++++++++++ subprojects/jansson.wrap | 10 ++++++++++ subprojects/libwebsockets.wrap | 6 ++++++ subprojects/webfuse.wrap | 6 ++++++ 5 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 meson.build create mode 100644 subprojects/jansson.wrap create mode 100644 subprojects/libwebsockets.wrap create mode 100644 subprojects/webfuse.wrap diff --git a/.gitignore b/.gitignore index 48e8b24..7921596 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /build/ -/.deps/ -/.vscode/ \ No newline at end of file +/.vscode/ +/subprojects/* +!/subprojects/*.wrap \ No newline at end of file diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..036b954 --- /dev/null +++ b/meson.build @@ -0,0 +1,15 @@ +project('webfuse-provider', version: '0.1.0', license: 'LGPL-3.0+') + + +webfuse_provider_dep = dependency('webfuse_provider', version: '>=0.3.0', + fallback: ['webfuse', 'webfuse_provider_dep'], default_options: ['without_adapter=true']) + +executable('webfuse-provider', + 'src/main.c', + dependencies: [webfuse_provider_dep]) + +executable('static-filesystem-provider', + 'src/static_filesystem/static_filesystem.c', + 'src/static_filesystem/path.c', + 'src/static_filesystem/main.c', + dependencies: [webfuse_provider_dep]) diff --git a/subprojects/jansson.wrap b/subprojects/jansson.wrap new file mode 100644 index 0000000..6282afd --- /dev/null +++ b/subprojects/jansson.wrap @@ -0,0 +1,10 @@ +[wrap-file] +directory = jansson-2.11 + +source_url = http://www.digip.org/jansson/releases/jansson-2.11.tar.bz2 +source_filename = jansson-2.11.tar.bz2 +source_hash = 783132e2fc970feefc2fa54199ef65ee020bd8e0e991a78ea44b8586353a0947 + +patch_url = https://wrapdb.mesonbuild.com/v1/projects/jansson/2.11/3/get_zip +patch_filename = jansson-2.11-3-wrap.zip +patch_hash = 0bcac510994890048d42658c674e33dd7d88715fc1e3bf49d10012f57b0e0020 \ No newline at end of file diff --git a/subprojects/libwebsockets.wrap b/subprojects/libwebsockets.wrap new file mode 100644 index 0000000..f1aa3ee --- /dev/null +++ b/subprojects/libwebsockets.wrap @@ -0,0 +1,6 @@ +[wrap-file] +directory = libwebsockets-4.0.13 + +source_url = https://github.com/warmcat/libwebsockets/archive/v4.0.13.zip +source_filename = v4.0.13.zip +source_hash = 0914ea3fdec496daf6b6a5c00f7ba1b52eb8cc3d55b66685df92920b232fd7a5 \ No newline at end of file diff --git a/subprojects/webfuse.wrap b/subprojects/webfuse.wrap new file mode 100644 index 0000000..469f97e --- /dev/null +++ b/subprojects/webfuse.wrap @@ -0,0 +1,6 @@ +[wrap-file] +directory = webfuse-0.3.1 + +source_url = https://github.com/falk-werner/webfuse/archive/v0.3.1.tar.gz +source_filename = v0.3.1.tar.gz +source_hash = 46624b5f29e8f87dd1aebfce3b13ca87e766bc59546b6e5f49665d2f8c555d62