Cleanup and Enhance the MSVC Project Generation

Make use of the common autotools module that is used to generate the MSVC
project files from their respective templates so that the main build files
beccome cleaner, and enhance them in a way that the headers that should be
installed can be written to the property sheets during 'make dist', so that
the chances of missing headers for MSVC builds can be greatly reduced.

Also use this autotools module to fill in the projects for
glib-compile-schemas and glib-compile-resources.

https://bugzilla.gnome.org/show_bug.cgi?id=735429
This commit is contained in:
Chun-wei Fan
2015-09-03 15:19:48 +08:00
parent 700983c8c9
commit 041e77249a
24 changed files with 1032 additions and 175 deletions

View File

@@ -224,42 +224,24 @@ gobject.def: libgobject-2.0.la
gobject-2.0.lib: libgobject-2.0.la gobject.def
$(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgobject-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gobject.def -out:$@
dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gobject.vcproj ../build/win32/vs10/gobject.vcxproj ../build/win32/vs10/gobject.vcxproj.filters
# ------ MSVC Project File Generation ------
MSVCPROJS = gobject
gobject_FILES = $(libgobject_2_0_la_SOURCES)
gobject_EXCLUDES = dummy
gobject_HEADERS_DIR = $(libgobjectincludedir)
gobject_HEADERS_INST = $(gobject_public_h_sources)
gobject_HEADERS_EXCLUDES = dummy
include $(top_srcdir)/build/Makefile.msvcproj
dist-hook: $(BUILT_EXTRA_DIST) $(top_builddir)/build/win32/vs9/gobject.vcproj $(top_builddir)/build/win32/vs9/gobject.headers
files='$(BUILT_EXTRA_DIST)'; \
for f in $$files; do \
if test -f $$f; then d=.; else d=$(srcdir); fi; \
cp $$d/$$f $(distdir) || exit 1; done
../build/win32/vs9/gobject.vcproj: $(top_srcdir)/build/win32/vs9/gobject.vcprojin
for F in $(libgobject_2_0_la_SOURCES); do \
case $$F in \
*.c) echo ' <File RelativePath="..\..\..\gobject\'$$F'" />' \
;; \
esac; \
done >libgobject.sourcefiles
$(CPP) -P - <$(top_srcdir)/build/win32/vs9/gobject.vcprojin >$@
rm libgobject.sourcefiles
../build/win32/vs10/gobject.vcxproj: $(top_srcdir)/build/win32/vs10/gobject.vcxprojin
for F in $(libgobject_2_0_la_SOURCES); do \
case $$F in \
*.c) echo ' <ClCompile Include="..\..\..\gobject\'$$F'" />' \
;; \
esac; \
done >libgobject.vs10.sourcefiles
$(CPP) -P - <$(top_srcdir)/build/win32/vs10/gobject.vcxprojin >$@
rm libgobject.vs10.sourcefiles
../build/win32/vs10/gobject.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gobject.vcxproj.filtersin
for F in $(libgobject_2_0_la_SOURCES); do \
case $$F in \
*.c) echo ' <ClCompile Include="..\..\..\gobject\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
;; \
esac; \
done >libgobject.vs10.sourcefiles.filters
$(CPP) -P - <$(top_srcdir)/build/win32/vs10/gobject.vcxproj.filtersin >$@
rm libgobject.vs10.sourcefiles.filters
install-data-local: install-ms-lib
uninstall-local: uninstall-ms-lib uninstall-gdb