fpc/packages/libffi/fpmake.pp
2023-07-27 19:04:09 +02:00

48 lines
1.1 KiB
ObjectPascal

{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;
uses {$ifdef unix}cthreads,{$endif} fpmkunit;
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
{$endif ALLPACKAGES}
P:=AddPackage('libffi');
P.ShortName := 'lffi';
{$ifdef ALLPACKAGES}
P.Directory:=ADirectory;
{$endif ALLPACKAGES}
P.Version:='3.3.1';
P.Author := 'Anthony Green and others';
P.License := 'MIT license';
P.HomepageURL := 'https://sourceware.org/libffi/';
P.Email := 'libffi-discuss@sourceware.org';
P.Description := 'Headers for the libFFI library (Foreign Function Interface)';
P.NeedLibC:= true; // true for headers that indirectly link to libc?
P.OSes := [linux,win32,win64] + AllBSDOSes;
P.Dependencies.Add('rtl-objpas');
P.SourcePath.Add('src');
P.IncludePath.Add('src');
T:=P.Targets.AddUnit('ffi.pp');
T:=P.Targets.AddUnit('ffi.manager.pp');
T.Dependencies.AddUnit('ffi');
P.ExamplePath.Add('examples');
P.Targets.AddExampleProgram('simple.pp');
P.NamespaceMap:='namespaces.lst';
{$ifndef ALLPACKAGES}
Run;
end;
end.
{$endif ALLPACKAGES}