fpmake.pp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_importtl(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-importtl');
  14. P.ShortName:='importttl';
  15. P.OSes:=AllOSes-[embedded,msdos,win16,macos,palmos];
  16. if Defaults.CPU=jvm then
  17. P.OSes := P.OSes - [java,android];
  18. P.Author := '<various>';
  19. P.License := 'LGPL with modification';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Email := '';
  22. P.Description := 'Reads type information from "file" and converts it into a freepascal binding.';
  23. P.NeedLibC:= false;
  24. P.Dependencies.Add('winunits-base');
  25. P.Dependencies.Add('fcl-base');
  26. P.Dependencies.Add('fcl-registry');
  27. P.Directory:=ADirectory;
  28. P.Version:='3.3.1';
  29. P.OSes:=[win32,win64];
  30. T:=P.Targets.AddProgram('importtl.pas');
  31. end;
  32. end;
  33. {$ifndef ALLPACKAGES}
  34. begin
  35. add_importtl('');
  36. Installer.Run;
  37. end.
  38. {$endif ALLPACKAGES}