fpmake.pp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:='fpcreslipo';
  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 := 'Giulio Bernardi';
  19. P.License := 'LGPL with modification';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Email := '';
  22. P.Directory:=ADirectory;
  23. P.Version:='3.3.1';
  24. P.Dependencies.Add('fcl-res');
  25. P.OSes:=[darwin, iphonesim];
  26. P.Targets.AddImplicitUnit('msghandler.pp').install := false;
  27. P.Targets.AddImplicitUnit('paramparser.pp').install := false;
  28. P.Targets.AddImplicitUnit('sourcehandler.pp').install := false;
  29. T:=P.Targets.AddProgram('fpcreslipo.pp');
  30. end;
  31. end;
  32. {$ifndef ALLPACKAGES}
  33. begin
  34. add_fpcreslipo('');
  35. Installer.Run;
  36. end.
  37. {$endif ALLPACKAGES}