fpmake.pp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_fpcreslipo(const ADirectory: string);
  11. Var
  12. P : TPackage;
  13. T : TTarget;
  14. begin
  15. With Installer do
  16. begin
  17. P:=AddPackage('utils-fpcreslipo');
  18. P.ShortName:='fprl';
  19. P.Description:='Free Pascal External Resource Thinner';
  20. P.OSes:=AllOSes-[embedded,msdos,win16,macosclassic,palmos,zxspectrum,msxdos,amstradcpc,watcom,sinclairql,wasi,human68k];
  21. if Defaults.CPU=jvm then
  22. P.OSes := P.OSes - [java,android];
  23. P.Author := 'Giulio Bernardi';
  24. P.License := 'LGPL with modification';
  25. P.HomepageURL := 'www.freepascal.org';
  26. P.Email := '';
  27. P.Directory:=ADirectory;
  28. P.Version:='3.3.1';
  29. P.Dependencies.Add('fcl-res');
  30. // P.OSes:=[darwin, iphonesim,ios];
  31. P.Targets.AddImplicitUnit('msghandler.pp').install := false;
  32. P.Targets.AddImplicitUnit('paramparser.pp').install := false;
  33. P.Targets.AddImplicitUnit('sourcehandler.pp').install := false;
  34. T:=P.Targets.AddProgram('fpcreslipo.pp');
  35. end;
  36. end;
  37. {$ifndef ALLPACKAGES}
  38. begin
  39. add_fpcreslipo('');
  40. Installer.Run;
  41. end.
  42. {$endif ALLPACKAGES}