You've already forked lazarus-ccr
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5685 8e941d3f-bd1b-0410-a28a-d453659cc2b4
46 lines
1.0 KiB
ObjectPascal
46 lines
1.0 KiB
ObjectPascal
program updatepack;
|
|
{Note to self, Code Template: type newpascal then CTRL-J}
|
|
{$ifdef Linux}
|
|
{$ifdef FPC_CROSSCOMPILING}
|
|
{$ifdef CPUARM}
|
|
//if GUI on RPi, then uncomment
|
|
//{$linklib GLESv2}
|
|
{$endif}
|
|
{$linklib libc_nonshared.a}
|
|
{$endif}
|
|
{$endif}
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
uses
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
cthreads,
|
|
{$ENDIF}{$ENDIF}
|
|
Interfaces, // this includes the LCL widgetset
|
|
Forms, umainform, umemoform;
|
|
|
|
{$R *.res}
|
|
Const
|
|
{$IFDEF WINDOWS}
|
|
C_OS = 'win';
|
|
{$ELSE}
|
|
C_OS = 'linux';
|
|
{$ENDIF}
|
|
{$IFDEF CPU32}
|
|
C_BITNESS = '32';
|
|
{$ELSE}
|
|
C_BITNESS = '64';
|
|
{$ENDIF}
|
|
C_PFX = C_OS + C_BITNESS;
|
|
begin
|
|
Application.Title:='LazAutoUpdate Update Pack';
|
|
// Line below gives unique folders in GetAppConfig call
|
|
// Application.Title:=Application.Title + ' (' + C_PFX + ' edition)';
|
|
RequireDerivedFormResource := True;
|
|
Application.Initialize;
|
|
Application.CreateForm(Tmainform, mainform);
|
|
Application.CreateForm(TMemoForm, MemoForm);
|
|
Application.Run;
|
|
end.
|
|
|