fpmake.pp 1.1 KB

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