summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2011-05-25 11:38:20 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2011-09-16 11:10:28 +0800
commitd1b609184e1bab1c0fd01d8457fef68fc99e7658 (patch)
treef932f1bffc150e0da26ad102dbd27b4bf369ed96
parent2c3683a35bb6212b4ba2e1f30bdbed38f076ef42 (diff)
downloadpango-d1b609184e1bab1c0fd01d8457fef68fc99e7658.tar.gz
bgo# 650456: Visual C++ 2010 support-autotools
Update the autotools files for: -Creation of the full VS 2010 project/filter files for pango, pangocairo and pangoft2 from the templates during "make dist", so that the source file list can be made up-to-date with each release-this will simplify maintenance, as this is what is done for the VS 2008 project files. -Dist the VS 2010 files (with the templates) and related items
-rw-r--r--build/win32/Makefile.am2
-rw-r--r--build/win32/vs10/Makefile.am24
-rw-r--r--configure.in1
-rw-r--r--pango/Makefile.am123
-rw-r--r--pango/mini-fribidi/Makefile.am20
-rw-r--r--pango/opentype/Makefile.am20
6 files changed, 184 insertions, 6 deletions
diff --git a/build/win32/Makefile.am b/build/win32/Makefile.am
index b75548b1..5aea65e6 100644
--- a/build/win32/Makefile.am
+++ b/build/win32/Makefile.am
@@ -1,3 +1,3 @@
-SUBDIRS = vs9
+SUBDIRS = vs9 vs10
EXTRA_DIST = unistd.h
diff --git a/build/win32/vs10/Makefile.am b/build/win32/vs10/Makefile.am
new file mode 100644
index 00000000..60aa24b7
--- /dev/null
+++ b/build/win32/vs10/Makefile.am
@@ -0,0 +1,24 @@
+EXTRA_DIST = \
+ pango.sln \
+ pango_fc.sln \
+ pango.props \
+ pango.vcxproj \
+ pango.vcxproj.filters \
+ pango.vcxprojin \
+ pango.vcxproj.filtersin \
+ pangoft2.vcxproj \
+ pangoft2.vcxproj.filters \
+ pangoft2.vcxprojin \
+ pangoft2.vcxproj.filtersin \
+ pangowin32.vcxproj \
+ pangowin32.vcxproj.filters \
+ pangocairo.vcxproj \
+ pangocairo.vcxproj.filters \
+ pangocairo.vcxprojin \
+ pangocairo.vcxproj.filtersin \
+ pangocairo_fc.vcxproj \
+ pangocairo_fc.vcxproj.filters \
+ pangocairo_fc.vcxprojin \
+ pangocairo_fc.vcxproj.filtersin \
+ install.vcxproj \
+ README.txt
diff --git a/configure.in b/configure.in
index f29c5dfc..d48e3f08 100644
--- a/configure.in
+++ b/configure.in
@@ -1038,6 +1038,7 @@ tests/Makefile
build/Makefile
build/win32/Makefile
build/win32/vs9/Makefile
+build/win32/vs10/Makefile
pango.pc
pangox.pc
pangowin32.pc
diff --git a/pango/Makefile.am b/pango/Makefile.am
index c4252852..319f4595 100644
--- a/pango/Makefile.am
+++ b/pango/Makefile.am
@@ -671,9 +671,17 @@ TESTS = check.defs
dist-hook: \
../build/win32/vs9/pango.vcproj \
../build/win32/vs9/pangoft2.vcproj \
- ../build/win32/vs9/pangocairo.vcproj
-
-# pangowin32.vcproj is not automatically built, it is not being changed
+ ../build/win32/vs9/pangocairo.vcproj \
+ ../build/win32/vs10/pango.vcxproj \
+ ../build/win32/vs10/pango.vcxproj.filters \
+ ../build/win32/vs10/pangocairo.vcxproj \
+ ../build/win32/vs10/pangocairo.vcxproj.filters \
+ ../build/win32/vs10/pangocairo_fc.vcxproj \
+ ../build/win32/vs10/pangocairo_fc.vcxproj.filters \
+ ../build/win32/vs10/pangoft2.vcxproj \
+ ../build/win32/vs10/pangoft2.vcxproj.filters
+
+# pangowin32.vcproj, pangowin32.vcxproj and pangowin32.vcxproj.filters are not automatically built, it is not being changed
../build/win32/vs9/pango.vcproj: $(top_srcdir)/build/win32/vs9/pango.vcprojin mini-fribidi/libmini-fribidi.sourcefiles
-rm $@
@@ -685,6 +693,26 @@ dist-hook: \
done >libpango.sourcefiles
$(CPP) -P - <$(top_srcdir)/build/win32/vs9/pango.vcprojin >$@
+../build/win32/vs10/pango.vcxproj: $(top_srcdir)/build/win32/vs10/pango.vcxprojin mini-fribidi/libmini-fribidi.vs10.sourcefiles
+ -rm $@
+ for F in $(libpango_1_0_la_SOURCES); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\'$$F'" />' \
+ ;; \
+ esac; \
+ done >libpango.vs10.sourcefiles
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/pango.vcxprojin >$@
+
+../build/win32/vs10/pango.vcxproj.filters: $(top_srcdir)/build/win32/vs10/pango.vcxproj.filtersin mini-fribidi/libmini-fribidi.vs10.sourcefiles.filters
+ -rm $@
+ for F in $(libpango_1_0_la_SOURCES); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
+ ;; \
+ esac; \
+ done >libpango.vs10.sourcefiles.filters
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/pango.vcxproj.filtersin >$@
+
../build/win32/vs9/pangoft2.vcproj: $(top_srcdir)/build/win32/vs9/pangoft2.vcprojin opentype/libharfbuzz.sourcefiles
-rm $@
for F in $(libpangoft2_1_0_la_SOURCES); do \
@@ -695,6 +723,26 @@ dist-hook: \
done >libpangoft2.sourcefiles
$(CPP) -P - <$(top_srcdir)/build/win32/vs9/pangoft2.vcprojin >$@
+../build/win32/vs10/pangoft2.vcxproj: $(top_srcdir)/build/win32/vs10/pangoft2.vcxprojin opentype/libharfbuzz.vs10.sourcefiles
+ -rm $@
+ for F in $(libpangoft2_1_0_la_SOURCES); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\'$$F'" />' \
+ ;; \
+ esac; \
+ done >libpangoft2.vs10.sourcefiles
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/pangoft2.vcxprojin >$@
+
+../build/win32/vs10/pangoft2.vcxproj.filters: $(top_srcdir)/build/win32/vs10/pangoft2.vcxproj.filtersin opentype/libharfbuzz.vs10.sourcefiles.filters
+ -rm $@
+ for F in $(libpangoft2_1_0_la_SOURCES); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
+ ;; \
+ esac; \
+ done >libpangoft2.vs10.sourcefiles.filters
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/pangoft2.vcxproj.filtersin >$@
+
../build/win32/vs9/pangocairo.vcproj: $(top_srcdir)/build/win32/vs9/pangocairo.vcprojin
# Backend-specific sources for the libpangocairo DLL are explicitly
# listed in the vcprojin file
@@ -707,4 +755,73 @@ dist-hook: \
done >libpangocairo.sourcefiles
$(CPP) -P - <$(top_srcdir)/build/win32/vs9/pangocairo.vcprojin >$@
+../build/win32/vs10/pangocairo.vcxproj: $(top_srcdir)/build/win32/vs10/pangocairo.vcxprojin
+# Backend-specific sources for the libpangocairo DLL are explicitly
+# listed in the vcxprojin file
+# I know it does not sound nice to have 2 pangocairo projects/filters sets due to FontConfig usage (or not), but VS2010 forces me to do that...
+ -rm $@
+ for F in $(pangocairo_core_sources); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\'$$F'" />' \
+ ;; \
+ esac; \
+ done >libpangocairo.vs10.sourcefiles
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/pangocairo.vcxprojin >$@
+
+../build/win32/vs10/pangocairo.vcxproj.filters: $(top_srcdir)/build/win32/vs10/pangocairo.vcxproj.filtersin
+# Backend-specific sources for the libpangocairo DLL are explicitly
+# listed in the vcxproj.filtersin file
+ -rm $@
+ for F in $(pangocairo_core_sources); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
+ ;; \
+ esac; \
+ done >libpangocairo.vs10.sourcefiles.filters
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/pangocairo.vcxproj.filtersin >$@
+
+../build/win32/vs10/pangocairo_fc.vcxproj: $(top_srcdir)/build/win32/vs10/pangocairo_fc.vcxprojin
+# Backend-specific sources for the libpangocairo DLL are explicitly
+# listed in the vcxprojin file
+ -rm $@
+ for F in $(pangocairo_core_sources); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\'$$F'" />' \
+ ;; \
+ esac; \
+ done >libpangocairo.vs10.sourcefiles
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/pangocairo_fc.vcxprojin >$@
+
+../build/win32/vs10/pangocairo_fc.vcxproj.filters: $(top_srcdir)/build/win32/vs10/pangocairo_fc.vcxproj.filtersin
+# Backend-specific sources for the libpangocairo DLL are explicitly
+# listed in the vcxproj.filtersin file
+ -rm $@
+ for F in $(pangocairo_core_sources); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
+ ;; \
+ esac; \
+ done >libpangocairo.vs10.sourcefiles.filters
+ $(CPP) -P - <$(top_srcdir)/build/win32/vs10/pangocairo_fc.vcxproj.filtersin >$@
+
+DISTCLEANFILES += \
+ ../build/win32/vs9/pango.vcproj \
+ ../build/win32/vs9/pangoft2.vcproj \
+ ../build/win32/vs9/pangocairo.vcproj \
+ ../build/win32/vs10/pango.vcxproj \
+ ../build/win32/vs10/pango.vcxproj.filters \
+ ../build/win32/vs10/pangocairo.vcxproj \
+ ../build/win32/vs10/pangocairo.vcxproj.filters \
+ ../build/win32/vs10/pangocairo_fc.vcxproj \
+ ../build/win32/vs10/pangocairo_fc.vcxproj.filters \
+ ../build/win32/vs10/pangoft2.vcxproj \
+ ../build/win32/vs10/pangoft2.vcxproj.filters \
+ libpangocairo.vs10.sourcefiles.filters \
+ libpangocairo.vs10.sourcefiles \
+ libpangoft2.vs10.sourcefiles.filters \
+ libpangoft2.vs10.sourcefiles \
+ libpango.vs10.sourcefiles \
+ libpango.vs10.sourcefiles
+
+
-include $(top_srcdir)/git.mk
diff --git a/pango/mini-fribidi/Makefile.am b/pango/mini-fribidi/Makefile.am
index a0baa6b0..c73ccfb5 100644
--- a/pango/mini-fribidi/Makefile.am
+++ b/pango/mini-fribidi/Makefile.am
@@ -30,7 +30,7 @@ EXTRA_DIST = \
fribidi_types.i
-dist-hook: libmini-fribidi.sourcefiles
+dist-hook: libmini-fribidi.sourcefiles libmini-fribidi.vs10.sourcefiles libmini-fribidi.vs10.sourcefiles.filters
libmini-fribidi.sourcefiles: Makefile
for F in $(libmini_fribidi_la_SOURCES); do \
@@ -40,4 +40,22 @@ libmini-fribidi.sourcefiles: Makefile
esac; \
done >libmini-fribidi.sourcefiles
+libmini-fribidi.vs10.sourcefiles: Makefile
+ for F in $(libmini_fribidi_la_SOURCES); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\mini-fribidi\'$$F'" />' \
+ ;; \
+ esac; \
+ done >libmini-fribidi.vs10.sourcefiles
+
+libmini-fribidi.vs10.sourcefiles.filters: Makefile
+ for F in $(libmini_fribidi_la_SOURCES); do \
+ case $$F in \
+ *.c) echo ' <ClCompile Include="..\..\..\pango\mini-fribidi\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
+ ;; \
+ esac; \
+ done >libmini-fribidi.vs10.sourcefiles.filters
+
+DISTCLEANFILES = libmini-fribidi.sourcefiles libmini-fribidi.vs10.sourcefiles libmini-fribidi.vs10.sourcefiles.filters
+
-include $(top_srcdir)/git.mk
diff --git a/pango/opentype/Makefile.am b/pango/opentype/Makefile.am
index 32330fbe..7a051d12 100644
--- a/pango/opentype/Makefile.am
+++ b/pango/opentype/Makefile.am
@@ -56,7 +56,7 @@ main_LDADD = libharfbuzz.la $(GLIB_LIBS)
EXTRA_DIST = README COPYING
-dist-hook: libharfbuzz.sourcefiles
+dist-hook: libharfbuzz.sourcefiles libharfbuzz.vs10.sourcefiles libharfbuzz.vs10.sourcefiles.filters
libharfbuzz.sourcefiles: Makefile
for F in $(libharfbuzz_la_SOURCES); do \
@@ -66,4 +66,22 @@ libharfbuzz.sourcefiles: Makefile
esac; \
done >libharfbuzz.sourcefiles
+libharfbuzz.vs10.sourcefiles: Makefile
+ for F in $(libharfbuzz_la_SOURCES); do \
+ case $$F in \
+ *.c|*.cc) echo ' <ClCompile Include="..\..\..\pango\opentype\'$$F'" />' \
+ ;; \
+ esac; \
+ done >libharfbuzz.vs10.sourcefiles
+
+libharfbuzz.vs10.sourcefiles.filters: Makefile
+ for F in $(libharfbuzz_la_SOURCES); do \
+ case $$F in \
+ *.c|*.cc) echo ' <ClCompile Include="..\..\..\pango\opentype\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
+ ;; \
+ esac; \
+ done >libharfbuzz.vs10.sourcefiles.filters
+
+DISTCLEANFILES = libharfbuzz.sourcefiles libharfbuzz.vs10.sourcefiles libharfbuzz.vs10.sourcefiles.filters
+
-include $(top_srcdir)/git.mk