aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-09-22 12:46:19 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2023-09-22 12:46:19 +0200
commitae8072c64e79ab54103e6e5267731b7b238586fd (patch)
tree5d8769e58a40e6de7f58c0a1b72969cdc3fb2a91 /src/datastore
parent9c8d9a406f119698aa5a7ba7df8ba396828550f7 (diff)
downloadgnunet-ae8072c64e79ab54103e6e5267731b7b238586fd.tar.gz
gnunet-ae8072c64e79ab54103e6e5267731b7b238586fd.zip
BUILD: Towards mode complete build
Diffstat (limited to 'src/datastore')
-rw-r--r--src/datastore/meson.build52
1 files changed, 36 insertions, 16 deletions
diff --git a/src/datastore/meson.build b/src/datastore/meson.build
index 286965b14..531d8fbdb 100644
--- a/src/datastore/meson.build
+++ b/src/datastore/meson.build
@@ -8,23 +8,43 @@ configure_file(input : 'datastore.conf.in',
8 install: true, 8 install: true,
9 install_dir: pkgcfgdir) 9 install_dir: pkgcfgdir)
10 10
11if get_option('monolith') == false 11install_data ('datastore-0001.sql',
12 libgnunetdatastore = library('gnunetdatastore', 12 'datastore-drop.sql',
13 libgnunetdatastore_src, 13 install_dir: get_option('datadir')/'gnunet'/'sql')
14 dependencies: [libgnunetutil_dep, 14
15 libgnunetstatistics_dep, 15if get_option('monolith')
16 libgnunetdatacache_dep],
17 include_directories: [incdir, configuration_inc])
18 libgnunetdatastore_dep = declare_dependency(link_with : libgnunetdatastore)
19 executable ('gnunet-service-datastore',
20 gnunetservicedatastore_src,
21 dependencies: [libgnunetdatastore_dep,
22 libgnunetutil_dep,
23 libgnunetstatistics_dep,
24 libgnunetdatacache_dep],
25 include_directories: [incdir, configuration_inc])
26else
27 foreach p : libgnunetdatastore_src + gnunetservicedatastore_src 16 foreach p : libgnunetdatastore_src + gnunetservicedatastore_src
28 gnunet_src += 'datastore/' + p 17 gnunet_src += 'datastore/' + p
29 endforeach 18 endforeach
30endif 19endif
20libgnunetdatastore = library('gnunetdatastore',
21 libgnunetdatastore_src,
22 soversion: '1.0.0',
23 dependencies: [libgnunetutil_dep,
24 libgnunetstatistics_dep,
25 libgnunetdatacache_dep],
26 include_directories: [incdir, configuration_inc])
27libgnunetdatastore_dep = declare_dependency(link_with : libgnunetdatastore)
28pkg.generate(libgnunetdatastore, url: 'https://www.gnunet.org',
29 description : 'Management API for the datastore for persistent storage to disk')
30executable ('gnunet-datastore',
31 ['gnunet-datastore.c'],
32 dependencies: [libgnunetdatastore_dep,
33 libgnunetutil_dep,
34 libgnunetstatistics_dep,
35 libgnunetdatacache_dep],
36 include_directories: [incdir, configuration_inc])
37executable ('gnunet-service-datastore',
38 gnunetservicedatastore_src,
39 dependencies: [libgnunetdatastore_dep,
40 libgnunetutil_dep,
41 libgnunetstatistics_dep,
42 libgnunetdatacache_dep],
43 include_directories: [incdir, configuration_inc])
44shared_module('gnunet_plugin_datastore_sqlite',
45 ['plugin_datastore_sqlite.c'],
46 dependencies: [libgnunetutil_dep,
47 libgnunetdatastore_dep,
48 sqlite_dep,
49 libgnunetsq_dep],
50 include_directories: [incdir, configuration_inc])