[glibmm/master.nmake: 3/5] glibmm, giomm: Split out GNU automake items from filelist.am
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/master.nmake: 3/5] glibmm, giomm: Split out GNU automake items from filelist.am
- Date: Wed, 12 Sep 2018 11:55:24 +0000 (UTC)
commit ce26359162e78dd4c510583b68785786c69572bf
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Aug 17 17:25:36 2018 +0800
glibmm, giomm: Split out GNU automake items from filelist.am
This enables the filelist.am files to be shared with the NMake
Makefiles, so that any addition/removal to the sources can be reflected
in the Visual Studio build files as well.
gio/giomm/Makefile.am | 4 ++--
gio/giomm/filelist.am | 1 -
gio/giomm/filelist.gmake.am | 5 +++++
gio/src/Makefile.am | 2 +-
gio/src/filelist.am | 17 -----------------
gio/src/filelist.gmake.am | 20 ++++++++++++++++++++
glib/glibmm/Makefile.am | 2 +-
glib/glibmm/filelist.am | 1 -
glib/glibmm/filelist.gmake.am | 5 +++++
9 files changed, 34 insertions(+), 23 deletions(-)
---
diff --git a/gio/giomm/Makefile.am b/gio/giomm/Makefile.am
index 6d997b05..22dabbcd 100644
--- a/gio/giomm/Makefile.am
+++ b/gio/giomm/Makefile.am
@@ -17,8 +17,8 @@
lib_LTLIBRARIES = libgiomm-@GIOMM_API_VERSION@.la
-include $(srcdir)/../src/filelist.am
-include $(srcdir)/filelist.am
+include $(srcdir)/../src/filelist.gmake.am
+include $(srcdir)/filelist.gmake.am
files_built_cc = $(giomm_files_built_cc)
files_built_h = $(giomm_files_built_h)
diff --git a/gio/giomm/filelist.am b/gio/giomm/filelist.am
index f2414e5a..fe49892f 100644
--- a/gio/giomm/filelist.am
+++ b/gio/giomm/filelist.am
@@ -2,7 +2,6 @@
giomm_files_built_cc = $(giomm_files_used_hg:.hg=.cc) wrap_init.cc
giomm_files_built_h = $(giomm_files_used_hg:.hg=.h)
-giomm_files_built_ph = $(patsubst %.hg,private/%_p.h,$(giomm_files_used_hg))
giomm_files_extra_cc = contenttype.cc init.cc slot_async.cc socketsource.cc
giomm_files_extra_h = contenttype.h init.h slot_async.h socketsource.h wrap_init.h
diff --git a/gio/giomm/filelist.gmake.am b/gio/giomm/filelist.gmake.am
new file mode 100644
index 00000000..84322f7a
--- /dev/null
+++ b/gio/giomm/filelist.gmake.am
@@ -0,0 +1,5 @@
+## This file is part of glibmm.
+
+include $(srcdir)/filelist.am
+
+giomm_files_built_ph = $(patsubst %.hg,private/%_p.h,$(giomm_files_used_hg))
diff --git a/gio/src/Makefile.am b/gio/src/Makefile.am
index 226d3a95..1fdf3645 100644
--- a/gio/src/Makefile.am
+++ b/gio/src/Makefile.am
@@ -23,7 +23,7 @@ binding_name = giomm
wrap_init_flags = --namespace=Gio --parent_dir=giomm
codegen_srcdir = $(top_srcdir)/tools
-include $(srcdir)/filelist.am
+include $(srcdir)/filelist.gmake.am
include $(top_srcdir)/tools/m4/filelist.am
files_defs = $(giomm_files_defs)
diff --git a/gio/src/filelist.am b/gio/src/filelist.am
index c126eb74..548125c2 100644
--- a/gio/src/filelist.am
+++ b/gio/src/filelist.am
@@ -148,20 +148,3 @@ giomm_files_posix_hg = \
giomm_files_not_mac = \
desktopappinfo.hg
-
-if HOST_WINDOWS_NATIVE
-giomm_files_arch_hg =
-else
-if OS_COCOA
-giomm_files_arch_hg = $(giomm_files_posix_hg)
-else
-giomm_files_arch_hg = $(giomm_files_not_mac) $(giomm_files_posix_hg)
-endif
-endif
-giomm_files_used_hg = $(giomm_files_any_hg) $(giomm_files_arch_hg)
-
-giomm_files_hg = \
- $(giomm_files_any_hg) \
- $(giomm_files_posix_hg) \
- $(giomm_files_not_mac)
-giomm_files_ccg = $(giomm_files_hg:.hg=.ccg)
diff --git a/gio/src/filelist.gmake.am b/gio/src/filelist.gmake.am
new file mode 100644
index 00000000..3827ef3d
--- /dev/null
+++ b/gio/src/filelist.gmake.am
@@ -0,0 +1,20 @@
+## This file is part of glibmm.
+
+include $(srcdir)/../src/filelist.am
+
+if HOST_WINDOWS_NATIVE
+giomm_files_arch_hg =
+else
+if OS_COCOA
+giomm_files_arch_hg = $(giomm_files_posix_hg)
+else
+giomm_files_arch_hg = $(giomm_files_not_mac) $(giomm_files_posix_hg)
+endif
+endif
+giomm_files_used_hg = $(giomm_files_any_hg) $(giomm_files_arch_hg)
+
+giomm_files_hg = \
+ $(giomm_files_any_hg) \
+ $(giomm_files_posix_hg) \
+ $(giomm_files_not_mac)
+giomm_files_ccg = $(giomm_files_hg:.hg=.ccg)
diff --git a/glib/glibmm/Makefile.am b/glib/glibmm/Makefile.am
index 2b6daa9d..5afbbe04 100644
--- a/glib/glibmm/Makefile.am
+++ b/glib/glibmm/Makefile.am
@@ -18,7 +18,7 @@
lib_LTLIBRARIES = libglibmm-@GLIBMM_API_VERSION@.la
include $(srcdir)/../src/filelist.am
-include $(srcdir)/filelist.am
+include $(srcdir)/filelist.gmake.am
files_built_cc = $(glibmm_files_built_cc)
files_built_h = $(glibmm_files_built_h)
diff --git a/glib/glibmm/filelist.am b/glib/glibmm/filelist.am
index 0218b171..30c86a98 100644
--- a/glib/glibmm/filelist.am
+++ b/glib/glibmm/filelist.am
@@ -2,7 +2,6 @@
glibmm_files_built_cc = $(glibmm_files_used_hg:.hg=.cc) $(glibmm_files_cc_m4:.m4=) wrap_init.cc
glibmm_files_built_h = $(glibmm_files_used_hg:.hg=.h) $(glibmm_files_h_m4:.m4=)
-glibmm_files_built_ph = $(patsubst %.hg,private/%_p.h,$(glibmm_files_used_hg))
glibmm_files_extra_cc = \
base64.cc \
diff --git a/glib/glibmm/filelist.gmake.am b/glib/glibmm/filelist.gmake.am
new file mode 100644
index 00000000..7e2a9cc2
--- /dev/null
+++ b/glib/glibmm/filelist.gmake.am
@@ -0,0 +1,5 @@
+## This file is part of glibmm.
+
+include $(srcdir)/filelist.am
+
+glibmm_files_built_ph = $(patsubst %.hg,private/%_p.h,$(glibmm_files_used_hg))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]