fpmake.pp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_instantfpc(const ADirectory: string);
  11. Var
  12. P : TPackage;
  13. T : TTarget;
  14. begin
  15. With Installer do
  16. begin
  17. P:=AddPackage('utils-instantfpc');
  18. P.ShortName:='ifpc';
  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 := 'A tool to execute pascal programs as unix scripts.';
  27. P.NeedLibC:= false;
  28. P.Directory:=ADirectory;
  29. P.Version:='3.3.1';
  30. P.Dependencies.Add('fcl-process');
  31. P.Options.Add('-S2h');
  32. P.OSes := [win32,win64,wince,haiku,linux,freebsd,openbsd,netbsd,darwin,iphonesim,ios,solaris,aix];
  33. T:=P.Targets.AddProgram('instantfpc.pas');
  34. T.Dependencies.AddUnit('instantfptools');
  35. P.Targets.AddUnit('instantfptools.pas').Install:=False;
  36. end;
  37. end;
  38. {$ifndef ALLPACKAGES}
  39. begin
  40. add_instantfpc('');
  41. Installer.Run;
  42. end.
  43. {$endif ALLPACKAGES}