[librsvg/nmake: 2/8] Makefile.am: Split out the C sources list



commit 33ae29a2167051a687e6bb2d58bde07d83e43ae0
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Jun 25 17:37:43 2019 +0800

    Makefile.am: Split out the C sources list
    
    This will prepare for us to be able to share the source listings with
    other Makefile-based build systems, which will pave the way to build
    librsvg with NMake all-the-way, and will replace the Visual Studio
    projects.

 Makefile.am    | 19 +++++--------------
 rsvg-c-srcs.mk | 20 ++++++++++++++++++++
 2 files changed, 25 insertions(+), 14 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 3d69ea6a..b78decf3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,19 +10,10 @@ if HAVE_GTK_3
 bin_PROGRAMS += rsvg-view-3
 endif
 
-headers =                      \
-       librsvg/rsvg.h          \
-       librsvg/rsvg-cairo.h
+include rsvg-c-srcs.mk
 
 librsvg_@RSVG_API_MAJOR_VERSION@_la_SOURCES =  \
-       librsvg/librsvg-features.c              \
-       librsvg/librsvg-features.h              \
-       librsvg/rsvg-base.c                     \
-       librsvg/rsvg-cairo.h                    \
-       librsvg/rsvg-css.h                      \
-       librsvg/rsvg-handle.c                   \
-       librsvg/rsvg-pixbuf.c                   \
-       librsvg/rsvg.h                          \
+       $(librsvg_c_srcs)                       \
        $(NULL)
 
 RUST_SRC =                                                     \
@@ -211,12 +202,12 @@ librsvg_@RSVG_API_MAJOR_VERSION@_la_LIBADD = \
 librsvgincdir = $(includedir)/librsvg-$(RSVG_API_VERSION)/librsvg
 librsvginc_HEADERS =                   \
        $(headers)                      \
-       librsvg/librsvg-features.h
+       $(extra_inc_headers)
 
 dist_man_MANS = rsvg-convert.1
 
 rsvg_convert_SOURCES =                 \
-       rsvg-convert.c                  \
+       $(rsvg_convert_srcs)            \
        $(NULL)
 
 rsvg_convert_CPPFLAGS = \
@@ -238,7 +229,7 @@ rsvg_convert_LDADD = \
        $(LIBM)
 
 rsvg_view_3_SOURCES =                  \
-       rsvg-view.c
+       $(rsvg_view_srcs)
 
 rsvg_view_3_CPPFLAGS = \
        -I$(top_srcdir)                         \
diff --git a/rsvg-c-srcs.mk b/rsvg-c-srcs.mk
new file mode 100644
index 00000000..f36efa0a
--- /dev/null
+++ b/rsvg-c-srcs.mk
@@ -0,0 +1,20 @@
+headers =                      \
+       librsvg/rsvg.h          \
+       librsvg/rsvg-cairo.h
+
+extra_inc_headers =    \
+       librsvg/librsvg-features.h
+
+librsvg_c_srcs =       \
+       librsvg/librsvg-features.c              \
+       librsvg/librsvg-features.h              \
+       librsvg/rsvg-base.c                     \
+       librsvg/rsvg-cairo.h                    \
+       librsvg/rsvg-css.h                      \
+       librsvg/rsvg-handle.c                   \
+       librsvg/rsvg-pixbuf.c                   \
+       librsvg/rsvg.h                          \
+       $(NULL)
+
+rsvg_convert_srcs = rsvg-convert.c
+rsvg_view_srcs = rsvg-view.c
\ No newline at end of file


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