Skip to content

Commit 81c5528

Browse files
committed
Dynamically dispatch platform dependent library names
1 parent 2d11197 commit 81c5528

24 files changed

Lines changed: 1227 additions & 1051 deletions

Rubjerg.Graphviz/CGraphThing.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
using System.Linq;
33
using System.Collections.Generic;
44
using System.Diagnostics;
5-
using static Rubjerg.Graphviz.ForeignFunctionInterface;
5+
using static Rubjerg.Graphviz.FFI.GraphvizFFI;
66
using System.Globalization;
7+
using Rubjerg.Graphviz.FFI;
78

89
namespace Rubjerg.Graphviz;
910

Rubjerg.Graphviz/Constants.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

Rubjerg.Graphviz/Edge.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4-
using static Rubjerg.Graphviz.ForeignFunctionInterface;
4+
using static Rubjerg.Graphviz.FFI.GraphvizFFI;
55

66
namespace Rubjerg.Graphviz;
77

Rubjerg.Graphviz/FFI/Constants.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
namespace Rubjerg.Graphviz.FFI;
2+
3+
internal static class Constants
4+
{
5+
public const string GvcLibNameWindows = "gvc";
6+
public const string CGraphLibNameWindows = "cgraph";
7+
public const string XDotLibNameWindows = "xdot";
8+
9+
public const string GvcLibNameLinux = "libgvc.so.6";
10+
public const string CGraphLibNameLinux = "libcgraph.so.6";
11+
public const string XDotLibNameLinux = "libxdot.so.4";
12+
13+
public const string GraphvizWrapperLibName = "GraphvizWrapper";
14+
}

0 commit comments

Comments
 (0)