-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathLibraries.cs
36 lines (36 loc) · 1.86 KB
/
Libraries.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace NetVips.Interop
{
internal static class Libraries
{
#if UNITY_STANDALONE_LINUX || UNITY_EDITOR_LINUX
// We can safely define all these variables as `libvips.so.42` since
// DLLImport uses dlsym() on Linux. This function also searches for named
// symbols in the dependencies of the shared library. Therefore, we can
// provide libvips as a single shared library with all dependencies
// statically linked without breaking compatibility with shared builds
// (i.e. what is usually installed via package managers).
internal const string GLib = "libvips.so.42",
GObject = "libvips.so.42",
Vips = "libvips.so.42";
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
// We can safely define all these variables as `libvips.42.dylib` since
// DLLImport uses dlsym() on macOS. This function also searches for named
// symbols in the dependencies of the shared library. Therefore, we can
// provide libvips as a single shared library with all dependencies
// statically linked without breaking compatibility with shared builds
// (i.e. what is usually installed via package managers).
internal const string GLib = "libvips.42.dylib",
GObject = "libvips.42.dylib",
Vips = "libvips.42.dylib";
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
// We cannot define all these variables as `libvips-42.dll` without
// breaking compatibility with the shared Windows build. Therefore,
// we always ship at least 3 DLLs.
internal const string GLib = "libglib-2.0-0.dll",
GObject = "libgobject-2.0-0.dll",
Vips = "libvips-42.dll";
#else
#error "Unknown target platform"
#endif
}
}