summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-01-13 15:41:03 -0500
committerRyan Lortie <desrt@desrt.ca>2013-01-13 22:59:40 -0500
commit068a119f7401efe68c0fdbfaea86c5e55c0ed7d5 (patch)
tree2246b1cdb6cc58fbf69a78f4f0e677757af91fac /gmodule
parent2e7669f5cc46927602108c328fbbeb846bd09218 (diff)
downloadglib-068a119f7401efe68c0fdbfaea86c5e55c0ed7d5.tar.gz
win32: build: stop using .def files
With visibility now under the control of __declspec(dllexport) we no longer need to build .def files or use them for building our various .dll files. .def files used to be installed (even though it is only really useful when creating the .dll or .lib file). Don't do that anymore either. The Makefiles still contain rules to create a .lib file for use with Visual Studio and these rules require .def files. There are special requirements to using these rules (like having installed and setup Microsoft tools for use during the build) and therefore the problem of creating a .def file for use with them is left open to anyone willing to make the effort. Many options are available depending on which toolchain is in use (dlltool, pexport, gendef, dumpbin.exe, just to name a few). If we can find a free tool for creating .lib files in the future, we should probably revisit this issue and add proper support back to our build system.
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/Makefile.am19
1 files changed, 2 insertions, 17 deletions
diff --git a/gmodule/Makefile.am b/gmodule/Makefile.am
index 5e08c1132..19737fa3f 100644
--- a/gmodule/Makefile.am
+++ b/gmodule/Makefile.am
@@ -7,9 +7,6 @@ AM_CPPFLAGS = \
@GLIB_DEBUG_FLAGS@ \
-DG_DISABLE_DEPRECATED
-gmodule.def: gmodule.symbols
- $(AM_V_GEN) (echo EXPORTS; $(CPP) -P - <$(srcdir)/gmodule.symbols | sed -e '/^$$/d' -e 's/^/ /') > $(builddir)/gmodule.def
-
EXTRA_DIST += \
makefile.msc.in \
gmoduleconf.h.in \
@@ -61,20 +58,8 @@ no_undefined = -no-undefined
endif
if OS_WIN32_AND_DLL_COMPILATION
-export_symbols = -export-symbols $(builddir)/gmodule.def
-gmodule_def = gmodule.def
-
gmodule_win32_res = gmodule-win32-res.o
gmodule_win32_res_ldflag = -Wl,$(gmodule_win32_res)
-
-install-def-file:
- $(INSTALL) $(builddir)/gmodule.def $(DESTDIR)$(libdir)/gmodule-2.0.def
-
-uninstall-def-file:
- -rm $(DESTDIR)$(libdir)/gmodule-2.0.def
-else
-install-def-file:
-uninstall-def-file:
endif
libgmodule_2_0_la_SOURCES = gmodule.c
@@ -111,9 +96,9 @@ dist-hook: $(BUILT_EXTRA_DIST)
cp $$d/$$f $(distdir) || exit 1; done
-install-data-local: install-ms-lib install-def-file
+install-data-local: install-ms-lib
-uninstall-local: uninstall-ms-lib uninstall-def-file
+uninstall-local: uninstall-ms-lib
if HAVE_GLIB_RUNTIME_LIBDIR
install-data-hook: