summaryrefslogtreecommitdiff
path: root/packages/libffi/fpmake.pp
blob: 6a41082474359b02605676a3e4df678b448a124e (plain)
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
37
38
39
40
41
42
43
44
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;

uses fpmkunit;

Var
  P : TPackage;
  T : TTarget;
begin
  With Installer do
    begin
{$endif ALLPACKAGES}

    P:=AddPackage('libffi');
{$ifdef ALLPACKAGES}
    P.Directory:=ADirectory;
{$endif ALLPACKAGES}
    P.Version:='3.1.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];
    P.CPUs := [x86_64];
    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');

{$ifndef ALLPACKAGES}
    Run;
    end;
end.
{$endif ALLPACKAGES}