Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
2008-12-15 Miguel de Icaza <miguel@novell.com>
Browse files Browse the repository at this point in the history
	* configure.in: Detect the proper LIB_PREFIX and LIB_SUFIX to fix
	the crasher for gsharp when trying to Plot on other systems.

svn path=/trunk/mono-tools/; revision=136051
  • Loading branch information
migueldeicaza committed Jun 12, 2009
1 parent 4e83ab5 commit 4874737
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2008-12-15 Miguel de Icaza <miguel@novell.com>

* configure.in: Detect the proper LIB_PREFIX and LIB_SUFIX to fix
the crasher for gsharp when trying to Plot on other systems.

2009-06-05 Michael Hutchinson <mhutchinson@novell.com>

* configure.in: Fix build.
Expand Down
11 changes: 11 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ if test -z "$CONFIG_REQUESTED" ; then
enable_debug=yes
fi

if test `uname -s` = "Darwin"; then
LIB_PREFIX=
LIB_SUFFIX=.dylib
else
LIB_PREFIX=.so
LIB_SUFFIX=
fi
AC_SUBST(LIB_PREFIX)
AC_SUBST(LIB_SUFFIX)

dnl
dnl I hate PKG_CONFIG_MODULES, that is for the weak
dnl
Expand Down Expand Up @@ -159,6 +169,7 @@ AC_OUTPUT([
Makefile
gsharp/Makefile
gsharp/gsharp
gsharp/gsharp.exe.config
gui-compare/Makefile
gui-compare/gui-compare
mperfmon/Makefile
Expand Down
4 changes: 2 additions & 2 deletions gsharp/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
gsharpdir = $(prefix)/lib/gsharp
bin_SCRIPTS = gsharp

gsharp_DATA = gsharp.exe
gsharp_DATA = gsharp.exe gsharp.exe.config

desktopdir = $(datadir)/applications
desktop_DATA = gsharp.desktop
Expand All @@ -26,7 +26,7 @@ gsharp_sources = \
$(srcdir)/gtk-gui/Mono.CSharp.Gui.DescribeType.cs \
$(srcdir)/outline.cs

EXTRA_DIST = $(gsharp_sources) gsharp.in $(desktop_DATA).in close.png
EXTRA_DIST = $(gsharp_sources) gsharp.in $(desktop_DATA).in close.png gsharp.exe.config.in
CLEANFILES = $(gsharp_DATA) $(gsharp_DATA).mdb $(desktop_DATA)

gsharp.exe: $(gsharp_sources)
Expand Down
4 changes: 2 additions & 2 deletions gsharp/SysDrawing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ protected override bool OnExposeEvent (Gdk.EventExpose args)

public class GraphicsHelper {

[DllImport("libgdk-x11-2.0")]
[DllImport("libgdk-win32-2.0-0.dll")]
internal static extern IntPtr gdk_x11_drawable_get_xdisplay (IntPtr raw);

[DllImport("libgdk-x11-2.0")]
[DllImport("libgdk-win32-2.0-0.dll")]
internal static extern IntPtr gdk_x11_drawable_get_xid (IntPtr raw);

public static System.Drawing.Graphics FromDrawable (Gdk.Drawable drawable)
Expand Down
3 changes: 3 additions & 0 deletions gsharp/gsharp.exe.config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<configuration>
<dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-x11-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
</configuration>

0 comments on commit 4874737

Please sign in to comment.