2021-01-31 16:53:07 +01:00
|
|
|
(*
|
|
|
|
* Include the following files
|
2021-02-18 16:01:32 +01:00
|
|
|
* ExternalPumpBrowser.app/Contents/Frameworks/ExternalPumpBrowser Helper.app/
|
2021-02-16 00:05:57 +01:00
|
|
|
* files from the demos/Lazarus_Mac/AppHelper project
|
|
|
|
* use create_mac_helper.sh
|
2021-01-31 16:53:07 +01:00
|
|
|
*
|
2021-02-18 16:01:32 +01:00
|
|
|
* ExternalPumpBrowser.app/Contents/Frameworks/Chromium Embedded Framework.framework
|
2021-01-31 16:53:07 +01:00
|
|
|
* files from Release folder in cef download
|
|
|
|
*
|
|
|
|
*)
|
|
|
|
|
|
|
|
|
2021-02-18 16:01:32 +01:00
|
|
|
program ExternalPumpBrowser;
|
2021-01-31 16:53:07 +01:00
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
2023-11-27 18:21:07 +01: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 16:53:07 +01:00
|
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
|
|
cthreads,
|
|
|
|
{$ENDIF}{$ENDIF}
|
2021-02-16 18:12:13 +01:00
|
|
|
{$IFDEF LINUX}
|
|
|
|
InitSubProcess, // On Linux this unit must be used *before* the "interfaces" unit.
|
|
|
|
{$ENDIF}
|
2021-01-31 16:53:07 +01:00
|
|
|
Interfaces,
|
2021-02-16 18:12:13 +01:00
|
|
|
Forms,
|
|
|
|
uExternalPumpBrowser, GlobalCefApplication
|
2021-01-31 16:53:07 +01:00
|
|
|
{ you can add units after this }
|
|
|
|
;
|
2018-07-22 11:12:41 +02:00
|
|
|
|
|
|
|
{$R *.res}
|
|
|
|
|
2021-02-19 02:38:43 +01: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 16:53:07 +01:00
|
|
|
RequireDerivedFormResource:=True;
|
2021-02-17 21:28:19 +01:00
|
|
|
Application.Title := 'External Pump Browser';
|
|
|
|
Application.Scaled := True;
|
2021-01-31 16:53:07 +01:00
|
|
|
Application.Initialize;
|
|
|
|
Application.CreateForm(TForm1, Form1);
|
|
|
|
Application.Run;
|
2018-07-22 11:12:41 +02:00
|
|
|
end.
|
2021-01-31 16:53:07 +01:00
|
|
|
|