2021-01-31 17:53:07 +02:00
|
|
|
(*
|
|
|
|
* Include the following files
|
2021-02-18 17:01:32 +02:00
|
|
|
* ExternalPumpBrowser.app/Contents/Frameworks/ExternalPumpBrowser Helper.app/
|
2021-02-16 01:05:57 +02:00
|
|
|
* files from the demos/Lazarus_Mac/AppHelper project
|
|
|
|
* use create_mac_helper.sh
|
2021-01-31 17:53:07 +02:00
|
|
|
*
|
2021-02-18 17:01:32 +02:00
|
|
|
* ExternalPumpBrowser.app/Contents/Frameworks/Chromium Embedded Framework.framework
|
2021-01-31 17:53:07 +02:00
|
|
|
* files from Release folder in cef download
|
|
|
|
*
|
|
|
|
*)
|
|
|
|
|
|
|
|
|
2021-02-18 17:01:32 +02:00
|
|
|
program ExternalPumpBrowser;
|
2021-01-31 17:53:07 +02:00
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
2023-11-27 19:21:07 +02:00
|
|
|
{$IFDEF MSWINDOWS}{$I ..\..\..\source\cef.inc}{$ELSE}{$I ../../../source/cef.inc}{$ENDIF}
|
2018-07-22 11:12:41 +02:00
|
|
|
|
|
|
|
uses
|
2021-01-31 17:53:07 +02:00
|
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
|
|
cthreads,
|
|
|
|
{$ENDIF}{$ENDIF}
|
2021-02-16 19:12:13 +02:00
|
|
|
{$IFDEF LINUX}
|
|
|
|
InitSubProcess, // On Linux this unit must be used *before* the "interfaces" unit.
|
|
|
|
{$ENDIF}
|
2021-01-31 17:53:07 +02:00
|
|
|
Interfaces,
|
2021-02-16 19:12:13 +02:00
|
|
|
Forms,
|
|
|
|
uExternalPumpBrowser, GlobalCefApplication
|
2021-01-31 17:53:07 +02:00
|
|
|
{ you can add units after this }
|
|
|
|
;
|
2018-07-22 11:12:41 +02:00
|
|
|
|
|
|
|
{$R *.res}
|
|
|
|
|
2021-02-19 03:38:43 +02:00
|
|
|
{$IFDEF WIN32}
|
|
|
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
|
|
{$SetPEFlags $20}
|
|
|
|
{$ENDIF}
|
|
|
|
|
2018-07-22 11:12:41 +02:00
|
|
|
begin
|
2021-01-31 17:53:07 +02:00
|
|
|
RequireDerivedFormResource:=True;
|
2021-02-17 22:28:19 +02:00
|
|
|
Application.Title := 'External Pump Browser';
|
|
|
|
Application.Scaled := True;
|
2021-01-31 17:53:07 +02:00
|
|
|
Application.Initialize;
|
|
|
|
Application.CreateForm(TForm1, Form1);
|
|
|
|
Application.Run;
|
2018-07-22 11:12:41 +02:00
|
|
|
end.
|
2021-01-31 17:53:07 +02:00
|
|
|
|