[beast: 3/8] BSE: remove mkcproc.pl and related remainings



commit 1d47d29f241b076dd9828f5dd415b9cbcc1fc050
Author: Tim Janik <timj gnu org>
Date:   Sun Oct 1 01:40:38 2017 +0200

    BSE: remove mkcproc.pl and related remainings
    
    Signed-off-by: Tim Janik <timj gnu org>

 bse/Makefile.am  |   40 +-------
 bse/bseplugin.cc |    3 -
 bse/mkcproc.pl   |  318 ------------------------------------------------------
 3 files changed, 1 insertions(+), 360 deletions(-)
---
diff --git a/bse/Makefile.am b/bse/Makefile.am
index 58007a1..0e1bf3b 100644
--- a/bse/Makefile.am
+++ b/bse/Makefile.am
@@ -7,7 +7,6 @@ DEFS        += @DEFINE__FILE_DIR__@ -DG_LOG_DOMAIN=\"BSE\" -DG_DISABLE_CONST_RET
 AM_CPPFLAGS += -I$(top_srcdir)
 # need -I$(top_srcdir) for <bse/bsedefs.hh>
 # need -I$(top_builddir) for <sfi/sficonfig.h>
-# need -I$(srcdir) for "bseserver.hh" in .genprc.cc
 # need -I. (builddir) for "bsebasics.genidl.hh" in bsebasics.cc
 AIDACC_VDEBUG = $(AIDACC) $(if $(findstring 1, $(V)), --aida-debug)
 
@@ -109,11 +108,6 @@ idl_dummy_files = $(strip  \
        bsecxxmodule.idl        \
        bsecxxbase.idl          \
 )
-# BSE procedure sources
-bse_proc_sources = $(strip \
-                               bseitem.proc                                    \
-)
-bse_proc_gen_sources = $(bse_proc_sources:.proc=.genprc.cc)
 
 doc_sources = $(bse_idl_sources) $(bse_sources) $(bse_public_headers) bseapi.idl
 
@@ -130,7 +124,7 @@ libbse_@MAJOR@includedir             = $(bseincludedir)/bse
 libbse_@MAJOR@include_HEADERS        = $(bse_public_headers) bse.idl $(bse_idl_sources) $(idl_dummy_files)
 nodist_libbse_@MAJOR@include_HEADERS = bsebasics.genidl.hh bseserverapi.hh bsehack.idl bseclientapi.hh 
bsegentypes.h
 libbse_@MAJOR@_la_SOURCES            = $(bse_sources)
-nodist_libbse_@MAJOR@_la_SOURCES     = $(bse_proc_gen_sources) gslfft.cc
+nodist_libbse_@MAJOR@_la_SOURCES     = gslfft.cc
 libbse_@MAJOR@_la_CXXFLAGS          = $(AM_CXXFLAGS) $(LIBBSE_CFLAGS) -DBSE_CONVENIENCE
 libbse_@MAJOR@_la_LIBADD             = $(top_builddir)/sfi/libsfi-@MAJOR@.la $(LIBBSE_LIBS)
 libbse_@MAJOR@_la_LDFLAGS            = $(strip         \
@@ -151,18 +145,6 @@ install-exec-ldconfig: # libtool >= 1.5.2 doesn't always set rpath, requiring ld
        test ! -x /sbin/ldconfig -o ! -w /etc/ld.so.cache || /sbin/ldconfig $(DESTDIR)$(bselibdir)
 install-exec-hook: install-exec-ldconfig
 
-#
-# rules to generate built sources
-#
-%.genprc.cc: @PERLRULE@ %.proc mkcproc.pl
-       $(AM_V_GEN)
-       $(Q) $(srcdir)/mkcproc.pl --funcname $@ --preprocess $< >$@
-if WITH_PERLRULE
-CLEANFILES += $(bse_proc_gen_sources)
-else
-MAINTAINERCLEANFILES += $(bse_proc_gen_sources)
-endif
-
 # == gslfft.cc ==
 GENERATED_CLEANFILES += gslfft.cc
 $(srcdir)/gslfft.cc: @PERLRULE@ $(srcdir)/gsl-fftgen.pl $(srcdir)/gsl-fftconf.sh
@@ -242,26 +224,6 @@ bsegentype_array.cc: @PERLRULE@ bsegentypes.h
        && $(PERL) mktypes.pl --array $(mktypes_bse_sources) > xgen-$(@F) \
        && cp xgen-$(@F) $(@F) \
        && rm -f xgen-$(@F)
-# bsebuiltin_externs.cc
-GENERATED_CLEANFILES += bsebuiltin_externs.cc
-#$(libbse_@MAJOR@_la_OBJECTS): bsebuiltin_externs.cc # forces complete rebuild when *.proc changes
-bseplugin.cc: bsebuiltin_externs.cc
-bsebuiltin_externs.cc: @PERLRULE@ $(bse_proc_gen_sources) mkcproc.pl
-       $(AM_V_GEN)
-       $(Q) cd $(srcdir) \
-       && $(PERL) mkcproc.pl --externs $(bse_proc_gen_sources) > xgen-$(@F) \
-       && cp xgen-$(@F) $(@F) \
-       && rm -f xgen-$(@F)
-# bsebuiltin_array.cc
-GENERATED_CLEANFILES += bsebuiltin_array.cc
-#$(libbse_@MAJOR@_la_OBJECTS): bsebuiltin_array.cc # forces complete rebuild when *.proc changes
-bseplugin.cc: bsebuiltin_array.cc
-bsebuiltin_array.cc: @PERLRULE@ $(bse_proc_gen_sources) mkcproc.pl
-       $(AM_V_GEN)
-       $(Q) cd $(srcdir) \
-       && $(PERL) mkcproc.pl --functions $(bse_proc_gen_sources) > xgen-$(@F) \
-       && cp xgen-$(@F) $(@F) \
-       && rm -f xgen-$(@F)
 # bsegenbasics.cc
 GENERATED_CLEANFILES += bsegenbasics.cc
 $(srcdir)/bsebasics.cc: bsegenbasics.cc
diff --git a/bse/bseplugin.cc b/bse/bseplugin.cc
index 8126bf2..b0d86b3 100644
--- a/bse/bseplugin.cc
+++ b/bse/bseplugin.cc
@@ -116,8 +116,6 @@ bse_plugin_init (BsePlugin *plugin)
   plugin->types = NULL;
 }
 
-#include "bsebuiltin_externs.cc" // include extern declarations of builtin init functions
-
 void
 bse_plugin_init_builtins (void)
 {
@@ -125,7 +123,6 @@ bse_plugin_init_builtins (void)
     {
       static BseExportNode* (* const builtin_inits[]) (void) = {
        /* and list them in an array */
-#include "bsebuiltin_array.cc"
       };
       static const guint n_builtin_inits = G_N_ELEMENTS (builtin_inits);
       guint i;


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