[pulseaudio-commits] 3 commits - configure.ac src/Makefile.am src/modules src/utils
Arun Raghavan
arun at kemper.freedesktop.org
Thu Jun 28 04:24:29 PDT 2012
configure.ac | 22 ++++++++++++++++++++++
src/Makefile.am | 6 ++++++
src/modules/xen/module-xenpv-sink.c | 4 +++-
src/utils/pacmd.c | 1 +
4 files changed, 32 insertions(+), 1 deletion(-)
New commits:
commit e8c5f24b47e9f0c8fb126ae1c668e146a4c8a3c4
Author: Deng Zhengrong <dzrongg at gmail.com>
Date: Sat Jun 23 19:16:26 2012 +0800
xen: add the HAVE_CONFIG_H macro guard
diff --git a/src/modules/xen/module-xenpv-sink.c b/src/modules/xen/module-xenpv-sink.c
index 086917c..34e5fc4 100644
--- a/src/modules/xen/module-xenpv-sink.c
+++ b/src/modules/xen/module-xenpv-sink.c
@@ -20,7 +20,9 @@
USA.
***/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <sys/stat.h>
commit a72544589da43f3de283bd538c6135993904303c
Author: Deng Zhengrong <dzrongg at gmail.com>
Date: Sat Jun 23 19:15:14 2012 +0800
pacmd: add help info for 'set-log-target'
diff --git a/src/utils/pacmd.c b/src/utils/pacmd.c
index a47a54a..a2492fd 100644
--- a/src/utils/pacmd.c
+++ b/src/utils/pacmd.c
@@ -74,6 +74,7 @@ static void help(const char *argv0) {
printf("%s %s %s\n", argv0, "set-card-profile", _("CARD PROFILE"));
printf("%s %s %s\n", argv0, "set-(sink|source)-port", _("NAME|#N PORT"));
printf("%s %s %s\n", argv0, "set-port-latency-offset", _("CARD-NAME|CARD-#N PORT OFFSET"));
+ printf("%s %s %s\n", argv0, "set-log-target", _("TARGET"));
printf("%s %s %s\n", argv0, "set-log-level", _("NUMERIC LEVEL"));
printf("%s %s %s\n", argv0, "set-log-meta", _("1|0"));
printf("%s %s %s\n", argv0, "set-log-time", _("1|0"));
commit faba854de7c57c14292f07e7219d2916c6d1920a
Author: Deng Zhengrong <dzrongg at gmail.com>
Date: Sat Jun 23 19:14:12 2012 +0800
build: Add gcov coverage support
diff --git a/configure.ac b/configure.ac
index f5f9b76..5e1a4c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1082,6 +1082,26 @@ AC_SUBST(XEN_CFLAGS)
AC_SUBST(XEN_LIBS)
AM_CONDITIONAL([HAVE_XEN], [test "x$HAVE_XEN" = x1])
+#### gcov support (optional) #####
+
+AC_ARG_ENABLE([gcov],
+ AS_HELP_STRING([--enable-gcov],[Enable optional gcov coverage analysis]))
+
+GCOV_CFLAGS=
+GCOV_LIBS=" -lgcov"
+
+AS_IF([test "x$enable_gcov" = "xyes"],
+ [
+ HAVE_GCOV=1
+ GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs -ftest-coverage"
+ GCOV_LIBS="$GCOV_LIBS -fprofile-arcs"
+ ],
+ HAVE_GCOV=0)
+
+AC_SUBST(GCOV_CFLAGS)
+AC_SUBST(GCOV_LIBS)
+AM_CONDITIONAL([HAVE_GCOV], [test "x$HAVE_GCOV" = x1])
+
#### ORC (optional) ####
ORC_CHECK([0.4.11])
@@ -1366,6 +1386,7 @@ AS_IF([test "x$HAVE_GDBM" = "x1"], ENABLE_GDBM=yes, ENABLE_GDBM=no)
AS_IF([test "x$HAVE_SIMPLEDB" = "x1"], ENABLE_SIMPLEDB=yes, ENABLE_SIMPLEDB=no)
AS_IF([test "x$HAVE_ESOUND" = "x1"], ENABLE_ESOUND=yes, ENABLE_ESOUND=no)
AS_IF([test "x$HAVE_ESOUND" = "x1" -a "x$USE_PER_USER_ESOUND_SOCKET" = "x1"], ENABLE_PER_USER_ESOUND_SOCKET=yes, ENABLE_PER_USER_ESOUND_SOCKET=no)
+AS_IF([test "x$HAVE_GCOV" = "x1"], ENABLE_GCOV=yes, ENABLE_GCOV=no)
AS_IF([test "x$enable_legacy_database_entry_format" != "xno"], ENABLE_LEGACY_DATABASE_ENTRY_FORMAT=yes, ENABLE_LEGACY_DATABASE_ENTRY_FORMAT=no)
echo "
@@ -1412,6 +1433,7 @@ echo "
Enable Adrian echo canceller: ${ENABLE_ADRIAN_EC}
Enable speex (resampler, AEC): ${ENABLE_SPEEX}
Enable WebRTC echo canceller: ${ENABLE_WEBRTC}
+ Enable gcov coverage: ${ENABLE_GCOV}
Database
tdb: ${ENABLE_TDB}
gdbm: ${ENABLE_GDBM}
diff --git a/src/Makefile.am b/src/Makefile.am
index 127956a..1de695a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -55,6 +55,12 @@ AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
AM_LDFLAGS = $(NODELETE_LDFLAGS)
+if HAVE_GCOV
+AM_CFLAGS+=$(GCOV_CFLAGS)
+AM_CXXFLAGS+=$(GCOV_CFLAGS)
+AM_LDFLAGS+=$(GCOV_LIBS)
+endif
+
if STATIC_BINS
BINLDFLAGS = -static
endif
More information about the pulseaudio-commits
mailing list