[libpeas/msvc: 1/12] libpeas/Makefile.am: Split out the source/headers listings



commit a13a110446c071765c604991402f7a8ec861b93f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Oct 15 12:39:02 2018 +0800

    libpeas/Makefile.am: Split out the source/headers listings
    
    This is so that we can include those as a makefile snippet so that we
    can share between autotools Makefiles and NMake Makefiles.

 libpeas/Makefile.am      | 50 +++++++++---------------------------------------
 libpeas/peas-sources.mak | 41 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 41 deletions(-)
---
diff --git a/libpeas/Makefile.am b/libpeas/Makefile.am
index 660ddff..9d13417 100644
--- a/libpeas/Makefile.am
+++ b/libpeas/Makefile.am
@@ -23,47 +23,15 @@ endif
 
 libpeas_1_0_la_LIBADD = $(PEAS_LIBS)
 
-INST_H_FILES =                 \
-       peas-autocleanups.h     \
-       peas-plugin-info.h      \
-       peas-object-module.h    \
-       peas-extension-base.h   \
-       peas-extension.h        \
-       peas-extension-set.h    \
-       peas-activatable.h      \
-       peas-engine.h           \
-       peas.h
-
-NOINST_H_FILES =                       \
-       peas-debug.h                    \
-       peas-dirs.h                     \
-       peas-engine-priv.h              \
-       peas-i18n.h                     \
-       peas-introspection.h            \
-       peas-plugin-info-priv.h         \
-       peas-plugin-loader.h            \
-       peas-plugin-loader-c.h          \
-       peas-utils.h
-
-C_FILES =                              \
-       peas-activatable.c              \
-       peas-debug.c                    \
-       peas-dirs.c                     \
-       peas-engine.c                   \
-       peas-extension.c                \
-       peas-extension-base.c           \
-       peas-extension-set.c            \
-       peas-i18n.c                     \
-       peas-introspection.c            \
-       peas-object-module.c            \
-       peas-plugin-info.c              \
-       peas-plugin-loader.c            \
-       peas-plugin-loader-c.c          \
-       peas-utils.c
-
-BUILT_SOURCES = \
-       peas-marshal.c                  \
-       peas-marshal.h
+include peas-sources.mak
+
+INST_H_FILES = $(PEAS_PUBLIC_HDRS)
+
+NOINST_H_FILES = $(PEAS_PRIVATE_HDRS)
+
+C_FILES = $(PEAS_SRCS)
+
+BUILT_SOURCES = $(PEAS_MARSHAL_SRCS)
 
 libpeas_1_0_la_SOURCES =       \
        $(INST_H_FILES)         \
diff --git a/libpeas/peas-sources.mak b/libpeas/peas-sources.mak
new file mode 100644
index 0000000..a008994
--- /dev/null
+++ b/libpeas/peas-sources.mak
@@ -0,0 +1,41 @@
+PEAS_PUBLIC_HDRS       =       \
+       peas-autocleanups.h     \
+       peas-plugin-info.h      \
+       peas-object-module.h    \
+       peas-extension-base.h   \
+       peas-extension.h        \
+       peas-extension-set.h    \
+       peas-activatable.h      \
+       peas-engine.h           \
+       peas.h
+
+PEAS_PRIVATE_HDRS =    \
+       peas-debug.h                    \
+       peas-dirs.h                     \
+       peas-engine-priv.h              \
+       peas-i18n.h                     \
+       peas-introspection.h            \
+       peas-plugin-info-priv.h         \
+       peas-plugin-loader.h            \
+       peas-plugin-loader-c.h          \
+       peas-utils.h
+
+PEAS_SRCS =    \
+       peas-activatable.c              \
+       peas-debug.c                    \
+       peas-dirs.c                     \
+       peas-engine.c                   \
+       peas-extension.c                \
+       peas-extension-base.c           \
+       peas-extension-set.c            \
+       peas-i18n.c                     \
+       peas-introspection.c            \
+       peas-object-module.c            \
+       peas-plugin-info.c              \
+       peas-plugin-loader.c            \
+       peas-plugin-loader-c.c          \
+       peas-utils.c
+
+PEAS_MARSHAL_SRCS =    \
+       peas-marshal.c  \
+       peas-marshal.h


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