mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-15 15:55:56 +01:00
a0c8eda6e0
Added Lazarus 3.0 support
35 lines
663 B
ObjectPascal
35 lines
663 B
ObjectPascal
program OAuth2Tester;
|
|
|
|
{$MODE Delphi}
|
|
|
|
{$I ..\..\..\source\cef.inc}
|
|
|
|
uses
|
|
{$IFDEF DELPHI16_UP}
|
|
WinApi.Windows,
|
|
Vcl.Forms,
|
|
{$ELSE}
|
|
Forms,
|
|
LCLIntf, LCLType, LMessages, Interfaces,
|
|
{$ENDIF }
|
|
uCEFApplication,
|
|
uCEFConstants,
|
|
uOAuth2TesterFrm in 'uOAuth2TesterFrm.pas' {OAuth2TesterFrm};
|
|
|
|
{.$R *.res}
|
|
|
|
begin
|
|
GlobalCEFApp := TCefApplication.Create;
|
|
GlobalCEFApp.SetCurrentDir := True;
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
begin
|
|
Application.Initialize;
|
|
Application.MainFormOnTaskbar := True;
|
|
Application.CreateForm(TOAuth2TesterFrm, OAuth2TesterFrm);
|
|
Application.Run;
|
|
end;
|
|
|
|
DestroyGlobalCEFApp;
|
|
end.
|