gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 086f0d5586fa3145f483239a73997380aad8c05f
parent e53ce84d02b5ba59495c5ae9c47d43eabbd2aa9b
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Sun, 15 Oct 2023 10:02:01 +0200

meson: add template meson build file

Diffstat:
Asrc/template/meson.build | 34++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+), 0 deletions(-)

diff --git a/src/template/meson.build 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')