summaryrefslogtreecommitdiff
path: root/headers
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-10-05 12:01:37 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2015-10-05 15:09:25 +0800
commitfe157979911830e4758585854d3754158d386f2a (patch)
treee1ee25baa9f85312a8ba6e9c619b5d0b2b5d883e /headers
parent55bdb1901441595151c34523a8e6ac9ca51a1a0a (diff)
downloadgsettings-desktop-schemas-fe157979911830e4758585854d3754158d386f2a.tar.gz
build: Enable build/installation with Visual Studio
This adds a set of NMake Makefiles, along with some support files, is used to generate and compile the gschema.xml files from their templates, generate the enums.xml using glib-mkenums, and, optionally, generate the introspection files. https://bugzilla.gnome.org/show_bug.cgi?id=723734
Diffstat (limited to 'headers')
-rw-r--r--headers/Makefile.am19
1 files changed, 19 insertions, 0 deletions
diff --git a/headers/Makefile.am b/headers/Makefile.am
index 27264d5..530a488 100644
--- a/headers/Makefile.am
+++ b/headers/Makefile.am
@@ -22,6 +22,25 @@ typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelib_DATA)
+
+# -------------------------- Introspection MSVC Build Files ---------
+MSVC_INTROSPECT_GIRS = $(INTROSPECTION_GIRS)
+
+INTROSPECTION_INTERMEDIATE_ITEMS = \
+ $(top_builddir)/build/win32/GDesktopEnums-3.0.gir.msvc.introspect \
+ $(top_builddir)/build/win32/GDesktopEnums_3_0_gir_list
+
+GDesktopEnums_3_0_gir_MSVC_FILES = \
+ $(GDesktopEnums_3_0_gir_FILES)
+
+GDesktopEnums_3_0_gir_MSVC_SCANNERFLAGS = $(GDesktopEnums_3_0_gir_SCANNERFLAGS)
+
+GDesktopEnums_3_0_gir_MSVC_CFLAGS = -I..\\headers
+
+include $(top_srcdir)/build/Makefile.msvc-introspection
+
+dist-hook: $(INTROSPECTION_INTERMEDIATE_ITEMS)
+# --------------------------------------------------------------------
endif
-include $(top_srcdir)/git.mk