fpmake.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_fpcreslipo(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-fpcreslipo');
  14. P.ShortName:='fprl';
  15. P.Description:='Free Pascal External Resource Thinner';
  16. P.OSes:=AllOSes-[embedded,msdos,win16,macosclassic,palmos,zxspectrum,msxdos,amstradcpc];
  17. if Defaults.CPU=jvm then
  18. P.OSes := P.OSes - [java,android];
  19. P.Author := 'Giulio Bernardi';
  20. P.License := 'LGPL with modification';
  21. P.HomepageURL := 'www.freepascal.org';
  22. P.Email := '';
  23. P.Directory:=ADirectory;
  24. P.Version:='3.3.1';
  25. P.Dependencies.Add('fcl-res');
  26. // P.OSes:=[darwin, iphonesim,ios];
  27. P.Targets.AddImplicitUnit('msghandler.pp').install := false;
  28. P.Targets.AddImplicitUnit('paramparser.pp').install := false;
  29. P.Targets.AddImplicitUnit('sourcehandler.pp').install := false;
  30. T:=P.Targets.AddProgram('fpcreslipo.pp');
  31. end;
  32. end;
  33. {$ifndef ALLPACKAGES}
  34. begin
  35. add_fpcreslipo('');
  36. Installer.Run;
  37. end.
  38. {$endif ALLPACKAGES}