forked from mikelustosa/Projeto-TInject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTInject.dpr
36 lines (32 loc) · 899 Bytes
/
TInject.dpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
program TInject;
{$I cef.inc}
uses
{$IFDEF DELPHI16_UP}
Vcl.Forms,
{$ELSE}
Forms,
Windows,
{$ENDIF }
uCEFApplication,
uCEFConstants,
u_principal in 'u_principal.pas' {frm_principal},
UnitCEFHandlerSessionChromium in 'Services\UnitCEFHandlerSessionChromium.pas',
UnitCEFLoadHandlerChromium in 'Services\UnitCEFLoadHandlerChromium.pas';
{$R *.res}
begin
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.EnableGPU := True;
GlobalCEFApp.cache := 'DATA\cache';
GlobalCEFApp.DisableFeatures := 'NetworkService,OutOfBlinkCors';
if GlobalCEFApp.StartMainProcess then
begin
Application.Initialize;
{$IFDEF DELPHI11_UP}
Application.MainFormOnTaskbar := True;
{$ENDIF}
Application.CreateForm(Tfrm_principal, frm_principal);
Application.Run;
end;
GlobalCEFApp.Free;
GlobalCEFApp := nil;
end.