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



commit 82f9f050f491827f0ad1789828728b115b96bbb5
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 17929e24..bc571575 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,19 +11,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)
 
 librsvg_internals_la_SOURCES =         \
@@ -223,12 +214,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 = \
@@ -250,7 +241,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]