fpmake.pp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_rtl_extra(const ADirectory: string);
  7. Const
  8. // All Unices have full set of KVM+Crt in unix/ except QNX which is not
  9. // in workable state atm.
  10. UnixLikes = AllUnixOSes -[QNX]; // qnx never was active in 2.x afaik
  11. UComplexOSes = [amiga,emx,gba,go32v2,morphos,msdos,nativent,nds,netware,netwlibc,os2,watcom,wii,wince,win32,win64]+UnixLikes;
  12. MatrixOSes = [amiga,emx,gba,go32v2,morphos,msdos,nativent,nds,netware,netwlibc,os2,wii,win32,win64,wince]+UnixLikes;
  13. ObjectsOSes = [amiga,emx,gba,go32v2,morphos,msdos,netware,netwlibc,os2,win32,win64,wince]+UnixLikes;
  14. AllTargetsextra = ObjectsOSes + UComplexOSes + MatrixOSes;
  15. Var
  16. P : TPackage;
  17. T : TTarget;
  18. begin
  19. With Installer do
  20. begin
  21. P:=AddPackage('rtl-extra');
  22. P.Directory:=ADirectory;
  23. P.Version:='2.7.1';
  24. P.Author := 'FPC core team';
  25. P.License := 'LGPL with modification, ';
  26. P.HomepageURL := 'www.freepascal.org';
  27. P.OSes:=AllTargetsextra;
  28. P.Email := '';
  29. P.Description := 'Rtl-extra, RTL not needed for bootstrapping';
  30. P.NeedLibC:= false;
  31. P.SourcePath.Add('src/inc');
  32. P.SourcePath.Add('src/$(OS)');
  33. P.SourcePath.Add('src/darwin',[iphonesim]);
  34. P.SourcePath.Add('src/unix',AllUnixOSes);
  35. P.SourcePath.Add('src/os2commn',[os2,emx]);
  36. P.SourcePath.Add('src/win',[win32,win64]);
  37. P.IncludePath.Add('src/inc');
  38. P.IncludePath.Add('src/unix',AllUnixOSes);
  39. P.IncludePath.Add('src/$(OS)');
  40. P.IncludePath.Add('src/darwin',[iphonesim]);
  41. T:=P.Targets.AddUnit('ucomplex.pp',UComplexOSes);
  42. T:=P.Targets.AddUnit('objects.pp',ObjectsOSes);
  43. T:=P.Targets.AddUnit('matrix.pp',MatrixOSes);
  44. with T.Dependencies do
  45. begin
  46. AddInclude('mvecimp.inc');
  47. AddInclude('mmatimp.inc');
  48. end;
  49. end
  50. end;
  51. {$ifndef ALLPACKAGES}
  52. begin
  53. add_rtl_extra('');
  54. Installer.Run;
  55. end.
  56. {$endif ALLPACKAGES}