fpc/packages/sqlite/fpmake.pp
joost df4191acb3 * Handle the location of each package at run-time, not at compilation time
* Added a fpmake.pp in the root, to compile the utils and packages in one go

git-svn-id: trunk@24783 -
2013-06-02 17:55:23 +00:00

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}