2019-05-19 16:08:15 +02:00
|
|
|
program SimpleBrowser2;
|
2018-05-12 14:50:54 +02:00
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
uses
|
|
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
|
|
cthreads,
|
|
|
|
{$ENDIF}{$ENDIF}
|
|
|
|
Interfaces, // this includes the LCL widgetset
|
2018-05-24 19:15:41 +02:00
|
|
|
Forms, uSimpleLazarusBrowser,
|
2018-05-12 14:50:54 +02:00
|
|
|
{ you can add units after this }
|
2018-05-24 19:15:41 +02:00
|
|
|
uCEFApplication;
|
2018-05-12 14:50:54 +02:00
|
|
|
|
|
|
|
{$R *.res}
|
|
|
|
|
2018-05-24 19:15:41 +02:00
|
|
|
{$IFDEF MSWINDOWS}
|
|
|
|
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
|
|
{$SetPEFlags $20}
|
|
|
|
{$ENDIF}
|
|
|
|
|
2018-05-12 14:50:54 +02:00
|
|
|
begin
|
2019-06-19 16:53:26 +02:00
|
|
|
CreateGlobalCEFApp;
|
2018-05-12 14:50:54 +02:00
|
|
|
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
|
|
begin
|
2019-06-19 16:53:26 +02:00
|
|
|
RequireDerivedFormResource := True;
|
2018-05-12 14:50:54 +02:00
|
|
|
Application.Initialize;
|
|
|
|
Application.CreateForm(TForm1, Form1);
|
|
|
|
Application.Run;
|
|
|
|
end;
|
|
|
|
|
2019-06-19 16:53:26 +02:00
|
|
|
DestroyGlobalCEFApp;
|
2018-05-12 14:50:54 +02:00
|
|
|
end.
|
|
|
|
|