Put a version info resource also in the gio DLL

Also, distribute gio/gio.rc(.in).
This commit is contained in:
Tor Lillqvist
2010-02-04 00:37:13 +02:00
parent 154a5314be
commit 3f3c163aa2
3 changed files with 19 additions and 2 deletions

View File

@@ -308,6 +308,9 @@ if OS_WIN32_AND_DLL_COMPILATION
export_symbols = -export-symbols gio.def
gio_def = gio.def
gio_win32_res = gio-win32-res.o
gio_win32_res_ldflag = -Wl,$(gio_win32_res)
install-def-file:
$(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
@@ -326,10 +329,14 @@ install-data-local: install-ms-lib install-def-file
uninstall-local: uninstall-ms-lib uninstall-def-file
libgio_2_0_la_LDFLAGS = \
$(gio_win32_res_ldflag) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-export-dynamic $(no_undefined) $(export_symbols)
libgio_2_0_la_DEPENDENCIES = $(gio_def) $(platform_deps)
libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
gio-win32-res.o: gio.rc
$(WINDRES) gio.rc $@
gio_headers = \
gappinfo.h \
@@ -429,8 +436,12 @@ EXTRA_DIST += \
makegioalias.pl \
abicheck.sh \
pltcheck.sh \
gio.rc.in \
$(NULL)
BUILT_EXTRA_DIST = \
gio.rc
CLEANFILES = \
$(marshal_sources) \
$(NULL)
@@ -457,6 +468,11 @@ gio_querymodules_LDADD = \
libgio-2.0.la \
$(NULL)
dist-hook: $(BUILT_EXTRA_DIST)
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
if HAVE_GLIB_RUNTIME_LIBDIR
install-data-hook: