-
Notifications
You must be signed in to change notification settings - Fork 173
/
Copy pathfpmake.pp
120 lines (114 loc) · 3.06 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
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
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;
uses fpmkunit;
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
{$endif ALLPACKAGES}
P:=AddPackage('mysql');
{$ifdef ALLPACKAGES}
P.Directory:='mysql';
{$endif ALLPACKAGES}
P.Version:='2.2.2-0';
P.SourcePath.Add('src');
P.IncludePath.Add('src');
T:=P.Targets.AddUnit('my4_sys.pp');
T:=P.Targets.AddUnit('mysql3_comdyn.pp');
with T.Dependencies do
begin
AddInclude('mysql3_comtypes.inc');
end;
T:=P.Targets.AddUnit('mysql3_com.pp');
with T.Dependencies do
begin
AddInclude('mysql3_comtypes.inc');
AddUnit('mysql3_version');
end;
T:=P.Targets.AddUnit('mysql3dyn.pp');
with T.Dependencies do
begin
AddInclude('mysql3types.inc');
AddInclude('mysql3impl.inc');
AddUnit('mysql3_comdyn');
end;
T:=P.Targets.AddUnit('mysql3.pp');
with T.Dependencies do
begin
AddInclude('mysql3types.inc');
AddInclude('mysql3impl.inc');
AddUnit('mysql3_com');
AddUnit('mysql3_version');
end;
T:=P.Targets.AddUnit('mysql3_version.pp');
T:=P.Targets.AddUnit('mysql40dyn.pp');
with T.Dependencies do
begin
AddInclude('mysql.inc');
end;
T:=P.Targets.AddUnit('mysql40.pp');
with T.Dependencies do
begin
AddInclude('mysql.inc');
end;
T:=P.Targets.AddUnit('mysql41dyn.pp');
with T.Dependencies do
begin
AddInclude('mysql.inc');
end;
T:=P.Targets.AddUnit('mysql41.pp');
with T.Dependencies do
begin
AddInclude('mysql.inc');
end;
T:=P.Targets.AddUnit('mysql4_comdyn.pp');
with T.Dependencies do
begin
AddInclude('mysql4_comtypes.inc');
AddUnit('my4_sys');
end;
T:=P.Targets.AddUnit('mysql4_com.pp');
with T.Dependencies do
begin
AddInclude('mysql4_comtypes.inc');
end;
T:=P.Targets.AddUnit('mysql4dyn.pp');
with T.Dependencies do
begin
AddInclude('mysql4types.inc');
AddInclude('mysql4impl.inc');
AddUnit('my4_sys');
AddUnit('mysql4_comdyn');
end;
T:=P.Targets.AddUnit('mysql4.pp');
with T.Dependencies do
begin
AddInclude('mysql4types.inc');
AddInclude('mysql4impl.inc');
AddUnit('my4_sys');
AddUnit('mysql4_com');
end;
T:=P.Targets.AddUnit('mysql4_version.pp');
T:=P.Targets.AddUnit('mysql50dyn.pp');
with T.Dependencies do
begin
AddInclude('mysql.inc');
end;
T:=P.Targets.AddUnit('mysql50.pp');
with T.Dependencies do
begin
AddInclude('mysql.inc');
end;
P.ExamplePath.Add('tests');
P.Targets.AddExampleProgram('testdb3.pp');
P.Targets.AddExampleProgram('testdb4.pp');
P.Targets.AddExampleProgram('mysqls.pp');
// 'mysqls.c
{$ifndef ALLPACKAGES}
Run;
end;
end.
{$endif ALLPACKAGES}