-only run tests if we actually had pulse/opus
[oweals/gnunet.git] / src / conversation / Makefile.am
1 SUBDIRS = .
2
3 plugindir = $(libdir)/gnunet
4
5 AM_CPPFLAGS = \
6   $(GNUNET_CPPFLAGS) \
7   -I$(top_srcdir)/src/include \
8   -I$(top_srcdir)
9
10 lib_LTLIBRARIES = \
11  libgnunetmicrophone.la \
12  libgnunetspeaker.la \
13  libgnunetconversation.la
14
15 pkgcfgdir= $(prefix)/share/gnunet/config.d/
16
17 libexecdir= $(prefix)/lib/gnunet/libexec/
18
19 plugin_LTLIBRARIES = \
20   libgnunet_plugin_gnsrecord_conversation.la
21
22
23 libgnunet_plugin_gnsrecord_conversation_la_SOURCES = \
24   plugin_gnsrecord_conversation.c
25 libgnunet_plugin_gnsrecord_conversation_la_LIBADD = \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   $(LTLIBINTL)
28 libgnunet_plugin_gnsrecord_conversation_la_LDFLAGS = \
29  $(GN_PLUGIN_LDFLAGS)
30
31
32 libgnunetmicrophone_la_SOURCES = \
33   microphone.c
34 libgnunetmicrophone_la_LIBADD = \
35  $(top_builddir)/src/util/libgnunetutil.la
36 libgnunetmicrophone_la_LDFLAGS = \
37   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
38   -version-info 0:0:0
39
40 libgnunetspeaker_la_SOURCES = \
41   speaker.c
42 libgnunetspeaker_la_LIBADD = \
43  $(top_builddir)/src/util/libgnunetutil.la
44 libgnunetspeaker_la_LDFLAGS = \
45   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
46   -version-info 0:0:0
47
48
49 libgnunetconversation_la_SOURCES = \
50   conversation_api.c
51 libgnunetconversation_la_LIBADD = \
52   $(top_builddir)/src/gns/libgnunetgns.la \
53   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
54   $(top_builddir)/src/namestore/libgnunetnamestore.la \
55   $(top_builddir)/src/identity/libgnunetidentity.la \
56   $(top_builddir)/src/util/libgnunetutil.la
57
58 libgnunetconversation_la_LDFLAGS = \
59   $(GNUNET_LDFLAGS)  $(WINFLAGS) \
60   -version-info 0:0:0
61
62
63 bin_PROGRAMS = \
64  gnunet-conversation-test \
65  gnunet-conversation
66
67 libexec_PROGRAMS = \
68   gnunet-service-conversation
69
70 if HAVE_PULSE
71 if HAVE_OPUS
72 libexec_PROGRAMS += \
73   gnunet-helper-audio-record \
74   gnunet-helper-audio-playback
75 endif
76 endif
77
78
79 check_PROGRAMS = \
80  test_conversation_api
81
82 if HAVE_PULSE
83 if HAVE_OPUS
84 TESTS = $(check_PROGRAMS)
85 endif
86 endif
87
88 gnunet_helper_audio_record_SOURCES = \
89   gnunet-helper-audio-record.c
90 gnunet_helper_audio_record_LDADD = \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   -lpulse  -lopus\
93   $(INTLLIBS)
94 gnunet_helper_audio_record_LDFLAGS = \
95   $(GNUNET_LDFLAGS)  $(WINFLAGS)
96
97 gnunet_helper_audio_playback_SOURCES = \
98   gnunet-helper-audio-playback.c
99 gnunet_helper_audio_playback_LDADD = \
100   $(top_builddir)/src/util/libgnunetutil.la \
101   -lpulse -lopus\
102   $(INTLLIBS)
103 gnunet_helper_audio_playback_LDFLAGS = \
104   $(GNUNET_LDFLAGS)  $(WINFLAGS)
105
106 gnunet_service_conversation_SOURCES = \
107   gnunet-service-conversation.c
108 gnunet_service_conversation_LDADD = \
109   libgnunetconversation.la \
110   libgnunetspeaker.la \
111   libgnunetmicrophone.la \
112   $(top_builddir)/src/mesh/libgnunetmesh.la \
113   $(top_builddir)/src/util/libgnunetutil.la \
114   $(INTLLIBS)
115 gnunet_service_conversation_LDFLAGS = \
116   $(GNUNET_LDFLAGS)  $(WINFLAGS)
117
118 gnunet_conversation_SOURCES = \
119   gnunet-conversation.c
120 gnunet_conversation_LDADD = \
121   libgnunetmicrophone.la \
122   libgnunetspeaker.la \
123   libgnunetconversation.la \
124   $(top_builddir)/src/gns/libgnunetgns.la \
125   $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
126   $(top_builddir)/src/namestore/libgnunetnamestore.la \
127   $(top_builddir)/src/identity/libgnunetidentity.la \
128   $(top_builddir)/src/util/libgnunetutil.la \
129   $(INTLLIBS)
130 gnunet_conversation_LDFLAGS = \
131  $(GNUNET_LDFLAGS) $(WINFLAGS)
132
133 gnunet_conversation_test_SOURCES = \
134   gnunet-conversation-test.c
135 gnunet_conversation_test_LDADD = \
136   libgnunetmicrophone.la \
137   libgnunetspeaker.la \
138   $(top_builddir)/src/util/libgnunetutil.la  \
139   $(INTLLIBS)
140 gnunet_conversation_test_LDFLAGS = \
141  $(GNUNET_LDFLAGS) $(WINFLAGS)
142
143
144 test_conversation_api_SOURCES = \
145  test_conversation_api.c
146 test_conversation_api_LDADD = \
147   libgnunetconversation.la \
148   $(top_builddir)/src/util/libgnunetutil.la
149 test_conversation_api_LDFLAGS = \
150  $(GNUNET_LDFLAGS)  $(WINFLAGS) -export-dynamic
151
152  pkgcfg_DATA = conversation.conf