diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-10-15 10:02:01 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-10-15 10:02:01 +0200 |
commit | 086f0d5586fa3145f483239a73997380aad8c05f (patch) | |
tree | fac8e40a7f058dc23158138c492b09f7594f14bf | |
parent | e53ce84d02b5ba59495c5ae9c47d43eabbd2aa9b (diff) | |
download | gnunet-086f0d5586fa3145f483239a73997380aad8c05f.tar.gz gnunet-086f0d5586fa3145f483239a73997380aad8c05f.zip |
meson: add template meson build file
-rw-r--r-- | src/template/meson.build | 34 |
1 files changed, 34 insertions, 0 deletions
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 @@ | |||
1 | gnunetservicetemplate_src = ['gnunet-service-template.c'] | ||
2 | |||
3 | configure_file(input : 'template.conf', | ||
4 | output : 'template.conf', | ||
5 | configuration : cdata, | ||
6 | install: true, | ||
7 | install_dir: pkgcfgdir) | ||
8 | |||
9 | if get_option('monolith') | ||
10 | foreach p : libgnunettemplate_src + gnunetservicetemplate_src | ||
11 | gnunet_src += 'template/' + p | ||
12 | endforeach | ||
13 | subdir_done() | ||
14 | endif | ||
15 | |||
16 | executable ('gnunet-template', | ||
17 | ['gnunet-template.c'], | ||
18 | dependencies: [libgnunetutil_dep], | ||
19 | include_directories: [incdir, configuration_inc], | ||
20 | install: true, | ||
21 | install_dir: get_option('bindir')) | ||
22 | executable ('gnunet-service-template', | ||
23 | gnunetservicetemplate_src, | ||
24 | dependencies: [libgnunetutil_dep], | ||
25 | include_directories: [incdir, configuration_inc], | ||
26 | install: true, | ||
27 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
28 | testtemplateapi = executable ('test_template_api', | ||
29 | ['test_template_api.c'], | ||
30 | dependencies: [libgnunetutil_dep], | ||
31 | include_directories: [incdir, configuration_inc], | ||
32 | install: false) | ||
33 | test('test_template_api', testtemplateapi, workdir: meson.current_source_dir(), | ||
34 | suite: 'template') | ||