Add SkiaSharp 4.150.1 static graphics release
This commit is contained in:
1 parent
12588d44ed
commit
572d14040d
22 files changed
+938
-473
No files matched your search
@@ -0,0 +1,54 @@
|
||||
using Avalonia;
|
||||
|
||||
namespace AvaloniaStaticLinkSmoke;
|
||||
|
||||
internal static class Program
|
||||
{
|
||||
[STAThread]
|
||||
public static void Main(string[] args) => BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
|
||||
|
||||
public static AppBuilder BuildAvaloniaApp()
|
||||
{
|
||||
var builder = AppBuilder.Configure<App>()
|
||||
.UsePlatformDetect()
|
||||
.LogToTrace();
|
||||
|
||||
if (OperatingSystem.IsWindows())
|
||||
{
|
||||
builder = builder.With(new Win32PlatformOptions
|
||||
{
|
||||
RenderingMode =
|
||||
[
|
||||
Win32RenderingMode.AngleEgl,
|
||||
Win32RenderingMode.Software
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
if (OperatingSystem.IsLinux())
|
||||
{
|
||||
builder = builder.With(new X11PlatformOptions
|
||||
{
|
||||
RenderingMode =
|
||||
[
|
||||
X11RenderingMode.Glx,
|
||||
X11RenderingMode.Software
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
if (OperatingSystem.IsMacOS())
|
||||
{
|
||||
builder = builder.With(new AvaloniaNativePlatformOptions
|
||||
{
|
||||
RenderingMode =
|
||||
[
|
||||
AvaloniaNativeRenderingMode.OpenGl,
|
||||
AvaloniaNativeRenderingMode.Software
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
return builder;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user