From cbe1628f2eb1a1a3c8b0b96a3b1334a039074def Mon Sep 17 00:00:00 2001
From: eb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Date: Sat, 13 Jan 2007 04:14:56 +0000
Subject: SWIG compilation speedup!  Fixes ticket:9. Merged -r4203:4254 from
 eb/swig-split into trunk.

This refactors gnuradio_swig_python.{cc,py} into 5 separate .so's
These correspond to the runtime, general, filter and io directories,
and also includes a new directory, gengen.  gengen contains that part
of general that was machine generated.  This split is arbitrary, but
was useful for getting size of the swig generated glue code for
general down to about 2MB.

In addition, the swig glue is now compiled with -g1 -O1 instead of
-g -O2.  With this change all the swig code now compiles in about 60%
of the time that it used to take.


git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4255 221aa14e-8319-0410-a670-987f0aec2ac5
---
 config/grc_gnuradio_core.m4 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to 'config')

diff --git a/config/grc_gnuradio_core.m4 b/config/grc_gnuradio_core.m4
index 53997c6d3b..da91f61ee1 100644
--- a/config/grc_gnuradio_core.m4
+++ b/config/grc_gnuradio_core.m4
@@ -34,6 +34,7 @@ AC_DEFUN([GRC_GNURADIO_CORE],[
         gnuradio-core/src/lib/g72x/Makefile \
         gnuradio-core/src/lib/general/Makefile \
         gnuradio-core/src/lib/general/gr_prefix.cc \
+        gnuradio-core/src/lib/gengen/Makefile \
         gnuradio-core/src/lib/io/Makefile \
         gnuradio-core/src/lib/missing/Makefile \
         gnuradio-core/src/lib/omnithread/Makefile \
@@ -58,7 +59,13 @@ AC_DEFUN([GRC_GNURADIO_CORE],[
         dnl run_tests is created from run_tests.in.  Make it executable.
         AC_CONFIG_COMMANDS([run_tests_core], [chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests])
 
-        dnl kludge up initial swig dependency file
-        AC_CONFIG_COMMANDS([swig_deps], [touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d])
+        dnl kludge up initial swig dependency files
+        AC_CONFIG_COMMANDS([swig_deps],	[
+		touch gnuradio-core/src/lib/swig/gnuradio_swig_py_runtime.d
+		touch gnuradio-core/src/lib/swig/gnuradio_swig_py_general.d
+		touch gnuradio-core/src/lib/swig/gnuradio_swig_py_gengen.d
+		touch gnuradio-core/src/lib/swig/gnuradio_swig_py_filter.d
+		touch gnuradio-core/src/lib/swig/gnuradio_swig_py_io.d
+		])
     ])
 ])
-- 
cgit v1.2.3