[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 03/03: meson: add template meson build file
From: |
gnunet |
Subject: |
[gnunet] 03/03: meson: add template meson build file |
Date: |
Sun, 15 Oct 2023 10:02:11 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 086f0d5586fa3145f483239a73997380aad8c05f
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun Oct 15 10:02:01 2023 +0200
meson: add template meson build file
---
src/template/meson.build | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/src/template/meson.build b/src/template/meson.build
new file mode 100644
index 000000000..0bdd43391
--- /dev/null
+++ b/src/template/meson.build
@@ -0,0 +1,34 @@
+gnunetservicetemplate_src = ['gnunet-service-template.c']
+
+configure_file(input : 'template.conf',
+ output : 'template.conf',
+ configuration : cdata,
+ install: true,
+ install_dir: pkgcfgdir)
+
+if get_option('monolith')
+ foreach p : libgnunettemplate_src + gnunetservicetemplate_src
+ gnunet_src += 'template/' + p
+ endforeach
+ subdir_done()
+endif
+
+executable ('gnunet-template',
+ ['gnunet-template.c'],
+ dependencies: [libgnunetutil_dep],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('bindir'))
+executable ('gnunet-service-template',
+ gnunetservicetemplate_src,
+ dependencies: [libgnunetutil_dep],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir') / 'gnunet' / 'libexec')
+testtemplateapi = executable ('test_template_api',
+ ['test_template_api.c'],
+ dependencies: [libgnunetutil_dep],
+ include_directories: [incdir, configuration_inc],
+ install: false)
+test('test_template_api', testtemplateapi, workdir: meson.current_source_dir(),
+ suite: 'template')
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.