[beast/temp-rc1] SFI: speed up compilation by merging the sfidl sources



commit c31b0f49aebec6763e960559db4470b50bd97836
Author: Tim Janik <timj gnu org>
Date:   Sat Oct 18 02:19:19 2014 +0200

    SFI: speed up compilation by merging the sfidl sources

 sfi/Makefile.am |   10 ++++++----
 sfi/sfidl.cc    |   15 +++++++++++++++
 2 files changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/sfi/Makefile.am b/sfi/Makefile.am
index 49b7c66..d18c8c5 100644
--- a/sfi/Makefile.am
+++ b/sfi/Makefile.am
@@ -43,13 +43,15 @@ libsfi_la_LIBADD      = $(SFI_LIBS) -lm
 # programs to build
 #
 # source files
-common_idl_sources = sfidl-generator.cc sfidl-namespace.cc sfidl-options.cc sfidl-parser.cc \
-  sfidl-factory.cc sfidl-typelist.cc sfidl-cbase.cc sfidl-clientc.cc sfidl-clientcxx.cc sfidl-corec.cc \
-  sfidl-corecxx.cc sfidl-cxxbase.cc sfidl-hostc.cc sfidl-utils.cc
 
 bin_PROGRAMS = sfidl
-sfidl_SOURCES = sfidl.cc $(common_idl_sources)
+sfidl_SOURCES = sfidl.cc
 sfidl_LDADD = $(SFI_LIBS) $(RAPICORN_LIBS) -lm
+# included files
+EXTRA_DIST += sfidl-generator.cc sfidl-namespace.cc sfidl-options.cc sfidl-parser.cc sfidl-factory.cc
+EXTRA_DIST += sfidl-typelist.cc sfidl-cbase.cc sfidl-clientc.cc sfidl-clientcxx.cc sfidl-corec.cc
+EXTRA_DIST += sfidl-corecxx.cc sfidl-cxxbase.cc sfidl-hostc.cc sfidl-utils.cc
+# headers
 EXTRA_DIST += sfidl-generator.hh sfidl-namespace.hh sfidl-options.hh sfidl-parser.hh sfidl-factory.hh
 EXTRA_DIST += sfidl-cbase.hh sfidl-clientc.hh sfidl-clientcxx.hh sfidl-cxxbase.hh sfidl-hostc.hh 
sfidl-utils.hh
 
diff --git a/sfi/sfidl.cc b/sfi/sfidl.cc
index 0113244..76bedee 100644
--- a/sfi/sfidl.cc
+++ b/sfi/sfidl.cc
@@ -55,4 +55,19 @@ int main (int argc, char **argv)
   return 0;
 }
 
+#include "sfidl-generator.cc"
+#include "sfidl-namespace.cc"
+#include "sfidl-options.cc"
+#include "sfidl-parser.cc"
+#include "sfidl-factory.cc"
+#include "sfidl-typelist.cc"
+#include "sfidl-cbase.cc"
+#include "sfidl-clientc.cc"
+#include "sfidl-clientcxx.cc"
+#include "sfidl-corec.cc"
+#include "sfidl-corecxx.cc"
+#include "sfidl-cxxbase.cc"
+#include "sfidl-hostc.cc"
+#include "sfidl-utils.cc"
+
 /* vim:set ts=8 sts=2 sw=2: */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]