From b43eef8522c6c9eb9bcf8a32ab1360ebc837fbb2 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 10 May 2010 13:07:24 -0500 Subject: [PATCH] fix reswiging with a perl script instead of archaic preprocessor wizzadry --- Makefile.am | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 3bc9e0807f..f60eafab57 100644 --- a/Makefile.am +++ b/Makefile.am @@ -253,10 +253,11 @@ $(top_builddir)/libfreeswitch_la-switch_console.lo: src/include/switch_version.h $(libfreeswitch_la_SOURCES): $(CORE_LIBS) $(switch_builddir)/quiet_libtool $(switch_builddir)/modules.conf src/include/switch_swigable_cpp.h: $(switch_srcdir)/src/include/switch_cpp.h - $(CC) -E $(switch_srcdir)/src/include/switch_cpp.h \ - -I$(switch_srcdir)/src/include -I$(switch_srcdir)/libs/libteletone/src \ - -DSWITCH_DECLARE_CLASS= -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= \ - -DSWITCH_DECLARE_NONSTD\(x\)=x 2>/dev/null | grep -v "^#" > src/include/switch_swigable_cpp.h + cat $(switch_srcdir)/src/include/switch_cpp.h | perl $(switch_srcdir)/build/strip.pl > $(switch_srcdir)/src/include/switch_swigable_cpp.h +# $(CC) -E $(switch_srcdir)/src/include/switch_cpp.h \ +# -I$(switch_srcdir)/src/include -I$(switch_srcdir)/libs/libteletone/src \ +# -DSWITCH_DECLARE_CLASS= -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= \ +# -DSWITCH_DECLARE_NONSTD\(x\)=x 2>/dev/null | grep -v "^#" > src/include/switch_swigable_cpp.h ## ## Applications