mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-26 22:43:52 +02:00

* Added a fpmake.pp in the root, to compile the utils and packages in one go git-svn-id: trunk@24783 -
57 lines
1.2 KiB
ObjectPascal
57 lines
1.2 KiB
ObjectPascal
{$ifndef ALLPACKAGES}
|
|
{$mode objfpc}{$H+}
|
|
program fpmake;
|
|
|
|
uses fpmkunit;
|
|
|
|
Var
|
|
P : TPackage;
|
|
T : TTarget;
|
|
begin
|
|
With Installer do
|
|
begin
|
|
{$endif ALLPACKAGES}
|
|
|
|
P:=AddPackage('sqlite');
|
|
{$ifdef ALLPACKAGES}
|
|
P.Directory:=ADirectory;
|
|
{$endif ALLPACKAGES}
|
|
P.Version:='2.7.1';
|
|
P.OSes := AllUnixOSes+AllWindowsOSes-[qnx];
|
|
P.SourcePath.Add('src');
|
|
P.IncludePath.Add('src');
|
|
|
|
T:=P.Targets.AddUnit('sqlite3db.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddUnit('sqlite3');
|
|
end;
|
|
T:=P.Targets.AddUnit('sqlite3dyn.pp');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('sqlite3.inc');
|
|
end;
|
|
T.ResourceStrings := True;
|
|
T:=P.Targets.AddUnit('sqlite3.pp');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('sqlite3.inc');
|
|
end;
|
|
T:=P.Targets.AddUnit('sqlitedb.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddUnit('sqlite');
|
|
end;
|
|
T:=P.Targets.AddUnit('sqlite.pp');
|
|
|
|
P.ExamplePath.Add('tests/');
|
|
P.Targets.AddExampleProgram('testapiv3x.pp');
|
|
P.Targets.AddExampleProgram('test.pas');
|
|
// 'testapiv3x.README
|
|
|
|
{$ifndef ALLPACKAGES}
|
|
Run;
|
|
end;
|
|
end.
|
|
{$endif ALLPACKAGES}
|