diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-08-13 08:51:19 +0200 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-08-13 08:51:19 +0200 |
commit | 6371b64774428e83ff83ada88bda354356718aca (patch) | |
tree | a2a68aafcf1f6faa8a84648baaf0731da1136346 /src | |
parent | 6656d6c3e7111075572c042ae714c9710f30273b (diff) |
fix build; move rest plugins to separate folder
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 8 | ||||
-rw-r--r-- | src/gns/Makefile.am | 19 | ||||
-rw-r--r-- | src/identity/Makefile.am | 19 | ||||
-rw-r--r-- | src/jsonapi/Makefile.am | 18 | ||||
-rw-r--r-- | src/jsonapi/plugin_rest_reclaim.c (renamed from src/reclaim/plugin_rest_reclaim.c) | 0 | ||||
-rw-r--r-- | src/namestore/Makefile.am | 23 | ||||
-rw-r--r-- | src/peerinfo/Makefile.am | 20 | ||||
-rw-r--r-- | src/reclaim/Makefile.am | 33 | ||||
-rw-r--r-- | src/rest-plugins/Makefile.am | 102 | ||||
-rw-r--r-- | src/rest-plugins/oidc_helper.c (renamed from src/reclaim/oidc_helper.c) | 0 | ||||
-rw-r--r-- | src/rest-plugins/oidc_helper.h (renamed from src/reclaim/oidc_helper.h) | 0 | ||||
-rw-r--r-- | src/rest-plugins/plugin_rest_copying.c (renamed from src/rest/plugin_rest_copying.c) | 0 | ||||
-rw-r--r-- | src/rest-plugins/plugin_rest_gns.c (renamed from src/gns/plugin_rest_gns.c) | 0 | ||||
-rw-r--r-- | src/rest-plugins/plugin_rest_identity.c (renamed from src/identity/plugin_rest_identity.c) | 0 | ||||
-rw-r--r-- | src/rest-plugins/plugin_rest_namestore.c (renamed from src/namestore/plugin_rest_namestore.c) | 0 | ||||
-rw-r--r-- | src/rest-plugins/plugin_rest_openid_connect.c (renamed from src/reclaim/plugin_rest_openid_connect.c) | 0 | ||||
-rw-r--r-- | src/rest-plugins/plugin_rest_peerinfo.c (renamed from src/peerinfo/plugin_rest_peerinfo.c) | 0 | ||||
-rw-r--r-- | src/rest/Makefile.am | 13 |
18 files changed, 123 insertions, 132 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 53d157da3..43b1004eb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -65,9 +65,8 @@ if HAVE_POSTGRESQL endif if HAVE_MHD - REST_DIR = rest if HAVE_JSON - JSONAPI_DIR = jsonapi + REST_DIR = rest jsonapi rest-plugins endif endif @@ -82,9 +81,6 @@ SUBDIRS = \ include $(INTLEMU_SUBDIRS) \ util \ gnsrecord \ - $(JSON_DIR) \ - $(REST_DIR) \ - $(JSONAPI_DIR) \ hello \ block \ statistics \ @@ -130,6 +126,8 @@ SUBDIRS = \ exit \ pt \ secretsharing \ + $(JSON_DIR) \ + $(REST_DIR) \ integration-tests \ $(EXP_DIR) diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am index 2c7bb8ebb..2659f7e6a 100644 --- a/src/gns/Makefile.am +++ b/src/gns/Makefile.am @@ -92,12 +92,6 @@ plugin_LTLIBRARIES = \ libgnunet_plugin_gnsrecord_gns.la -if HAVE_MHD -if HAVE_JSON -plugin_LTLIBRARIES += libgnunet_plugin_rest_gns.la -endif -endif - libgnunet_plugin_gnsrecord_gns_la_SOURCES = \ plugin_gnsrecord_gns.c libgnunet_plugin_gnsrecord_gns_la_LIBADD = \ @@ -238,19 +232,6 @@ libgnunet_plugin_block_gns_la_LIBADD = \ libgnunet_plugin_block_gns_la_LDFLAGS = \ $(GN_PLUGIN_LDFLAGS) -libgnunet_plugin_rest_gns_la_SOURCES = \ - plugin_rest_gns.c -libgnunet_plugin_rest_gns_la_LIBADD = \ - libgnunetgns.la \ - $(top_builddir)/src/rest/libgnunetrest.la \ - $(top_builddir)/src/identity/libgnunetidentity.la \ - $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \ - $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \ - $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ - $(LTLIBINTL) -ljansson -lmicrohttpd -libgnunet_plugin_rest_gns_la_LDFLAGS = \ - $(GN_PLUGIN_LDFLAGS) - check_SCRIPTS = \ test_gns_lookup.sh \ diff --git a/src/identity/Makefile.am b/src/identity/Makefile.am index e7104f0c3..1f21fc65d 100644 --- a/src/identity/Makefile.am +++ b/src/identity/Makefile.am @@ -39,14 +39,6 @@ bin_PROGRAMS = \ libexec_PROGRAMS = \ gnunet-service-identity -if HAVE_MHD -if HAVE_JSON -plugin_LTLIBRARIES = \ - libgnunet_plugin_rest_identity.la -endif -endif - - gnunet_service_identity_SOURCES = \ gnunet-service-identity.c gnunet_service_identity_LDADD = \ @@ -55,17 +47,6 @@ gnunet_service_identity_LDADD = \ $(GN_LIBINTL) -libgnunet_plugin_rest_identity_la_SOURCES = \ - plugin_rest_identity.c -libgnunet_plugin_rest_identity_la_LIBADD = \ - libgnunetidentity.la \ - $(top_builddir)/src/rest/libgnunetrest.la \ - $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ - $(LTLIBINTL) -ljansson -lmicrohttpd -libgnunet_plugin_rest_identity_la_LDFLAGS = \ - $(GN_PLUGIN_LDFLAGS) - - gnunet_identity_SOURCES = \ gnunet-identity.c gnunet_identity_LDADD = \ diff --git a/src/jsonapi/Makefile.am b/src/jsonapi/Makefile.am index 054d3c550..0c6d60b10 100644 --- a/src/jsonapi/Makefile.am +++ b/src/jsonapi/Makefile.am @@ -8,7 +8,23 @@ endif lib_LTLIBRARIES = \ libgnunetjsonapi.la \ - libgnunetjsonapiutils.la + libgnunetjsonapiutils.la \ + libgnunet_plugin_rest_reclaim.la + +libgnunet_plugin_rest_reclaim_la_SOURCES = \ + plugin_rest_reclaim.c +libgnunet_plugin_rest_reclaim_la_LIBADD = \ + $(top_builddir)/src/identity/libgnunetidentity.la \ + $(top_builddir)/src/reclaim/libgnunetreclaim.la \ + $(top_builddir)/src/rest/libgnunetrest.la \ + libgnunetjsonapi.la \ + $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ + $(top_builddir)/src/namestore/libgnunetnamestore.la \ + $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ + $(LTLIBINTL) -ljansson -lmicrohttpd +libgnunet_plugin_rest_reclaim_la_LDFLAGS = \ + i$(GN_PLUGIN_LDFLAGS) + libgnunetjsonapiutils_la_LDFLAGS = \ -version-info 0:0:0 \ diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/jsonapi/plugin_rest_reclaim.c index 38ffc4ddb..38ffc4ddb 100644 --- a/src/reclaim/plugin_rest_reclaim.c +++ b/src/jsonapi/plugin_rest_reclaim.c diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am index 7f44c2a71..a349921d7 100644 --- a/src/namestore/Makefile.am +++ b/src/namestore/Makefile.am @@ -97,12 +97,6 @@ check_PROGRAMS = \ $(FLAT_TESTS) endif -if HAVE_MHD -if HAVE_JSON -REST_PLUGIN=libgnunet_plugin_rest_namestore.la -endif -endif - if ENABLE_TEST_RUN AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; TESTS = \ @@ -186,8 +180,7 @@ gnunet_service_namestore_LDADD = \ plugin_LTLIBRARIES = \ $(SQLITE_PLUGIN) \ $(POSTGRES_PLUGIN) \ - $(FLAT_PLUGIN) \ - $(REST_PLUGIN) + $(FLAT_PLUGIN) @@ -224,20 +217,6 @@ libgnunet_plugin_namestore_postgres_la_LIBADD = \ libgnunet_plugin_namestore_postgres_la_LDFLAGS = \ $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS) -libgnunet_plugin_rest_namestore_la_SOURCES = \ - plugin_rest_namestore.c -libgnunet_plugin_rest_namestore_la_LIBADD = \ - libgnunetnamestore.la \ - $(top_builddir)/src/rest/libgnunetrest.la \ - $(top_builddir)/src/identity/libgnunetidentity.la \ - $(top_builddir)/src/json/libgnunetjson.la \ - $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ - $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ - $(LTLIBINTL) -ljansson -lmicrohttpd -libgnunet_plugin_rest_namestore_la_LDFLAGS = \ - $(GN_PLUGIN_LDFLAGS) - - test_namestore_api_store_flat_SOURCES = \ test_namestore_api_store.c test_namestore_api_store_flat_LDADD = \ diff --git a/src/peerinfo/Makefile.am b/src/peerinfo/Makefile.am index 5e96250b1..3f68becb5 100644 --- a/src/peerinfo/Makefile.am +++ b/src/peerinfo/Makefile.am @@ -27,8 +27,6 @@ libgnunetpeerinfo_la_SOURCES = \ libgnunetpeerinfo_la_LIBADD = \ $(top_builddir)/src/hello/libgnunethello.la \ $(top_builddir)/src/util/libgnunetutil.la \ - $(top_builddir)/src/json/libgnunetjson.la \ - $(top_builddir)/src/transport/libgnunettransport.la \ $(XLIB) \ $(LTLIBINTL) libgnunetpeerinfo_la_LDFLAGS = \ @@ -39,13 +37,6 @@ libgnunetpeerinfo_la_LDFLAGS = \ libexec_PROGRAMS = \ gnunet-service-peerinfo -if HAVE_MHD -if HAVE_JSON -plugin_LTLIBRARIES = \ - libgnunet_plugin_rest_peerinfo.la -endif -endif - gnunet_service_peerinfo_SOURCES = \ gnunet-service-peerinfo.c gnunet_service_peerinfo_LDADD = \ @@ -53,17 +44,6 @@ gnunet_service_peerinfo_LDADD = \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ $(top_builddir)/src/util/libgnunetutil.la - -libgnunet_plugin_rest_peerinfo_la_SOURCES = \ - plugin_rest_peerinfo.c -libgnunet_plugin_rest_peerinfo_la_LIBADD = \ - libgnunetpeerinfo.la \ - $(top_builddir)/src/rest/libgnunetrest.la \ - $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ - $(LTLIBINTL) -ljansson -lmicrohttpd -libgnunet_plugin_rest_peerinfo_la_LDFLAGS = \ - $(GN_PLUGIN_LDFLAGS) - if HAVE_BENCHMARKS PEERINFO_BENCHMARKS = \ perf_peerinfo_api diff --git a/src/reclaim/Makefile.am b/src/reclaim/Makefile.am index 2ee43d21a..093442181 100644 --- a/src/reclaim/Makefile.am +++ b/src/reclaim/Makefile.am @@ -31,8 +31,6 @@ pkgcfg_DATA = \ lib_LTLIBRARIES = \ libgnunetreclaim.la plugin_LTLIBRARIES = \ - libgnunet_plugin_rest_reclaim.la \ - libgnunet_plugin_rest_openid_connect.la \ libgnunet_plugin_gnsrecord_reclaim.la \ $(SQLITE_PLUGIN) @@ -88,37 +86,6 @@ libgnunetreclaim_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) $(WINFLAGS) \ -version-info 0:0:0 -libgnunet_plugin_rest_reclaim_la_SOURCES = \ - plugin_rest_reclaim.c -libgnunet_plugin_rest_reclaim_la_LIBADD = \ - $(top_builddir)/src/identity/libgnunetidentity.la \ - libgnunetreclaim.la \ - $(top_builddir)/src/rest/libgnunetrest.la \ - $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \ - $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ - $(top_builddir)/src/namestore/libgnunetnamestore.la \ - $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ - $(LTLIBINTL) -ljansson -lmicrohttpd -libgnunet_plugin_rest_reclaim_la_LDFLAGS = \ - $(GN_PLUGIN_LDFLAGS) - -libgnunet_plugin_rest_openid_connect_la_SOURCES = \ - plugin_rest_openid_connect.c \ - oidc_helper.c -libgnunet_plugin_rest_openid_connect_la_LIBADD = \ - $(top_builddir)/src/identity/libgnunetidentity.la \ - libgnunetreclaim.la \ - $(top_builddir)/src/rest/libgnunetrest.la \ - $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \ - $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ - $(top_builddir)/src/namestore/libgnunetnamestore.la \ - $(top_builddir)/src/gns/libgnunetgns.la \ - $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ - $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ - $(LTLIBINTL) -ljansson -lmicrohttpd -libgnunet_plugin_rest_openid_connect_la_LDFLAGS = \ - $(GN_PLUGIN_LDFLAGS) - gnunet_reclaim_SOURCES = \ gnunet-reclaim.c gnunet_reclaim_LDADD = \ diff --git a/src/rest-plugins/Makefile.am b/src/rest-plugins/Makefile.am new file mode 100644 index 000000000..ae74dc78a --- /dev/null +++ b/src/rest-plugins/Makefile.am @@ -0,0 +1,102 @@ +# This Makefile.am is in the public domain +AM_CPPFLAGS = -I$(top_srcdir)/src/include + +plugindir = $(libdir)/gnunet + +pkgcfgdir= $(pkgdatadir)/config.d/ + +libexecdir= $(pkglibdir)/libexec/ + + +if MINGW + WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols +endif + +if USE_COVERAGE + AM_CFLAGS = --coverage -O0 + XLIBS = -lgcov +endif + +plugin_LTLIBRARIES = \ + libgnunet_plugin_rest_copying.la \ + libgnunet_plugin_rest_peerinfo.la \ + libgnunet_plugin_rest_identity.la \ + libgnunet_plugin_rest_namestore.la \ + libgnunet_plugin_rest_gns.la \ + libgnunet_plugin_rest_openid_connect.la + + +libgnunet_plugin_rest_copying_la_SOURCES = \ + plugin_rest_copying.c +libgnunet_plugin_rest_copying_la_LIBADD = \ + $(top_builddir)/src/rest/libgnunetrest.la \ + $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ + $(LTLIBINTL) -lmicrohttpd +libgnunet_plugin_rest_copying_la_LDFLAGS = \ + $(GN_PLUGIN_LDFLAGS) + +libgnunet_plugin_rest_peerinfo_la_SOURCES = \ + plugin_rest_peerinfo.c +libgnunet_plugin_rest_peerinfo_la_LIBADD = \ + $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ + $(top_builddir)/src/rest/libgnunetrest.la \ + $(top_builddir)/src/json/libgnunetjson.la \ + $(top_builddir)/src/transport/libgnunettransport.la \ + $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ + $(LTLIBINTL) -ljansson -lmicrohttpd +libgnunet_plugin_rest_peerinfo_la_LDFLAGS = \ + $(GN_PLUGIN_LDFLAGS) + +libgnunet_plugin_rest_identity_la_SOURCES = \ + plugin_rest_identity.c +libgnunet_plugin_rest_identity_la_LIBADD = \ + $(top_builddir)/src/identity/libgnunetidentity.la \ + $(top_builddir)/src/rest/libgnunetrest.la \ + $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ + $(LTLIBINTL) -ljansson -lmicrohttpd +libgnunet_plugin_rest_identity_la_LDFLAGS = \ + $(GN_PLUGIN_LDFLAGS) + + + +libgnunet_plugin_rest_namestore_la_SOURCES = \ + plugin_rest_namestore.c +libgnunet_plugin_rest_namestore_la_LIBADD = \ + $(top_builddir)/src/namestore/libgnunetnamestore.la \ + $(top_builddir)/src/rest/libgnunetrest.la \ + $(top_builddir)/src/identity/libgnunetidentity.la \ + $(top_builddir)/src/json/libgnunetjson.la \ + $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ + $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ + $(LTLIBINTL) -ljansson -lmicrohttpd +libgnunet_plugin_rest_namestore_la_LDFLAGS = \ + $(GN_PLUGIN_LDFLAGS) + +libgnunet_plugin_rest_gns_la_SOURCES = \ + plugin_rest_gns.c +libgnunet_plugin_rest_gns_la_LIBADD = \ + $(top_builddir)/src/gns/libgnunetgns.la \ + $(top_builddir)/src/rest/libgnunetrest.la \ + $(top_builddir)/src/identity/libgnunetidentity.la \ + $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ + $(LTLIBINTL) -ljansson -lmicrohttpd +libgnunet_plugin_rest_gns_la_LDFLAGS = \ + $(GN_PLUGIN_LDFLAGS) + +libgnunet_plugin_rest_openid_connect_la_SOURCES = \ + plugin_rest_openid_connect.c \ + oidc_helper.c +libgnunet_plugin_rest_openid_connect_la_LIBADD = \ + $(top_builddir)/src/identity/libgnunetidentity.la \ + $(top_builddir)/src/reclaim/libgnunetreclaim.la \ + $(top_builddir)/src/rest/libgnunetrest.la \ + $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \ + $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ + $(top_builddir)/src/namestore/libgnunetnamestore.la \ +$(top_builddir)/src/gns/libgnunetgns.la \ + $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ + $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ + $(LTLIBINTL) -ljansson -lmicrohttpd +libgnunet_plugin_rest_openid_connect_la_LDFLAGS = \ + $(GN_PLUGIN_LDFLAGS) + diff --git a/src/reclaim/oidc_helper.c b/src/rest-plugins/oidc_helper.c index 1e9e64fec..1e9e64fec 100644 --- a/src/reclaim/oidc_helper.c +++ b/src/rest-plugins/oidc_helper.c diff --git a/src/reclaim/oidc_helper.h b/src/rest-plugins/oidc_helper.h index 7a0f45bf9..7a0f45bf9 100644 --- a/src/reclaim/oidc_helper.h +++ b/src/rest-plugins/oidc_helper.h diff --git a/src/rest/plugin_rest_copying.c b/src/rest-plugins/plugin_rest_copying.c index 668dc5d38..668dc5d38 100644 --- a/src/rest/plugin_rest_copying.c +++ b/src/rest-plugins/plugin_rest_copying.c diff --git a/src/gns/plugin_rest_gns.c b/src/rest-plugins/plugin_rest_gns.c index 0bf4198fc..0bf4198fc 100644 --- a/src/gns/plugin_rest_gns.c +++ b/src/rest-plugins/plugin_rest_gns.c diff --git a/src/identity/plugin_rest_identity.c b/src/rest-plugins/plugin_rest_identity.c index 9f1765a63..9f1765a63 100644 --- a/src/identity/plugin_rest_identity.c +++ b/src/rest-plugins/plugin_rest_identity.c diff --git a/src/namestore/plugin_rest_namestore.c b/src/rest-plugins/plugin_rest_namestore.c index 1d72d13ff..1d72d13ff 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/rest-plugins/plugin_rest_namestore.c diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/rest-plugins/plugin_rest_openid_connect.c index 24673c692..24673c692 100644 --- a/src/reclaim/plugin_rest_openid_connect.c +++ b/src/rest-plugins/plugin_rest_openid_connect.c diff --git a/src/peerinfo/plugin_rest_peerinfo.c b/src/rest-plugins/plugin_rest_peerinfo.c index 29b40088d..29b40088d 100644 --- a/src/peerinfo/plugin_rest_peerinfo.c +++ b/src/rest-plugins/plugin_rest_peerinfo.c diff --git a/src/rest/Makefile.am b/src/rest/Makefile.am index f87335152..6c23ad2a6 100644 --- a/src/rest/Makefile.am +++ b/src/rest/Makefile.am @@ -10,7 +10,6 @@ libexecdir= $(pkglibdir)/libexec/ pkgcfg_DATA = \ rest.conf - if MINGW WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols endif @@ -29,18 +28,6 @@ libexec_PROGRAMS = \ EXTRA_DIST = \ rest.conf -plugin_LTLIBRARIES = libgnunet_plugin_rest_copying.la - -libgnunet_plugin_rest_copying_la_SOURCES = \ - plugin_rest_copying.c -libgnunet_plugin_rest_copying_la_LIBADD = \ - libgnunetrest.la \ - $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ - $(LTLIBINTL) -lmicrohttpd -libgnunet_plugin_rest_copying_la_LDFLAGS = \ - $(GN_PLUGIN_LDFLAGS) - - gnunet_rest_server_SOURCES = \ gnunet-rest-server.c |