[libpeas/msvc: 3/12] loaders/[lua5.1|python]/Makefile.am: Split out source listings
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas/msvc: 3/12] loaders/[lua5.1|python]/Makefile.am: Split out source listings
- Date: Mon, 15 Oct 2018 09:41:16 +0000 (UTC)
commit e1ceef1e1fdec92fa9d2e6998f6eb9f2b31205c8
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Oct 15 12:46:15 2018 +0800
loaders/[lua5.1|python]/Makefile.am: Split out source listings
Make these source listings into separate Makefile snippets so that we
can share them with autotools Makefiles and NMake Makefiles.
loaders/lua5.1/Makefile.am | 7 +------
loaders/lua5.1/lua-loader-srcs.mak | 7 +++++++
loaders/python/Makefile.am | 7 +++----
loaders/python/python-loader-sources.mak | 5 +++++
4 files changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/loaders/lua5.1/Makefile.am b/loaders/lua5.1/Makefile.am
index 097224e..8b2e2dc 100644
--- a/loaders/lua5.1/Makefile.am
+++ b/loaders/lua5.1/Makefile.am
@@ -15,12 +15,7 @@ AM_CPPFLAGS = \
loader_LTLIBRARIES = liblua51loader.la
liblua51loader_la_SOURCES = \
- peas-lua-internal.c \
- peas-lua-internal.h \
- peas-plugin-loader-lua.c \
- peas-plugin-loader-lua.h \
- peas-lua-utils.c \
- peas-lua-utils.h \
+ $(lua51loader_sources) \
resources/peas-lua-resources.c
liblua51loader_la_LDFLAGS = \
diff --git a/loaders/lua5.1/lua-loader-srcs.mak b/loaders/lua5.1/lua-loader-srcs.mak
new file mode 100644
index 0000000..1f417f2
--- /dev/null
+++ b/loaders/lua5.1/lua-loader-srcs.mak
@@ -0,0 +1,7 @@
+lua51loader_sources = \
+ peas-lua-internal.c \
+ peas-lua-internal.h \
+ peas-plugin-loader-lua.c \
+ peas-plugin-loader-lua.h \
+ peas-lua-utils.c \
+ peas-lua-utils.h
diff --git a/loaders/python/Makefile.am b/loaders/python/Makefile.am
index eb0c617..94a88b1 100644
--- a/loaders/python/Makefile.am
+++ b/loaders/python/Makefile.am
@@ -14,11 +14,10 @@ AM_CPPFLAGS = \
loader_LTLIBRARIES = libpythonloader.la
+include python-loader-sources.mak
+
libpythonloader_la_SOURCES = \
- peas-plugin-loader-python.c \
- peas-plugin-loader-python.h \
- peas-python-internal.c \
- peas-python-internal.h \
+ $(PYTHON_LOADER_SOURCES) \
peas-python-resources.c
libpythonloader_la_LDFLAGS = \
diff --git a/loaders/python/python-loader-sources.mak b/loaders/python/python-loader-sources.mak
new file mode 100644
index 0000000..9ae9733
--- /dev/null
+++ b/loaders/python/python-loader-sources.mak
@@ -0,0 +1,5 @@
+PYTHON_LOADER_SOURCES = \
+ peas-plugin-loader-python.c \
+ peas-plugin-loader-python.h \
+ peas-python-internal.c \
+ peas-python-internal.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]