[Freeswitch-branches] [commit] r11511 - freeswitch/branches/gmaruzz/mod_skypiax

FreeSWITCH SVN gmaruzz at freeswitch.org
Tue Jan 27 10:11:30 PST 2009


Author: gmaruzz
Date: Tue Jan 27 12:11:30 2009
New Revision: 11511

Log:
skypiax: report the svn version of skypiax as part of logging

Modified:
   freeswitch/branches/gmaruzz/mod_skypiax/Makefile
   freeswitch/branches/gmaruzz/mod_skypiax/skypiax.h

Modified: freeswitch/branches/gmaruzz/mod_skypiax/Makefile
==============================================================================
--- freeswitch/branches/gmaruzz/mod_skypiax/Makefile	(original)
+++ freeswitch/branches/gmaruzz/mod_skypiax/Makefile	Tue Jan 27 12:11:30 2009
@@ -1,4 +1,6 @@
 MODNAME=mod_skypiax
+SVNDEF := -D'SKYPIAX_SVN_VERSION="$(shell svnversion -n .)"'
+LOCAL_CFLAGS += $(SVNDEF)
 LOCAL_LDFLAGS=-lX11
 LOCAL_OBJS=skypiax_protocol.o
 include ../../../../build/modmake.rules

Modified: freeswitch/branches/gmaruzz/mod_skypiax/skypiax.h
==============================================================================
--- freeswitch/branches/gmaruzz/mod_skypiax/skypiax.h	(original)
+++ freeswitch/branches/gmaruzz/mod_skypiax/skypiax.h	Tue Jan 27 12:11:30 2009
@@ -51,7 +51,10 @@
 
 #define SAMPLERATE_SKYPIAX 16000
 #define SAMPLES_PER_FRAME SAMPLERATE_SKYPIAX/50
+
+#ifndef SKYPIAX_SVN_VERSION
 #define SKYPIAX_SVN_VERSION SWITCH_VERSION_REVISION
+#endif /* SKYPIAX_SVN_VERSION */
 
 typedef enum {
   TFLAG_IO = (1 << 0),



More information about the Freeswitch-branches mailing list