configure.in More work on enabling static building on Windows. When

2008-04-21  Tor Lillqvist  <tml@novell.com>

	* configure.in
	* */Makefile.am: More work on enabling static building on
	Windows. When building statically: Also define
	GOBJECT_STATIC_COMPILATION in glibconfig.h so that also the
	variables in gparamspecs.h get declared without any
	dllimport/dllexport decorations. Don't install .def files which
	obviously have no meaning for static libraries. Don't create MS
	import libraries. Don't do any resource object files.


svn path=/trunk/; revision=6866
This commit is contained in:
Tor Lillqvist
2008-04-21 08:38:36 +00:00
committed by Tor Lillqvist
parent 6965703ad2
commit 336cc8436b
7 changed files with 73 additions and 61 deletions

View File

@@ -8,18 +8,20 @@ if OS_UNIX
SUBDIRS += xdgmime
endif
if OS_WIN32_AND_DLL_COMPILATION
if MS_LIB_AVAILABLE
noinst_DATA = gio-2.0.lib
install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
endif
endif
install-ms-lib:
$(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
$(install_ms_lib_cmd)
uninstall-ms-lib:
-rm $(DESTDIR)$(libdir)/gio-2.0.lib
else
install-ms-lib:
uninstall-ms-lib:
endif
$(uninstall_ms_lib_cmd)
gio.def: gio.symbols
(echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gio.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g' | sort) > gio.def.tmp && \
@@ -228,7 +230,7 @@ if PLATFORM_WIN32
no_undefined = -no-undefined
endif
if OS_WIN32
if OS_WIN32_AND_DLL_COMPILATION
export_symbols = -export-symbols gio.def
gio_def = gio.def