fpmake.pp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_rtl_console(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];
  11. WinEventOSes = [win32,win64];
  12. KVMAll = [emx,go32v2,MorphOS,netware,netwlibc,os2,win32,win64]+UnixLikes;
  13. // all full KVMers have crt too, except MorphOS
  14. CrtOSes = KVMALL+[msdos,WatCom]-[MorphOS];
  15. KbdOSes = KVMALL+[msdos];
  16. VideoOSes = KVMALL;
  17. MouseOSes = KVMALL;
  18. // Amiga has a crt in its RTL dir, but it is commented in the makefile
  19. Var
  20. P : TPackage;
  21. T : TTarget;
  22. begin
  23. With Installer do
  24. begin
  25. P:=AddPackage('rtl-console');
  26. P.Directory:=ADirectory;
  27. P.Version:='2.7.1';
  28. P.Author := 'FPC core team, Pierre Mueller, Peter Vreman';
  29. P.License := 'LGPL with modification, ';
  30. P.HomepageURL := 'www.freepascal.org';
  31. P.OSes:=KVMALL+CrtOSes;
  32. P.Email := '';
  33. P.Description := 'Rtl-console, console abstraction';
  34. P.NeedLibC:= false;
  35. P.SourcePath.Add('src/inc');
  36. P.SourcePath.Add('src/$(OS)');
  37. P.SourcePath.Add('src/darwin',[iphonesim]);
  38. P.SourcePath.Add('src/unix',AllUnixOSes);
  39. P.SourcePath.Add('src/os2commn',[os2,emx]);
  40. P.SourcePath.Add('src/win',WinEventOSes);
  41. P.IncludePath.Add('src/inc');
  42. P.IncludePath.Add('src/unix',AllUnixOSes);
  43. P.IncludePath.Add('src/$(OS)');
  44. P.IncludePath.Add('src/darwin',[iphonesim]);
  45. T:=P.Targets.AddUnit('winevent.pp',WinEventOSes);
  46. T:=P.Targets.AddUnit('keyboard.pp',KbdOSes);
  47. with T.Dependencies do
  48. begin
  49. AddInclude('keybrdh.inc');
  50. AddInclude('keyboard.inc');
  51. AddInclude('keyscan.inc',AllUnixOSes);
  52. AddUnit ('winevent',[win32,win64]);
  53. AddInclude('nwsys.inc',[netware]);
  54. end;
  55. T:=P.Targets.AddUnit('mouse.pp',MouseOSes);
  56. with T.Dependencies do
  57. begin
  58. AddInclude('mouseh.inc');
  59. AddInclude('mouse.inc');
  60. AddUnit ('winevent',[win32,win64]);
  61. end;
  62. T:=P.Targets.AddUnit('video.pp',VideoOSes);
  63. with T.Dependencies do
  64. begin
  65. AddInclude('videoh.inc');
  66. AddInclude('video.inc');
  67. AddInclude('videodata.inc',[MorphOS]);
  68. AddInclude('convert.inc',AllUnixOSes);
  69. AddInclude('nwsys.inc',[netware]);
  70. end;
  71. T:=P.Targets.AddUnit('crt.pp',CrtOSes);
  72. with T.Dependencies do
  73. begin
  74. AddInclude('crth.inc');
  75. AddInclude('crt.inc');
  76. AddInclude('nwsys.inc',[netware]);
  77. end;
  78. T:=P.Targets.AddUnit('vesamode.pp',[go32v2]);
  79. with T.Dependencies do
  80. AddUnit('video');
  81. end
  82. end;
  83. {$ifndef ALLPACKAGES}
  84. begin
  85. add_rtl_console('');
  86. Installer.Run;
  87. end.
  88. {$endif ALLPACKAGES}