
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9338 8e941d3f-bd1b-0410-a28a-d453659cc2b4
29 lines
450 B
ObjectPascal
29 lines
450 B
ObjectPascal
{
|
|
The System.Skia.API unit loads the libsk4d library in its class constructors,
|
|
which eats any error message.
|
|
This unit logs an error via the LazLogger unit.
|
|
|
|
}
|
|
unit LCL.SkiaInit;
|
|
|
|
{$mode ObjFPC}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
SysUtils, LazLogger, System.Skia.API;
|
|
|
|
implementation
|
|
|
|
initialization
|
|
try
|
|
SkInitialize;
|
|
except
|
|
on E: Exception do begin
|
|
DebugLn('Failed loading skia libb: '+E.Message);
|
|
Halt(1);
|
|
end;
|
|
end;
|
|
end.
|
|
|