]> O.S.I.I.S - jp/crow.git/commitdiff
remove GtkSharp dep that comes with mono, add .config to point to
authorjpbruyere <jp.bruyere@hotmail.com>
Wed, 3 Aug 2016 09:54:27 +0000 (11:54 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Wed, 3 Aug 2016 09:54:27 +0000 (11:54 +0200)
correct lib files depending on os
modifié :         Crow.OpenTK.nuspec
modifié :         Crow.csproj
nouveau fichier : Crow.dll.config
modifié :         Tests/Tests.csproj

Crow.OpenTK.nuspec
Crow.csproj
Crow.dll.config [new file with mode: 0644]
Tests/Tests.csproj

index ba664df2ae3d9cb4e679365858564ecd0594f9b0..24eeb31caaac339b77e3c603031cdfa3ec3bcc65 100644 (file)
@@ -2,10 +2,10 @@
 <package >
        <metadata>
                <id>Crow.OpenTK</id>
-               <version>0.4.5</version>
+               <version>0.4.6</version>
                <title>C# Rapid Open Widget Toolkit</title>
                <authors>JP Bruyere</authors>
-               <owners>Grand Tetras Software Team</owners>
+               <owners>Grand Tetras Software</owners>
                <licenseUrl>https://www.gnu.org/licenses/gpl-3.0.html</licenseUrl>
                <projectUrl>https://jpbruyere.github.io/Crow/</projectUrl>
                <iconUrl>https://jpbruyere.github.io/Crow/images/crow.png</iconUrl>
@@ -26,7 +26,6 @@ For more information, please visit https://jpbruyere.github.io/Crow/.
                <copyright>Copyright 2016</copyright>
                <dependencies>
                        <dependency id="OpenTK.Next" version="1.2" />
-                       <dependency id="GtkSharp" version="3.1" />
                </dependencies>
         <tags>Crow OpenTK OpenGL Widget Interface GUI C# .Net Mono</tags>
         <references>
@@ -37,6 +36,9 @@ For more information, please visit https://jpbruyere.github.io/Crow/.
             <frameworkAssembly assemblyName="System.Drawing" />
             <frameworkAssembly assemblyName="System.Xml" />
         </frameworkAssemblies>
+               <contentFiles>
+                       <files include="build/Release/Crow.dll.config" copyToOutput="true" />
+               </contentFiles>
        </metadata>
        <files>
                <file src="Tests/OpenTKGameWindow.cs" target="content" />
index 1710e316be9aed04686673dd4e023f396dd7c475..ad8ce32f97bbb2d61f2cd7d039cef17292e4d02c 100644 (file)
     <Reference Include="System.Xml" />
     <Reference Include="Microsoft.CSharp" />
     <Reference Include="System.Drawing" />
-    <Reference Include="cairo-sharp">
-      <HintPath>$(SolutionDir)packages\GtkSharp.3.1.3\lib\net45\cairo-sharp.dll</HintPath>
-    </Reference>
-    <Reference Include="gdk-sharp">
-      <HintPath>$(SolutionDir)packages\GtkSharp.3.1.3\lib\net45\gdk-sharp.dll</HintPath>
-    </Reference>
-    <Reference Include="gio-sharp">
-      <HintPath>$(SolutionDir)packages\GtkSharp.3.1.3\lib\net45\gio-sharp.dll</HintPath>
-    </Reference>
-    <Reference Include="glib-sharp">
-      <HintPath>$(SolutionDir)packages\GtkSharp.3.1.3\lib\net45\glib-sharp.dll</HintPath>
-    </Reference>
+       <Reference Include="cairo-sharp"/>
+       <Reference Include="gdk-sharp"/>
+       <Reference Include="gio-sharp"/>
+       <Reference Include="glib-sharp"/>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-  <Import Project="$(SolutionDir)packages\GtkSharp.3.1.3\build\net45\GtkSharp.targets" Condition="Exists('$(SolutionDir)packages\GtkSharp.3.1.3\build\net45\GtkSharp.targets')" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">
   </ItemGroup>
   <ItemGroup>
     <None Include="README.md" />
+    <None Include="Crow.dll.config">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
   </ItemGroup>
 </Project>
diff --git a/Crow.dll.config b/Crow.dll.config
new file mode 100644 (file)
index 0000000..485a949
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <dllmap os="!windows,osx" dll="libgio-2.0-0.dll" target="libgio-2.0.so.0"/>
+  <dllmap os="!windows,osx" dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>
+  <dllmap os="!windows,osx" dll="libgobject-2.0-0.dll" target="libgobject-2.0.so.0"/>
+  <dllmap os="!windows,osx" dll="libgdk-3-0.dll" target="libgdk-3.so.0"/>
+  <dllmap os="!windows,osx" dll="libgdk_pixbuf-2.0-0.dll" target="libgdk_pixbuf-2.0.so.0"/>
+
+  
+  <dllmap os="windows" dll="rsvg-2" target="librsvg-2-2.dll"/>
+  
+  <dllmap os="osx" dll="libgio-2.0-0.dll" target="libgio-2.0.0.dylib"/>
+  <dllmap os="osx" dll="libgio-2.0-0.dll" target="libgio-2.0.0.dylib"/>
+  <dllmap os="osx" dll="libglib-2.0-0.dll" target="libglib-2.0.0.dylib"/>
+  <dllmap os="osx" dll="libgobject-2.0-0.dll" target="libgobject-2.0.0.dylib"/>
+  <dllmap os="osx" dll="libgdk-3.0.dll" target="libgdk-quartz-3.0.0.dylib"/>
+  <dllmap os="osx" dll="libgdk_pixbuf-2.0-0.dll" target="libgdk_pixbuf-2.0.0.dylib"/>
+</configuration>
index 03b2b28124014d40d4444fee30b3a30b8081fa00..7e32a7d5cd13b839065dc970202d9c60b6324a59 100644 (file)
     <Reference Include="System.Data" />
     <Reference Include="System.Xml" />
     <Reference Include="System.Drawing" />
-    <Reference Include="cairo-sharp">
-      <HintPath>$(SolutionDir)packages\GtkSharp.3.1.3\lib\net45\cairo-sharp.dll</HintPath>
-    </Reference>
-    <Reference Include="gdk-sharp">
-      <HintPath>$(SolutionDir)packages\GtkSharp.3.1.3\lib\net45\gdk-sharp.dll</HintPath>
-    </Reference>
-    <Reference Include="gio-sharp">
-      <HintPath>$(SolutionDir)packages\GtkSharp.3.1.3\lib\net45\gio-sharp.dll</HintPath>
-    </Reference>
-    <Reference Include="glib-sharp">
-      <HintPath>$(SolutionDir)packages\GtkSharp.3.1.3\lib\net45\glib-sharp.dll</HintPath>
-    </Reference>
-    <Reference Include="OpenTK">
+       <Reference Include="cairo-sharp"/>
+       <Reference Include="gdk-sharp"/>
+       <Reference Include="gio-sharp"/>
+       <Reference Include="glib-sharp"/>
+       <Reference Include="OpenTK">
       <HintPath>$(SolutionDir)packages\OpenTK.Next.1.2.2336.6514-pre\lib\net20\OpenTK.dll</HintPath>
     </Reference>
   </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-  <Import Project="$(SolutionDir)packages\GtkSharp.3.1.3\build\net45\GtkSharp.targets" Condition="Exists('$(SolutionDir)packages\GtkSharp.3.1.3\build\net45\GtkSharp.targets')" />
   <ItemGroup>
     <Compile Include="Interfaces\testBorder.goml.cs" />
     <Compile Include="BasicTests.cs" />