diff options
Diffstat (limited to 'src/namestore/meson.build')
-rw-r--r-- | src/namestore/meson.build | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/namestore/meson.build b/src/namestore/meson.build new file mode 100644 index 000000000..9241737ca --- /dev/null +++ b/src/namestore/meson.build | |||
@@ -0,0 +1,46 @@ | |||
1 | libgnunetnamestore_src = ['namestore_api.c', 'namestore_api_monitor.c'] | ||
2 | libgnunetpluginnamestore_sqlite_src = ['plugin_namestore_sqlite.c'] | ||
3 | |||
4 | gnunetnamestore_src = ['gnunet-namestore.c'] | ||
5 | gnunetservicenamestore_src = ['gnunet-service-namestore.c'] | ||
6 | |||
7 | |||
8 | if gnunet_monolith == false | ||
9 | libgnunetnamestore = library('gnunetnamestore', | ||
10 | libgnunetnamestore_src, | ||
11 | dependencies: [libgnunetutil_dep, | ||
12 | libgnunetgnsrecord_dep, | ||
13 | libgnunetidentity_dep], | ||
14 | include_directories: [incdir, configuration_inc]) | ||
15 | libgnunetnamestore_dep = declare_dependency(link_with : libgnunetnamestore) | ||
16 | libgnunetpluginnamestore_sqlite = library('gnunet_plugin_namestore_sqlite', | ||
17 | libgnunetpluginnamestore_sqlite_src, | ||
18 | dependencies: [libgnunetutil_dep, | ||
19 | libgnunetgnsrecord_dep, | ||
20 | libgnunetidentity_dep, | ||
21 | libgnunetsq_dep, | ||
22 | libgnunetstatistics_dep, | ||
23 | sqlite_dep], | ||
24 | include_directories: [incdir, configuration_inc]) | ||
25 | libgnunetpluginnamestore_sqlite_dep = declare_dependency(link_with : libgnunetpluginnamestore_sqlite) | ||
26 | executable ('gnunet-namestore', | ||
27 | gnunetnamestore_src, | ||
28 | dependencies: [libgnunetnamestore_dep, | ||
29 | libgnunetutil_dep, | ||
30 | libgnunetgnsrecord_dep, | ||
31 | libgnunetidentity_dep], | ||
32 | include_directories: [incdir, configuration_inc]) | ||
33 | executable ('gnunet-service-namestore', | ||
34 | gnunetservicenamestore_src, | ||
35 | dependencies: [libgnunetnamestore_dep, | ||
36 | libgnunetutil_dep, | ||
37 | libgnunetnamecache_dep, | ||
38 | libgnunetgnsrecord_dep, | ||
39 | libgnunetidentity_dep, | ||
40 | libgnunetstatistics_dep], | ||
41 | include_directories: [incdir, configuration_inc]) | ||
42 | else | ||
43 | foreach p : libgnunetnamestore_src + libgnunetpluginnamestore_sqlite_src + gnunetservicenamestore_src + gnunetnamestore_src | ||
44 | gnunet_src += 'namestore/' + p | ||
45 | endforeach | ||
46 | endif | ||