diff options
Diffstat (limited to 'src/service/peerstore')
-rw-r--r-- | src/service/peerstore/Makefile.am | 52 | ||||
-rw-r--r-- | src/service/peerstore/meson.build | 10 |
2 files changed, 2 insertions, 60 deletions
diff --git a/src/service/peerstore/Makefile.am b/src/service/peerstore/Makefile.am index 28948b7db..de301bbcf 100644 --- a/src/service/peerstore/Makefile.am +++ b/src/service/peerstore/Makefile.am | |||
@@ -51,63 +51,15 @@ libgnunetpeerstore_la_LDFLAGS = \ | |||
51 | $(GN_LIBINTL) \ | 51 | $(GN_LIBINTL) \ |
52 | $(GN_LIB_LDFLAGS) | 52 | $(GN_LIB_LDFLAGS) |
53 | 53 | ||
54 | if HAVE_EXPERIMENTAL | ||
55 | FLAT_PLUGIN = libgnunet_plugin_peerstore_flat.la | ||
56 | FLAT_TESTS = test_plugin_peerstore_flat | ||
57 | libgnunet_plugin_peerstore_flat_la_SOURCES = \ | ||
58 | plugin_peerstore_flat.c | ||
59 | libgnunet_plugin_peerstore_flat_la_LIBADD = \ | ||
60 | libgnunetpeerstore.la \ | ||
61 | $(top_builddir)/src/lib/util/libgnunetutil.la $(XLIBS) \ | ||
62 | $(LTLIBINTL) | ||
63 | libgnunet_plugin_peerstore_flat_la_LDFLAGS = \ | ||
64 | $(GN_PLUGIN_LDFLAGS) | ||
65 | endif | ||
66 | |||
67 | if HAVE_SQLITE | ||
68 | SQLITE_PLUGIN = libgnunet_plugin_peerstore_sqlite.la | ||
69 | SQLITE_TESTS = test_plugin_peerstore_sqlite | ||
70 | libgnunet_plugin_peerstore_sqlite_la_SOURCES = \ | ||
71 | plugin_peerstore_sqlite.c | ||
72 | libgnunet_plugin_peerstore_sqlite_la_LIBADD = \ | ||
73 | libgnunetpeerstore.la \ | ||
74 | $(top_builddir)/src/lib/sq/libgnunetsq.la \ | ||
75 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
76 | $(XLIBS) -lsqlite3 \ | ||
77 | $(LTLIBINTL) | ||
78 | libgnunet_plugin_peerstore_sqlite_la_LDFLAGS = \ | ||
79 | $(GN_PLUGIN_LDFLAGS) | ||
80 | endif | ||
81 | |||
82 | plugin_LTLIBRARIES = \ | ||
83 | $(SQLITE_PLUGIN) \ | ||
84 | $(FLAT_PLUGIN) | ||
85 | |||
86 | test_plugin_peerstore_sqlite_SOURCES = \ | ||
87 | test_plugin_peerstore.c | ||
88 | test_plugin_peerstore_sqlite_LDADD = \ | ||
89 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
90 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
91 | |||
92 | test_plugin_peerstore_flat_SOURCES = \ | ||
93 | test_plugin_peerstore.c | ||
94 | test_plugin_peerstore_flat_LDADD = \ | ||
95 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
96 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
97 | |||
98 | check_PROGRAMS = \ | 54 | check_PROGRAMS = \ |
99 | test_peerstore_api_store \ | 55 | test_peerstore_api_store \ |
100 | test_peerstore_api_iterate \ | 56 | test_peerstore_api_iterate \ |
101 | test_peerstore_api_watch \ | 57 | test_peerstore_api_watch \ |
102 | test_peerstore_api_sync \ | 58 | test_peerstore_api_sync \ |
103 | perf_peerstore_store \ | 59 | perf_peerstore_store |
104 | $(SQLITE_TESTS) \ | ||
105 | $(FLAT_TESTS) | ||
106 | 60 | ||
107 | EXTRA_DIST = \ | 61 | EXTRA_DIST = \ |
108 | test_peerstore_api_data.conf \ | 62 | test_peerstore_api_data.conf |
109 | test_plugin_peerstore_flat.conf \ | ||
110 | test_plugin_peerstore_sqlite.conf | ||
111 | 63 | ||
112 | if ENABLE_TEST_RUN | 64 | if ENABLE_TEST_RUN |
113 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | 65 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; |
diff --git a/src/service/peerstore/meson.build b/src/service/peerstore/meson.build index 7d8710c4b..db70b0b9e 100644 --- a/src/service/peerstore/meson.build +++ b/src/service/peerstore/meson.build | |||
@@ -28,16 +28,6 @@ pkg.generate(libgnunetpeerstore, url: 'https://www.gnunet.org', | |||
28 | description : 'Provides API for accessing the peerstore service') | 28 | description : 'Provides API for accessing the peerstore service') |
29 | libgnunetpeerstore_dep = declare_dependency(link_with : libgnunetpeerstore) | 29 | libgnunetpeerstore_dep = declare_dependency(link_with : libgnunetpeerstore) |
30 | 30 | ||
31 | shared_module('gnunet_plugin_peerstore_sqlite', | ||
32 | ['plugin_peerstore_sqlite.c'], | ||
33 | dependencies: [libgnunetutil_dep, | ||
34 | libgnunetpeerstore_dep, | ||
35 | libgnunetsq_dep, | ||
36 | sqlite_dep], | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | install: true, | ||
39 | install_dir: get_option('libdir')/'gnunet') | ||
40 | |||
41 | executable ('gnunet-service-peerstore', | 31 | executable ('gnunet-service-peerstore', |
42 | gnunetservicepeerstore_src, | 32 | gnunetservicepeerstore_src, |
43 | dependencies: [libgnunetpeerstore_dep, | 33 | dependencies: [libgnunetpeerstore_dep, |