[banshee] GStreamerSharp: fix build
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] GStreamerSharp: fix build
- Date: Wed, 30 Oct 2013 10:56:51 +0000 (UTC)
commit fb8d8f3e6680523f45b37d65297bfae89a2acae0
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Wed Oct 30 11:56:37 2013 +0100
GStreamerSharp: fix build
We have a DllImport checker in the build that makes sure that we're
mapping all P/Invokes to proper libraries via a .dll.config file,
like explained in:
http://www.mono-project.com/Interop_with_Native_Libraries#Library_Names
.../Banshee.GStreamerSharp.dll.config | 6 ++++--
.../Banshee.GStreamerSharp/VideoManager.cs | 4 ++--
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.dll.config
b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.dll.config
index 55c270c..2fdea6b 100644
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.dll.config
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp.dll.config
@@ -1,5 +1,7 @@
<configuration>
- <dllmap dll="libgdk-x11-2.0.so.0" target="libgdk-x11-2.0.so" os="!windows"/>
- <dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-win32-2.0-0.dll" os="windows"/>
+ <dllmap dll="libgdk-3-0.dll" target="libgdk-3.so.0" os="!windows"/>
+ <dllmap dll="libgdk-3-0.dll" target="libgdk-3-0.dll" os="windows"/>
+ <!-- FIXME: map to a .dylib in Mac? -->
+
<dllmap dll="libgstfft-0.10.dll" target="libgstfft-0.10.so"/>
</configuration>
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/VideoManager.cs
b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/VideoManager.cs
index b81e463..64cfb30 100644
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/VideoManager.cs
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/VideoManager.cs
@@ -259,8 +259,8 @@ namespace Banshee.GStreamerSharp
}
}
- //FIXME: map this, to allow running in MacOS?
- [DllImport ("libgdk-3.so.0") /* willfully unmapped */]
+
+ [DllImport ("libgdk-3-0.dll")]
private static extern IntPtr gdk_x11_window_get_xid (IntPtr drawable);
[DllImport ("libgdk-3-0.dll")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]