[dia] mingw: libdia as shared library



commit 1bc0d629a10a5fba160841a861a365918de51347
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date:   Sun Aug 29 16:27:24 2010 +0200

    mingw: libdia as shared library
    
    [PATCH 2/6] Build libdia.dll as shared library with mingw and autotools
    
    Signed-off-by: Hans Breuer <hans breuer org>

 lib/Makefile.am |   16 ++++++++++++----
 lib/arrows.h    |    1 +
 2 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 424735d..16f63bb 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -29,9 +29,13 @@ stdprop_files = \
 	prop_sdarray.c \
 	prop_sdarray.h \
 	propdialogs.c  \
-	propregistry.c 
+	propregistry.c
 
-pkglib_LTLIBRARIES =     libdia.la
+if OS_WIN32
+lib_LTLIBRARIES = libdia.la
+else
+pkglib_LTLIBRARIES = libdia.la
+endif
 
 ICON_PNG_PAIRS= \
 	dia_broken_icon $(srcdir)/pixmaps/broken.png \
@@ -178,13 +182,17 @@ libdia_la_SOURCES =  \
 #		charconv.c \
 #		charconv.h 
 #		render.h \
-#		render.c 
+#		render.c
 
-libdia_la_LDFLAGS = -avoid-version --export-dynamic
+libdia_la_LDFLAGS = -avoid-version --export-dynamic $(NO_UNDEFINED)
+if OS_WIN32
+libdia_la_LDFLAGS += -export-symbols $(srcdir)/libdia.def
+endif
 libdia_la_LIBADD = $(GTK_LIBS)
 
 AM_CPPFLAGS = \
 	$(LIBART_CFLAGS) \
+	-DLIBDIA_COMPILATION \
 	-DLIBDIR=\"$(libdir)\" \
 	-DDATADIR=\"$(pkgdatadir)\"
 
diff --git a/lib/arrows.h b/lib/arrows.h
index 64a20af..2e820fb 100644
--- a/lib/arrows.h
+++ b/lib/arrows.h
@@ -19,6 +19,7 @@
 #define ARROWS_H
 
 #include "diatypes.h"
+#include "diavar.h"
 #include "geometry.h"
 #include "color.h"
 #include "dia_xml.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]