[librsvg: 3/5] Reduce include search paths to the "include" directory




commit 6725ea2e584a445b639cab342a2541614360e772
Author: Sven Neumann <sven svenfoo org>
Date:   Fri Nov 6 11:37:59 2020 +0100

    Reduce include search paths to the "include" directory
    
    Making it impossible for rsvg-convert, gdk-pixbuf-loader and
    gtk-doc to include any non-public headers by not having them
    in the search path seems like a good idea.

 Makefile.am                   | 2 --
 doc/Makefile.am               | 2 --
 gdk-pixbuf-loader/Makefile.am | 2 --
 tests/Makefile.am             | 1 -
 4 files changed, 7 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 668030b2..5749263e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -231,9 +231,7 @@ rsvg_convert_SOURCES =                      \
        $(NULL)
 
 rsvg_convert_CPPFLAGS = \
-       -I$(top_srcdir)                         \
        -I$(top_srcdir)/include                 \
-       -I$(top_builddir)                       \
        -I$(top_builddir)/include               \
        -DLIBRSVG_DATADIR="\"$(datadir)\""      \
        $(AM_CPPFLAGS)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 710c0d1b..5d383a5f 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -88,9 +88,7 @@ expand_content_files =
 # e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
 # e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
 GTKDOC_CFLAGS =                                        \
-       -I$(top_srcdir)                         \
        -I$(top_srcdir)/include                 \
-       -I$(top_builddir)                       \
        -I$(top_builddir)/include               \
        $(LIBRSVG_CFLAGS)                       \
        $(WARN_CFLAGS)                          \
diff --git a/gdk-pixbuf-loader/Makefile.am b/gdk-pixbuf-loader/Makefile.am
index 12280112..7be9ce42 100644
--- a/gdk-pixbuf-loader/Makefile.am
+++ b/gdk-pixbuf-loader/Makefile.am
@@ -8,9 +8,7 @@ libpixbufloader_svg_la_SOURCES = \
        io-svg.c
 
 libpixbufloader_svg_la_CPPFLAGS = \
-       -I$(top_srcdir)                         \
        -I$(top_srcdir)/include                 \
-       -I$(top_builddir)                       \
        -I$(top_builddir)/include               \
        -DGDK_PIXBUF_ENABLE_BACKEND             \
        -DG_LOG_DOMAIN=\"libpixbufloader-svg\"  \
diff --git a/tests/Makefile.am b/tests/Makefile.am
index edb3c256..a74e5ae8 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -34,7 +34,6 @@ LDADD = $(top_builddir)/librsvg-@RSVG_API_MAJOR_VERSION@.la   \
 
 AM_CPPFLAGS =                                  \
        -I$(srcdir)                             \
-       -I$(top_srcdir)                         \
        -I$(top_srcdir)/include                 \
        -I$(top_builddir)/include               \
        -DTEST_DATA_DIR="\"$(srcdir)\""         \


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