[cogl/cogl.msvc.new: 2/19] cogl-path: Split out the source listings



commit 5adc9a312529da979a2624112d2e4c2ea93d6bb2
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Feb 11 16:45:53 2019 +0800

    cogl-path: Split out the source listings
    
    Like the previous commit, split out the source listings so that we can
    share it with other Makefile-based build systems, such as NMake.

 cogl-path/Makefile.am        | 51 ++++++--------------------------------------
 cogl-path/cogl-path-srcs.mak | 49 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 45 deletions(-)
---
diff --git a/cogl-path/Makefile.am b/cogl-path/Makefile.am
index 6c60a284..97decb51 100644
--- a/cogl-path/Makefile.am
+++ b/cogl-path/Makefile.am
@@ -9,41 +9,9 @@ DISTCLEANFILES =
 
 EXTRA_DIST =
 
-# tesselator sources
-cogl_tesselator_sources = \
-       tesselator/dict-list.h  \
-       tesselator/dict.c               \
-       tesselator/dict.h               \
-       tesselator/geom.c               \
-       tesselator/geom.h               \
-       tesselator/gluos.h              \
-       tesselator/memalloc.h   \
-       tesselator/mesh.c               \
-       tesselator/mesh.h               \
-       tesselator/normal.c             \
-       tesselator/normal.h             \
-       tesselator/priorityq-heap.h     \
-       tesselator/priorityq-sort.h     \
-       tesselator/priorityq.c  \
-       tesselator/priorityq.h  \
-       tesselator/render.c             \
-       tesselator/render.h             \
-       tesselator/sweep.c              \
-       tesselator/sweep.h              \
-       tesselator/tess.c               \
-       tesselator/tess.h               \
-       tesselator/tesselator.h         \
-       tesselator/tessmono.c   \
-       tesselator/tessmono.h   \
-       tesselator/GL/glu.h             \
-       $(NULL)
+include cogl-path-srcs.mak
 
-source_c = \
-       $(cogl_tesselator_sources) \
-       cogl-path-private.h \
-       cogl1-path.c \
-       cogl-path.c \
-       $(NULL)
+source_c = $(COGL_PATH_SRCS)
 
 EXTRA_DIST += \
        tesselator/README               \
@@ -51,21 +19,14 @@ EXTRA_DIST += \
        cogl-path.symbols               \
        $(NULL)
 
-source_1_x_h = \
-       cogl-path-types.h \
-       cogl1-path-functions.h \
-       $(NULL)
+source_1_x_h = $(COGL_PATH_1_x_HDRS)
 
-source_h = \
-       cogl-path.h \
-       $(source_1_x_h) \
-       cogl2-path-functions.h \
-       $(NULL)
+source_h = $(COGL_PATH_HDRS)
 
 if USE_GLIB
 # glib-mkenums rules
-glib_enum_h = cogl-path-enum-types.h
-glib_enum_c = cogl-path-enum-types.c
+glib_enum_h = $(COGL_PATH_ENUM_HDRS)
+glib_enum_c = $(COGL_PATH_ENUM_SRCS)
 glib_enum_headers = $(source_1_x_h)
 include $(top_srcdir)/build/autotools/Makefile.am.enums
 endif
diff --git a/cogl-path/cogl-path-srcs.mak b/cogl-path/cogl-path-srcs.mak
new file mode 100644
index 00000000..ca255c54
--- /dev/null
+++ b/cogl-path/cogl-path-srcs.mak
@@ -0,0 +1,49 @@
+# Source file lists for cogl-path
+
+# tesselator sources
+COGL_TESSELATOR_SRCS = \
+       tesselator/dict-list.h  \
+       tesselator/dict.c               \
+       tesselator/dict.h               \
+       tesselator/geom.c               \
+       tesselator/geom.h               \
+       tesselator/gluos.h              \
+       tesselator/memalloc.h   \
+       tesselator/mesh.c               \
+       tesselator/mesh.h               \
+       tesselator/normal.c             \
+       tesselator/normal.h             \
+       tesselator/priorityq-heap.h     \
+       tesselator/priorityq-sort.h     \
+       tesselator/priorityq.c  \
+       tesselator/priorityq.h  \
+       tesselator/render.c             \
+       tesselator/render.h             \
+       tesselator/sweep.c              \
+       tesselator/sweep.h              \
+       tesselator/tess.c               \
+       tesselator/tess.h               \
+       tesselator/tesselator.h         \
+       tesselator/tessmono.c   \
+       tesselator/tessmono.h   \
+       tesselator/GL/glu.h             \
+       $(NULL)
+
+COGL_PATH_SRCS =       \
+       $(COGL_TESSELATOR_SRCS) \
+       cogl-path-private.h \
+       cogl1-path.c \
+       cogl-path.c \
+       $(NULL)
+
+COGL_PATH_1_x_HDRS = \
+       cogl-path-types.h \
+       cogl1-path-functions.h \
+       $(NULL)
+
+COGL_PATH_HDRS = \
+       cogl-path.h \
+       $(COGL_PATH_1_x_HDRS) \
+       cogl2-path-functions.h \
+       $(NULL)
+       
\ No newline at end of file


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