[libdmapsharing] Dynamically write pedansee.conf to ignore GObject-generated symbols



commit 64c555d2243bbd7d119e993533dcf1363fbd41a2
Author: W. Michael Petullo <mike flyn org>
Date:   Thu Oct 26 20:03:29 2017 -0400

    Dynamically write pedansee.conf to ignore GObject-generated symbols
    
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/Makefile.am   |   13 +++++++++++--
 libdmapsharing/pedansee.conf |    7 -------
 2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/libdmapsharing/Makefile.am b/libdmapsharing/Makefile.am
index cec2ab6..c9fcb94 100644
--- a/libdmapsharing/Makefile.am
+++ b/libdmapsharing/Makefile.am
@@ -110,7 +110,7 @@ noinst_HEADERS = \
 
 BUILT_SOURCES = dmap-marshal.c dmap-marshal.h dmap-enums.c dmap-enums.h unit-test.stamp
 
-CLEANFILES = $(BUILT_SOURCES) ../tests/unit-test.c *-suite.c
+CLEANFILES = $(BUILT_SOURCES) ../tests/unit-test.c *-suite.c pedansee.conf
 
 dmap-marshal.c: dmap-marshal.list
        @glib-genmarshal --prefix=dmap_marshal_generated $(srcdir)/dmap-marshal.list --body > dmap-marshal.c
@@ -172,6 +172,15 @@ endif
 
 check:
 if HAVE_PEDANSEE
+       echo    "[ignore]" > pedansee.conf
+       echo -n "       name = " >> pedansee.conf
+       for i in $$(grep G_DEFINE_TYPE *.c | sed 's/[^,]*, \([^,]*\),.*/\1/g'); do \
+               echo -n $${i}_init\;; \
+               echo -n $${i}_class_init\;; \
+               echo -n $${i}_parent_class\;; \
+               echo -n $${i}_get_instance_private\;; \
+               echo -n $${i}_class_intern_init\;; \
+       done >> pedansee.conf
        set -e; for i in $(libdmapsharing_3_0_la_SOURCES); do \
                $(PEDANSEE) -c pedansee.conf $$i -- -x c $(DEFS) $(libdmapsharing_3_0_la_CFLAGS); \
        done
@@ -181,4 +190,4 @@ if HAVE_PEDANSEE
        done
 endif
 
-EXTRA_DIST = dmap-marshal.list generate-test-suites pedansee.conf
+EXTRA_DIST = dmap-marshal.list generate-test-suites


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