diff options
Diffstat (limited to 'src/identity-provider/Makefile.am')
-rw-r--r-- | src/identity-provider/Makefile.am | 69 |
1 files changed, 58 insertions, 11 deletions
diff --git a/src/identity-provider/Makefile.am b/src/identity-provider/Makefile.am index 7c2bb9646..3b072e59d 100644 --- a/src/identity-provider/Makefile.am +++ b/src/identity-provider/Makefile.am | |||
@@ -12,6 +12,15 @@ if USE_COVERAGE | |||
12 | XLIB = -lgcov | 12 | XLIB = -lgcov |
13 | endif | 13 | endif |
14 | 14 | ||
15 | if HAVE_SQLITE | ||
16 | SQLITE_PLUGIN = libgnunet_plugin_identity_provider_sqlite.la | ||
17 | endif | ||
18 | |||
19 | EXTRA_DIST = \ | ||
20 | test_idp_defaults.conf \ | ||
21 | test_idp.conf \ | ||
22 | $(check_SCRIPTS) | ||
23 | |||
15 | pkgcfgdir= $(pkgdatadir)/config.d/ | 24 | pkgcfgdir= $(pkgdatadir)/config.d/ |
16 | 25 | ||
17 | libexecdir= $(pkglibdir)/libexec/ | 26 | libexecdir= $(pkglibdir)/libexec/ |
@@ -22,26 +31,50 @@ pkgcfg_DATA = \ | |||
22 | lib_LTLIBRARIES = \ | 31 | lib_LTLIBRARIES = \ |
23 | libgnunetidentityprovider.la | 32 | libgnunetidentityprovider.la |
24 | plugin_LTLIBRARIES = \ | 33 | plugin_LTLIBRARIES = \ |
25 | libgnunet_plugin_rest_identity_provider.la | 34 | libgnunet_plugin_rest_identity_provider.la \ |
35 | libgnunet_plugin_gnsrecord_identity_provider.la \ | ||
36 | $(SQLITE_PLUGIN) | ||
26 | 37 | ||
27 | bin_PROGRAMS = \ | 38 | bin_PROGRAMS = \ |
28 | gnunet-identity-token | 39 | gnunet-idp |
29 | 40 | ||
30 | libexec_PROGRAMS = \ | 41 | libexec_PROGRAMS = \ |
31 | gnunet-service-identity-provider | 42 | gnunet-service-identity-provider |
32 | 43 | ||
44 | libgnunet_plugin_gnsrecord_identity_provider_la_SOURCES = \ | ||
45 | plugin_gnsrecord_identity_provider.c | ||
46 | libgnunet_plugin_gnsrecord_identity_provider_la_LIBADD = \ | ||
47 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
48 | $(LTLIBINTL) | ||
49 | libgnunet_plugin_gnsrecord_identity_provider_la_LDFLAGS = \ | ||
50 | $(GN_PLUGIN_LDFLAGS) | ||
51 | |||
52 | libgnunet_plugin_identity_provider_sqlite_la_SOURCES = \ | ||
53 | plugin_identity_provider_sqlite.c | ||
54 | libgnunet_plugin_identity_provider_sqlite_la_LIBADD = \ | ||
55 | libgnunetidentityprovider.la \ | ||
56 | $(top_builddir)/src/sq/libgnunetsq.la \ | ||
57 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
58 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \ | ||
59 | $(LTLIBINTL) | ||
60 | libgnunet_plugin_identity_provider_sqlite_la_LDFLAGS = \ | ||
61 | $(GN_PLUGIN_LDFLAGS) | ||
62 | |||
63 | |||
64 | |||
33 | gnunet_service_identity_provider_SOURCES = \ | 65 | gnunet_service_identity_provider_SOURCES = \ |
34 | gnunet-service-identity-provider.c \ | 66 | gnunet-service-identity-provider.c |
35 | identity_token.c | ||
36 | gnunet_service_identity_provider_LDADD = \ | 67 | gnunet_service_identity_provider_LDADD = \ |
37 | $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ | 68 | $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ |
38 | $(top_builddir)/src/util/libgnunetutil.la \ | 69 | $(top_builddir)/src/util/libgnunetutil.la \ |
39 | $(top_builddir)/src/namestore/libgnunetnamestore.la \ | 70 | $(top_builddir)/src/namestore/libgnunetnamestore.la \ |
40 | $(top_builddir)/src/identity/libgnunetidentity.la \ | 71 | $(top_builddir)/src/identity/libgnunetidentity.la \ |
41 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | 72 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ |
73 | $(top_builddir)/src/credential/libgnunetcredential.la \ | ||
74 | $(top_builddir)/src/identity-attribute/libgnunetidentityattribute.la \ | ||
75 | libgnunetidentityprovider.la \ | ||
42 | $(top_builddir)/src/gns/libgnunetgns.la \ | 76 | $(top_builddir)/src/gns/libgnunetgns.la \ |
43 | $(GN_LIBINTL) \ | 77 | $(GN_LIBINTL) |
44 | -ljansson | ||
45 | 78 | ||
46 | libgnunetidentityprovider_la_SOURCES = \ | 79 | libgnunetidentityprovider_la_SOURCES = \ |
47 | identity_provider_api.c \ | 80 | identity_provider_api.c \ |
@@ -60,16 +93,30 @@ libgnunet_plugin_rest_identity_provider_la_LIBADD = \ | |||
60 | libgnunetidentityprovider.la \ | 93 | libgnunetidentityprovider.la \ |
61 | $(top_builddir)/src/rest/libgnunetrest.la \ | 94 | $(top_builddir)/src/rest/libgnunetrest.la \ |
62 | $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \ | 95 | $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \ |
96 | $(top_builddir)/src/identity-attribute/libgnunetidentityattribute.la \ | ||
63 | $(top_builddir)/src/namestore/libgnunetnamestore.la \ | 97 | $(top_builddir)/src/namestore/libgnunetnamestore.la \ |
64 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ | 98 | $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \ |
65 | $(LTLIBINTL) -ljansson -lmicrohttpd | 99 | $(LTLIBINTL) -ljansson -lmicrohttpd |
66 | libgnunet_plugin_rest_identity_provider_la_LDFLAGS = \ | 100 | libgnunet_plugin_rest_identity_provider_la_LDFLAGS = \ |
67 | $(GN_PLUGIN_LDFLAGS) | 101 | $(GN_PLUGIN_LDFLAGS) |
68 | 102 | ||
69 | 103 | gnunet_idp_SOURCES = \ | |
70 | gnunet_identity_token_SOURCES = \ | 104 | gnunet-idp.c |
71 | gnunet-identity-token.c | 105 | gnunet_idp_LDADD = \ |
72 | gnunet_identity_token_LDADD = \ | ||
73 | $(top_builddir)/src/util/libgnunetutil.la \ | 106 | $(top_builddir)/src/util/libgnunetutil.la \ |
74 | -ljansson -lmicrohttpd \ | 107 | $(top_builddir)/src/namestore/libgnunetnamestore.la \ |
108 | libgnunetidentityprovider.la \ | ||
109 | $(top_builddir)/src/identity/libgnunetidentity.la \ | ||
110 | $(top_builddir)/src/identity-attribute/libgnunetidentityattribute.la \ | ||
75 | $(GN_LIBINTL) | 111 | $(GN_LIBINTL) |
112 | |||
113 | check_SCRIPTS = \ | ||
114 | test_idp_attribute.sh \ | ||
115 | test_idp_issue.sh \ | ||
116 | test_idp_consume.sh \ | ||
117 | test_idp_revoke.sh | ||
118 | |||
119 | if ENABLE_TEST_RUN | ||
120 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
121 | TESTS = $(check_SCRIPTS) | ||
122 | endif | ||