mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Avoid much of duplication in lists of source files
Don't keep the lists of source files for libglib, libgobject and libgio in the VS project files in addition to the canonical location, the corresponding Makefile.am files. Instead, generate the corresponding .vcproj files at make dist time using the C preprocessor, from template files called .vcprojin. We still list explicitly in the .vcprojin files some of the Windows-specific source files, and the sources files of gnulib and pcre.
This commit is contained in:
@@ -256,12 +256,21 @@ gobject-win32-res.o: gobject.rc
|
||||
gobject-2.0.lib: libgobject-2.0.la gobject.def
|
||||
lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgobject-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gobject.def -out:$@
|
||||
|
||||
dist-hook: $(BUILT_EXTRA_DIST)
|
||||
dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gobject.vcproj
|
||||
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 >$@
|
||||
|
||||
install-data-local: install-ms-lib install-def-file
|
||||
|
||||
uninstall-local: uninstall-ms-lib uninstall-def-file uninstall-gdb
|
||||
|
Reference in New Issue
Block a user