зеркало из https://github.com/mono/SkiaSharp.git
24 строки
564 B
C#
24 строки
564 B
C#
#nullable disable
|
|
|
|
using System;
|
|
|
|
namespace SkiaSharp
|
|
{
|
|
internal partial class SkottieApi
|
|
{
|
|
#if __IOS__ || __TVOS__
|
|
private const string SKIA = "@rpath/libSkiaSharp.framework/libSkiaSharp";
|
|
#else
|
|
private const string SKIA = "libSkiaSharp";
|
|
#endif
|
|
|
|
#if USE_DELEGATES
|
|
private static readonly Lazy<IntPtr> libSkiaSharpHandle =
|
|
new Lazy<IntPtr> (() => LibraryLoader.LoadLocalLibrary<SkiaApi> (SKIA));
|
|
|
|
private static T GetSymbol<T> (string name) where T : Delegate =>
|
|
LibraryLoader.GetSymbolDelegate<T> (libSkiaSharpHandle.Value, name);
|
|
#endif
|
|
}
|
|
}
|