mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
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:
committed by
Tor Lillqvist
parent
6965703ad2
commit
336cc8436b
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user