X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fconversation%2FMakefile.am;h=cbffc3283dad47e8ffefb1b523d826840eba52be;hb=1eb0a7b0bcc365263e11ba03def10d51976ff32a;hp=a8c1e878857b067ed81cb0db6cd8776d73adc03d;hpb=5af3601273f0ed5e4d0f4e3e7039525a7b7ff4b3;p=oweals%2Fgnunet.git diff --git a/src/conversation/Makefile.am b/src/conversation/Makefile.am index a8c1e8788..cbffc3283 100644 --- a/src/conversation/Makefile.am +++ b/src/conversation/Makefile.am @@ -1,3 +1,4 @@ +# This Makefile.am is in the public domain SUBDIRS = . plugindir = $(libdir)/gnunet @@ -16,9 +17,9 @@ lib_LTLIBRARIES = \ libgnunetspeaker.la \ libgnunetconversation.la -pkgcfgdir= $(prefix)/share/gnunet/config.d/ +pkgcfgdir= $(pkgdatadir)/config.d/ -libexecdir= $(prefix)/lib/gnunet/libexec/ +libexecdir= $(pkglibdir)/libexec/ plugin_LTLIBRARIES = \ libgnunet_plugin_gnsrecord_conversation.la @@ -87,6 +88,12 @@ if BUILD_GST_HELPERS AUDIO_HELPER_RECD=gnunet-helper-audio-record AUDIO_HELPER_PLAY=gnunet-helper-audio-playback AUDIO_TESTS=$(check_PROGRAMS) +else +if BUILD_EXPERIMENTAL_HELPERS +AUDIO_HELPER_RECD=gnunet-helper-audio-record +AUDIO_HELPER_PLAY=gnunet-helper-audio-playback +AUDIO_TESTS=$(check_PROGRAMS) +endif endif endif @@ -94,8 +101,10 @@ libexec_PROGRAMS += \ $(AUDIO_HELPER_RECD) \ $(AUDIO_HELPER_PLAY) -AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; +AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; +if ENABLE_TEST_RUN TESTS = $(AUDIO_TESTS) +endif if BUILD_PULSE_HELPERS gnunet_helper_audio_record_SOURCES = \ @@ -129,7 +138,7 @@ gnunet_helper_audio_record_CFLAGS = \ $(GST_CFLAGS) gnunet_helper_audio_playback_SOURCES = \ - gnunet-helper-audio-playback-gst.c + gnunet-helper-audio-playback-gst.c gnunet_helper_audio_playback_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ $(GST_LIBS) \ @@ -137,7 +146,31 @@ gnunet_helper_audio_playback_LDADD = \ gnunet_helper_audio_playback_LDFLAGS = \ $(WINFLAGS) $(GST_LDFLAGS) gnunet_helper_audio_playback_CFLAGS = \ - $(GST_CFLAGS) + $(GST_CFLAGS) -DIS_SPEAKER +else +if BUILD_EXPERIMENTAL_HELPERS +gnunet_helper_audio_record_SOURCES = \ + gnunet_gst_test.c gnunet_gst.c +gnunet_helper_audio_record_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(GST_LIBS) \ + $(INTLLIBS) +gnunet_helper_audio_record_LDFLAGS = \ + $(WINFLAGS) $(GST_LDFLAGS) +gnunet_helper_audio_record_CFLAGS = \ + $(GST_CFLAGS) -DIS_MIC + +gnunet_helper_audio_playback_SOURCES = \ + gnunet_gst_test.c gnunet_gst.c +gnunet_helper_audio_playback_LDADD = \ + $(top_builddir)/src/util/libgnunetutil.la \ + $(GST_LIBS) \ + $(INTLLIBS) +gnunet_helper_audio_playback_LDFLAGS = \ + $(WINFLAGS) $(GST_LDFLAGS) +gnunet_helper_audio_playback_CFLAGS = \ + $(GST_CFLAGS) -DIS_SPEAKER +endif endif endif