1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;
uses fpmkunit;
{$endif ALLPACKAGES}
procedure add_rtl_console(const ADirectory: string);
Const
// All Unices have full set of KVM+Crt in unix/ except QNX which is not
// in workable state atm.
UnixLikes = AllUnixOSes -[QNX];
WinEventOSes = [win32,win64];
KVMAll = [emx,go32v2,netware,netwlibc,os2,win32,win64]+UnixLikes+AllAmigaLikeOSes;
// all full KVMers have crt too, except Amigalikes
CrtOSes = KVMALL+[msdos,WatCom]-[aros,morphos];
KbdOSes = KVMALL+[msdos];
VideoOSes = KVMALL;
MouseOSes = KVMALL;
TerminfoOSes = UnixLikes-[beos,haiku];
rtl_consoleOSes =KVMALL+CrtOSes+TermInfoOSes;
// Amiga has a crt in its RTL dir, but it is commented in the makefile
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
P:=AddPackage('rtl-console');
P.ShortName:='rtlc';
P.Directory:=ADirectory;
P.Version:='3.0.4';
P.Author := 'FPC core team, Pierre Mueller, Peter Vreman';
P.License := 'LGPL with modification, ';
P.HomepageURL := 'www.freepascal.org';
P.OSes:=Rtl_ConsoleOSes;
if Defaults.CPU=powerpc then
P.OSes:=P.OSes-[amiga];
P.Email := '';
P.Description := 'Rtl-console, console abstraction';
P.NeedLibC:= false;
P.Dependencies.Add('rtl-extra'); // linux,android gpm.
P.Dependencies.Add('morphunits',[morphos]);
P.Dependencies.Add('arosunits',[aros]);
P.Dependencies.Add('amunits',[amiga]);
P.SourcePath.Add('src/inc');
P.SourcePath.Add('src/$(OS)');
P.SourcePath.Add('src/darwin',[iphonesim]);
P.SourcePath.Add('src/unix',AllUnixOSes);
P.SourcePath.Add('src/os2commn',[os2,emx]);
P.SourcePath.Add('src/amicommon',AllAmigaLikeOSes);
P.SourcePath.Add('src/win',WinEventOSes);
P.IncludePath.Add('src/inc');
P.IncludePath.Add('src/unix',AllUnixOSes);
P.IncludePath.add('src/amicommon',AllAmigaLikeOSes);
P.IncludePath.Add('src/$(OS)');
P.IncludePath.Add('src/darwin',[iphonesim]);
T:=P.Targets.AddUnit('winevent.pp',WinEventOSes);
T:=P.Targets.AddUnit('keyboard.pp',KbdOSes);
with T.Dependencies do
begin
AddInclude('keybrdh.inc');
AddInclude('keyboard.inc');
AddInclude('keyscan.inc',AllUnixOSes);
AddUnit ('winevent',[win32,win64]);
AddInclude('nwsys.inc',[netware]);
end;
T:=P.Targets.AddUnit('mouse.pp',MouseOSes);
with T.Dependencies do
begin
AddInclude('mouseh.inc');
AddInclude('mouse.inc');
AddUnit ('winevent',[win32,win64]);
end;
T:=P.Targets.AddUnit('video.pp',VideoOSes);
with T.Dependencies do
begin
AddInclude('videoh.inc');
AddInclude('video.inc');
AddInclude('videodata.inc',AllAmigaLikeOSes);
AddInclude('convert.inc',AllUnixOSes);
AddInclude('nwsys.inc',[netware]);
end;
T:=P.Targets.AddUnit('crt.pp',CrtOSes);
with T.Dependencies do
begin
AddInclude('crth.inc');
AddInclude('crt.inc');
AddInclude('nwsys.inc',[netware]);
end;
T:=P.Targets.AddUnit('vesamode.pp',[go32v2]);
with T.Dependencies do
AddUnit('video');
end
end;
{$ifndef ALLPACKAGES}
begin
add_rtl_console('');
Installer.Run;
end.
{$endif ALLPACKAGES}
|