summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-09-04 17:38:24 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2016-04-13 20:55:09 +0800
commite89c467538b89f1c9a4c29ec6e5d703279ff845c (patch)
treefcb5f1e6080455361be9d11450351fbbf06e5fe6 /pango
parent96129ef52784da1dc2801d346ae84c888f70df5e (diff)
downloadpango-e89c467538b89f1c9a4c29ec6e5d703279ff845c.tar.gz
MSVC Builds: Use Autotools Module for Introspection
This uses the newly-added autotools module so that the file list for introspection using Visual Studio is now generated during 'make dist', along with the g-ir-scanner command line to generate the .gir files and the compilation of the .typelib files. This would help to simplify maintenance of the introspection builds in Visual Studio, which is done using NMake. https://bugzilla.gnome.org/show_bug.cgi?id=764984
Diffstat (limited to 'pango')
-rw-r--r--pango/Makefile.am47
1 files changed, 46 insertions, 1 deletions
diff --git a/pango/Makefile.am b/pango/Makefile.am
index 832df3fa..eca0d8b2 100644
--- a/pango/Makefile.am
+++ b/pango/Makefile.am
@@ -495,12 +495,57 @@ pangocairo_EXCLUDES = dummy
include $(top_srcdir)/build/Makefile.msvcproj
+if HAVE_INTROSPECTION
+# Introspection Items for MSVC
+MSVC_INTROSPECT_GIRS = Pango-1.0.gir PangoCairo-1.0.gir
+
+BASE_MSVC_GIR_CFLAGS = \
+ -DG_LOG_DOMAIN=\"Pango\" \
+ -DPANGO_ENABLE_BACKEND \
+ -DPANGO_ENABLE_ENGINE
+
+INTROSPECTION_INTERMEDIATE_ITEMS = \
+ $(top_builddir)/build/win32/Pango-1.0.gir.msvc.introspect \
+ $(top_builddir)/build/win32/Pango_1_0_gir_list \
+ $(top_builddir)/build/win32/PangoCairo-1.0.gir.msvc.introspect \
+ $(top_builddir)/build/win32/PangoCairo_1_0_gir_list
+
+Pango_1_0_gir_MSVC_FILES = $(Pango_1_0_gir_FILES)
+Pango_1_0_gir_MSVC_PACKAGES = gobject-2.0 cairo glib-2.0
+Pango_1_0_gir_MSVC_EXPORT_PACKAGES = $(Pango_1_0_gir_EXPORT_PACKAGES)
+Pango_1_0_gir_MSVC_INCLUDE_GIRS = $(Pango_1_0_gir_INCLUDES)
+Pango_1_0_gir_MSVC_LIBS = pango-1.0
+Pango_1_0_gir_MSVC_CFLAGS = -I../.. $(BASE_MSVC_GIR_CFLAGS)
+Pango_1_0_gir_MSVC_SCANNERFLAGS = $(Pango_1_0_gir_SCANNERFLAGS)
+
+pangocairo_msvc_introspection_files = \
+ $(pangocairo_core_sources) \
+ pangocairo-win32font.c \
+ pangocairo-win32fontmap.c \
+ pangocairo-win32.h \
+ $(pangocairo_headers)
+
+PangoCairo_1_0_gir_MSVC_FILES = $(filter-out %-private.h, $(pangocairo_msvc_introspection_files))
+PangoCairo_1_0_gir_MSVC_GIR_DEPS = Pango-1.0.gir
+PangoCairo_1_0_gir_MSVC_PACKAGES = $(PangoCairo_1_0_gir_PACKAGES)
+PangoCairo_1_0_gir_MSVC_EXPORT_PACKAGES = $(PangoCairo_1_0_gir_EXPORT_PACKAGES)
+PangoCairo_1_0_gir_MSVC_INCLUDE_GIRS = $(PangoCairo_1_0_gir_INCLUDES) win32-1.0
+PangoCairo_1_0_gir_MSVC_LIBS = $(Pango_1_0_gir_MSVC_LIBS) pangocairo-1.0
+PangoCairo_1_0_gir_MSVC_CFLAGS = $(Pango_1_0_gir_MSVC_CFLAGS)
+PangoCairo_1_0_gir_MSVC_SCANNERFLAGS = --include-uninstalled=./Pango-1.0.gir --c-include "pango/pangocairo.h"
+
+include $(top_srcdir)/build/Makefile.msvc-introspection
+else
+INTROSPECTION_INTERMEDIATE_ITEMS =
+endif
+
dist-hook: \
$(top_builddir)/build/win32/vs9/pango.vcproj \
$(top_builddir)/build/win32/vs9/pangowin32.vcproj \
$(top_builddir)/build/win32/vs9/pangoft2.vcproj \
$(top_builddir)/build/win32/vs9/pangocairo.vcproj \
- $(top_builddir)/build/win32/vs9/pango.headers
+ $(top_builddir)/build/win32/vs9/pango.headers \
+ $(INTROSPECTION_INTERMEDIATE_ITEMS)
TESTS = check.defs