[cogl/cogl-latest-win: 25/27] cogl-gst: Split out source listings




commit 021688699c4b63f2ebcabf5e65c9c8550ab77c88
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Oct 18 17:20:55 2021 +0800

    cogl-gst: Split out source listings
    
    This is so that source listings can be shared with other non-autools
    build systems, such as NMake.

 cogl-gst/Makefile.am       | 23 ++++++-----------------
 cogl-gst/cogl-gst-srcs.mak | 12 ++++++++++++
 2 files changed, 18 insertions(+), 17 deletions(-)
---
diff --git a/cogl-gst/Makefile.am b/cogl-gst/Makefile.am
index 0395e29c..5a0a9825 100644
--- a/cogl-gst/Makefile.am
+++ b/cogl-gst/Makefile.am
@@ -7,18 +7,11 @@ DISTCLEANFILES =
 
 EXTRA_DIST =
 
-source_c = \
-       cogl-gst-video-sink.c \
-       $(NULL)
-
-source_h = \
-       cogl-gst.h \
-       cogl-gst-video-sink.h \
-       $(NULL)
-
 lib_LTLIBRARIES = libcogl-gst.la
 
-libcogl_gst_la_SOURCES = $(source_c) $(source_h)
+include cogl-gst-srcs.mak
+
+libcogl_gst_la_SOURCES = $(source_gst_c) $(source_gst_h)
 libcogl_gst_la_CFLAGS = $(COGL_DEP_CFLAGS) $(COGL_GST_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS) $(MAINTAINER_CFLAGS)
 libcogl_gst_la_LIBADD = $(top_builddir)/cogl/libcogl.la
 libcogl_gst_la_LIBADD += $(COGL_DEP_LIBS) $(COGL_GST_DEP_LIBS) $(COGL_EXTRA_LDFLAGS)
@@ -39,14 +32,10 @@ AM_CPPFLAGS = \
        -I$(top_builddir)
 
 cogl_gstheadersdir = $(includedir)/cogl/cogl-gst
-cogl_gstheaders_HEADERS = $(source_h)
-
-plugin_source_c = \
-       cogl-gst-plugin.c \
-       $(NULL)
+cogl_gstheaders_HEADERS = $(source_gst_h)
 
 libgstcogl_la_SOURCES =        \
-       $(plugin_source_c)      \
+       $(plugin_source_gst_c)      \
        $(NULL)
 
 plugin_LTLIBRARIES = libgstcogl.la
@@ -81,7 +70,7 @@ CoglGst-2.0.gir: libcogl-gst.la Makefile
 CoglGst_2_0_gir_NAMESPACE = CoglGst
 CoglGst_2_0_gir_VERSION = 2.0
 CoglGst_2_0_gir_LIBS = $(top_builddir)/cogl/libcogl.la libcogl-gst.la
-CoglGst_2_0_gir_FILES = $(source_h) $(source_c)
+CoglGst_2_0_gir_FILES = $(source_gst_h) $(source_gst_c)
 CoglGst_2_0_gir_CFLAGS = $(AM_CPPFLAGS) $(COGL_GST_DEP_CFLAGS)
 CoglGst_2_0_gir_INCLUDES = GObject-2.0 Gst-1.0 GstBase-1.0
 CoglGst_2_0_gir_EXPORT_PACKAGES = cogl-gst-2.0-experimental
diff --git a/cogl-gst/cogl-gst-srcs.mak b/cogl-gst/cogl-gst-srcs.mak
new file mode 100644
index 00000000..5730490f
--- /dev/null
+++ b/cogl-gst/cogl-gst-srcs.mak
@@ -0,0 +1,12 @@
+source_gst_c = \
+       cogl-gst-video-sink.c \
+       $(NULL)
+
+source_gst_h = \
+       cogl-gst.h \
+       cogl-gst-video-sink.h \
+       $(NULL)
+
+plugin_source_gst_c = \
+       cogl-gst-plugin.c \
+       $(NULL)
\ No newline at end of file


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