-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathfpmake.pp
78 lines (72 loc) · 2.42 KB
/
fpmake.pp
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
{$ifndef ALLPACKAGES}
program fpmake;
{$mode objfpc}{$h+}
uses fpmkunit;
{$endif}
Procedure add_rtl_generics(ADirectory : string);
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
P:=AddPackage('rtl-generics');
P.ShortName:='rtlg';
P.Author := 'Maciej Izak';
P.License := 'LGPL with modification, ';
P.HomepageURL := 'www.freepascal.org';
P.Email := '';
P.Description := 'Generic collection library.';
P.NeedLibC:= false;
P.OSes := AllOSes-[embedded];
P.Directory:=ADirectory;
P.Version:='3.1.1';
P.Dependencies.Add('rtl-objpas');
P.SourcePath.Add('src');
P.IncludePath.Add('src/inc');
T:=P.Targets.AddUnit('generics.collections.pas');
with T.Dependencies do
begin
AddUnit('generics.memoryexpanders');
AddUnit('generics.defaults');
AddUnit('generics.helpers');
AddUnit('generics.strings');
end;
T:=P.Targets.AddUnit('generics.defaults.pas');
with T.Dependencies do
begin
AddUnit('generics.hashes');
AddUnit('generics.strings');
AddUnit('generics.helpers');
end;
T:=P.Targets.AddUnit('generics.hashes.pas');
T:=P.Targets.AddUnit('generics.helpers.pas');
T:=P.Targets.AddUnit('generics.memoryexpanders.pas');
T:=P.Targets.AddUnit('generics.strings.pas');
// Examples
P.ExamplePath.Add('examples/tarraydouble');
T:=P.Targets.AddExampleProgram('tarrayprojectdouble.lpr');
P.ExamplePath.Add('examples/tarraysingle');
T:=P.Targets.AddExampleProgram('tarrayprojectsingle.lpr');
P.ExamplePath.Add('examples/tcomparer');
T:=P.Targets.AddExampleProgram('tcomparerproject.lpr');
P.ExamplePath.Add('examples/thashmap');
T:=P.Targets.AddExampleProgram('thashmapproject.lpr');
P.ExamplePath.Add('examples/thashmapcaseinsensitive');
T:=P.Targets.AddExampleProgram('thashmapcaseinsensitive.lpr');
P.ExamplePath.Add('examples/thashmapextendedequalitycomparer');
T:=P.Targets.AddExampleProgram('thashmapextendedequalitycomparer.lpr');
P.ExamplePath.Add('examples/tobjectlist');
T:=P.Targets.AddExampleProgram('tobjectlistproject.lpr');
P.ExamplePath.Add('examples/tqueue');
T:=P.Targets.AddExampleProgram('tqueueproject.lpr');
P.ExamplePath.Add('examples/tstack');
T:=P.Targets.AddExampleProgram('tstackproject.lpr');
end;
end;
{$ifndef ALLPACKAGES}
begin
add_rtl_generics('');
Installer.Run;
end.
{$endif ALLPACKAGES}