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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;
uses fpmkunit;
{$endif ALLPACKAGES}
procedure add_rtl_objpas(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]; // qnx never was active in 2.x afaik
// AllUnixOSes = [Linux,FreeBSD,NetBSD,OpenBSD,Darwin,QNX,BeOS,Solaris,Haiku,iphonesim,ios,aix,Android];
// unixlikes-[beos];
//
StrUtilsOSes = [atari,emx,gba,go32v2,msdos,nds,netware,wince,nativent,os2,netwlibc,symbian,watcom,wii,win32,win64,freertos]+UnixLikes+AllAmigaLikeOSes;
VarUtilsOSes = [atari,emx,gba,go32v2,msdos,nds,netware,wince,nativent,os2,netwlibc,symbian,watcom,wii,win32,win64,freertos]+UnixLikes+AllAmigaLikeOSes;
ConvUtilsOSes = [nativent,netware,netwlibc,win32,win64,wince]+AllAmigaLikeOSes+UnixLikes-[BeOS];
ConvUtilOSes = [atari,Go32v2,msdos,os2,emx,freertos,watcom];
DateUtilsOSes = [gba,nativent,nds,netware,netwlibc,symbian,wii,win32,win64,wince,freertos]+UnixLikes+AllAmigaLikeOSes;
DateUtilOSes = [atari,Go32v2,msdos,os2,emx,freertos,watcom];
StdConvsOSes = [NativeNT,Win32,win64,os2,msdos,go32v2,freertos]+UnixLikes-[BeOS];
FmtBCDOSes = [atari,emx,gba,go32v2,msdos,nativent,nds,netware,netwlibc,os2,symbian,watcom,wii,win32,win64,wince,freertos]+UnixLikes+AllAmigaLikeOSes;
VariantsOSes = [atari,emx,gba,go32v2,msdos,nativent,nds,netware,netwlibc,os2,symbian,watcom,wii,win32,win64,wince,freertos]+UnixLikes+AllAmigaLikeOSes;
RttiOSes = [atari,emx,gba,go32v2,msdos,nativent,nds,netware,netwlibc,os2,watcom,wii,win32,win64,wince,freertos]+UnixLikes+AllAmigaLikeOSes;
UItypesOSes = [atari,emx,gba,go32v2,msdos,nativent,nds,netware,netwlibc,os2,watcom,wii,win32,win64,wince,freertos]+UnixLikes+AllAmigaLikeOSes-ConvUtilOSes;
AllTargetsObjPas = DateUtilsOses +DateUtilOSes+
VarutilsOses + ConvutilsOSes + ConvutilOSes + StdConvsOSes+
FmtBCDOSes + StrUtilsOSes + UITypesOSes;
CommonSrcOSes = [atari,emx,gba,go32v2,msdos,nds,netware,wince,nativent,os2,netwlibc,symbian,watcom,wii,freertos]+UnixLikes+AllAmigaLikeOSes;
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
P:=AddPackage('rtl-objpas');
P.ShortName:='rtlo';
P.Directory:=ADirectory;
P.Version:='3.3.1';
P.Author := 'FPC core team';
P.License := 'LGPL with modification, ';
P.HomepageURL := 'www.freepascal.org';
P.OSes:=AllTargetsObjPas;
if Defaults.CPU=jvm then
P.OSes := P.OSes - [java,android];
P.Email := '';
P.Description := 'Rtl-objpas, aux. Delphi compat units';
P.NeedLibC:= false;
P.SourcePath.Add('src/inc');
P.SourcePath.Add('src/$(OS)');
P.SourcePath.Add('src/win',[win32,win64]);
P.SourcePath.Add('src/common',CommonSrcOSes);
P.IncludePath.Add('src/inc');
P.IncludePath.Add('src/$(OS)');
P.IncludePath.Add('src/$(CPU)');
P.IncludePath.Add('src/common',CommonSrcOSes);
T:=P.Targets.AddUnit('system.uitypes.pp',uitypesOses);
T:=P.Targets.AddUnit('strutils.pp',StrUtilsOses);
T.ResourceStrings:=true;
T:=P.Targets.AddUnit('widestrutils.pp',StrUtilsOses-ConvUtilOSes);
T:=P.Targets.AddUnit('varutils.pp',VarUtilsOses);
with T.Dependencies do
begin
AddInclude('varutilh.inc');
AddInclude('varerror.inc');
AddInclude('varutils.inc',VarUtilsOSes-[win32,win64]);
AddInclude('cvarutil.inc');
end;
// 8.3
T:=P.Targets.AddUnit('convutil.pp',ConvutilOSes);
with T.Dependencies do
begin
AddInclude('convutil.inc');
end;
// normal
T:=P.Targets.AddUnit('convutils.pp',ConvutilsOSes);
with T.Dependencies do
begin
AddInclude('convutil.inc');
end;
// 8.3
T:=P.Targets.AddUnit('dateutil.pp',dateutilOSes);
with T.Dependencies do
begin
AddInclude('dateutil.inc');
end;
// normal
T:=P.Targets.AddUnit('dateutils.pp',dateutilsOSes);
with T.Dependencies do
begin
AddInclude('dateutil.inc');
end;
T:=P.Targets.AddUnit('stdconvs.pp',StdConvsOSes);
T.ResourceStrings:=true;
with T.Dependencies do
begin
AddUnit('convutils',ConvUtilsOSes);
AddUnit('convutil',ConvUtilOSes);
end;
T:=P.Targets.AddUnit('fmtbcd.pp',FmtBCDOSes);
with T.Dependencies do
AddUnit('variants');
T:=P.Targets.AddUnit('variants.pp',VariantsOSes);
T.ResourceStrings:=true;
with T.Dependencies do
begin
AddUnit('varutils');
// AddUnit('Math');
end;
T:=P.Targets.AddUnit('nullable.pp',VariantsOSes);
T:=P.Targets.AddUnit('rtti.pp',RttiOSes);
with T.Dependencies do
begin
AddInclude('invoke.inc',[x86_64],RttiOSes);
end;
T.ResourceStrings:=true;
end
end;
{$ifndef ALLPACKAGES}
begin
add_rtl_objpas('');
Installer.Run;
end.
{$endif ALLPACKAGES}
|