From 5f9d33dedb13254ff400e5e0af114bfba3152a09 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 3 Nov 2019 15:45:56 +0100 Subject: Add zita-resampler to the project as a submodule and remove system dependency. --- .gitmodules | 3 +++ Makefile.am | 7 ++++++- configure.ac | 29 ----------------------------- src/Makefile.am | 6 ++++-- zita-resampler | 1 + 5 files changed, 14 insertions(+), 32 deletions(-) create mode 160000 zita-resampler diff --git a/.gitmodules b/.gitmodules index 756043e..4a7fcd2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -17,3 +17,6 @@ [submodule "pugixml"] path = pugixml url = http://git.drumgizmo.org/pugixml.git +[submodule "zita-resampler"] + path = zita-resampler + url = git://git.drumgizmo.org/zita-resampler.git diff --git a/Makefile.am b/Makefile.am index cce80d3..7014a8a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,4 +20,9 @@ EXTRA_DIST = \ \ pugixml/src/pugixml.hpp \ pugixml/src/pugiconfig.hpp \ - pugixml/src/pugixml.cpp + pugixml/src/pugixml.cpp \ +\ + zita-resampler/libs/resampler.cc \ + zita-resampler/libs/resampler-table.cc \ + zita-resampler/libs/zita-resampler/resampler-table.h \ + zita-resampler/libs/zita-resampler/resampler.h diff --git a/configure.ac b/configure.ac index 19adae5..ed8cc65 100644 --- a/configure.ac +++ b/configure.ac @@ -572,35 +572,6 @@ dnl Check for sndfile dnl ====================== PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.20) - -dnl ====================== -dnl Check for the zitaresampler library -dnl ====================== -AC_LANG_PUSH([C++]) -tmp_CXXFLAGS="$CXXFLAGS" -tmp_CPPFLAGS="$CPPFLAGS" -tmp_CFLAGS="$CFLAGS" -tmp_LDFLAGS="$LDFLAGS" -tmp_LIBS="$LIBS" -CXXFLAGS="" -CPPFLAGS="$ZITA_CPPFLAGS" -CFLAGS="" -LDFLAGS="$ZITA_LDFLAGS" -LIBS="-lzita-resampler -lpthread" -AC_LINK_IFELSE( - [AC_LANG_PROGRAM([#include ], - [Resampler r] ) ], , AC_MSG_ERROR([*** zita-resampler library not found!])) -ZITA_CPPFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS" -ZITA_LIBS="$LDFLAGS $LIBS" -CXXFLAGS="$tmp_CXXFLAGS" -CPPFLAGS="$tmp_CPPFLAGS" -CFLAGS="$tmp_CFLAGS" -LDFLAGS="$tmp_LDFLAGS" -LIBS="$tmp_LIBS" -AC_SUBST(ZITA_CPPFLAGS) -AC_SUBST(ZITA_LIBS) -AC_LANG_POP([C++]) - dnl ====================== dnl Check for the rt library dnl ====================== diff --git a/src/Makefile.am b/src/Makefile.am index 93ef5ed..3d4874c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,14 +3,16 @@ noinst_LTLIBRARIES = libdg.la libdg_la_CPPFLAGS = \ -I$(top_srcdir)/hugin -I$(top_srcdir)/pugixml/src \ $(SSEFLAGS) \ - $(ZITA_CPPFLAGS) $(SNDFILE_CFLAGS) $(PTHREAD_CFLAGS) + -I$(top_srcdir)/libs $(SNDFILE_CFLAGS) $(PTHREAD_CFLAGS) libdg_la_LIBADD = \ - $(ZITA_LIBS) $(SNDFILE_LIBS) $(PTHREAD_LIBS) + $(SNDFILE_LIBS) $(PTHREAD_LIBS) # If you add a file here, remember to add it to plugin/Makefile.mingw32.in nodist_libdg_la_SOURCES = \ $(top_srcdir)/pugixml/src/pugixml.cpp \ + $(top_srcdir)/zita-resampler/libs/resampler.cc \ + $(top_srcdir)/zita-resampler/libs/resampler-table.cc \ audiocachefile.cc \ audiocache.cc \ audiocacheeventhandler.cc \ diff --git a/zita-resampler b/zita-resampler new file mode 160000 index 0000000..76288ef --- /dev/null +++ b/zita-resampler @@ -0,0 +1 @@ +Subproject commit 76288efeead86fd5799d9771e50bf3222aaa8e71 -- cgit v1.2.3