fpmake.pp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('libffi');
  13. P.ShortName := 'lffi';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Anthony Green and others';
  19. P.License := 'MIT license';
  20. P.HomepageURL := 'https://sourceware.org/libffi/';
  21. P.Email := '[email protected]';
  22. P.Description := 'Headers for the libFFI library (Foreign Function Interface)';
  23. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  24. P.OSes := [linux];
  25. P.CPUs := [x86_64];
  26. P.Dependencies.Add('rtl-objpas');
  27. P.SourcePath.Add('src');
  28. P.IncludePath.Add('src');
  29. T:=P.Targets.AddUnit('ffi.pp');
  30. T:=P.Targets.AddUnit('ffi.manager.pp');
  31. T.Dependencies.AddUnit('ffi');
  32. P.ExamplePath.Add('examples');
  33. P.Targets.AddExampleProgram('simple.pp');
  34. {$ifndef ALLPACKAGES}
  35. Run;
  36. end;
  37. end.
  38. {$endif ALLPACKAGES}