blob: 7e3ac65a5dbfc5c66544318d379e3eca9b726bc5 (
plain)
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
146
147
148
149
150
151
152
|
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;
uses fpmkunit;
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
{$endif ALLPACKAGES}
P:=AddPackage('libndsfpc');
P.OSes:=[nds];
P.CPUs:=[arm];
{$ifdef ALLPACKAGES}
P.Directory:=ADirectory;
{$endif ALLPACKAGES}
P.Version:='3.1.1';
P.Author := 'Library: libnds, dswifi, maxmod and gl2d from devkitARM; headers: Francesco Lombardi';
P.License := 'LGPL';
P.HomepageURL := 'www.freepascal.org';
P.Email := '';
P.Description := 'Some libraries for Nintendo DS.';
P.NeedLibC:= false;
P.SourcePath.Add('src');
T:=P.Targets.AddUnit('nds9.pp');
T:=P.Targets.AddUnit('nds7.pp');
T.IncludePath.Add('src/nds');
with T.Dependencies do
begin
AddInclude('bios.inc');
AddInclude('card.inc');
AddInclude('debug.inc');
AddInclude('disc_io.inc');
AddInclude('dma.inc');
AddInclude('fifocommon.inc');
AddInclude('fifomessages.inc');
AddInclude('helper.inc');
AddInclude('input.inc');
AddInclude('interrupts.inc');
AddInclude('ipc.inc');
AddInclude('jtypes.inc');
AddInclude('libversion.inc');
AddInclude('memory.inc');
AddInclude('nds.inc');
AddInclude('ndsinclude.inc');
AddInclude('ndstypes.inc');
AddInclude('registers_alt.inc');
AddInclude('system.inc');
AddInclude('timers.inc');
AddInclude('touch.inc');
end;
T.IncludePath.Add('src/nds/arm7');
with T.Dependencies do
begin
AddInclude('audio.inc');
AddInclude('clock.inc');
AddInclude('i2c.inc');
AddInclude('input.inc');
AddInclude('sdmmc.inc');
AddInclude('serial.inc');
AddInclude('touch.inc');
end;
T.IncludePath.Add('src/nds/arm9');
with T.Dependencies do
begin
AddInclude('background.inc');
AddInclude('boxtest.inc');
AddInclude('cache.inc');
AddInclude('console.inc');
AddInclude('decompress.inc');
AddInclude('dldi.inc');
AddInclude('dynamicArray.inc');
AddInclude('exceptions.inc');
AddInclude('guitarGrip.inc');
AddInclude('image.inc');
AddInclude('input.inc');
AddInclude('keyboard.inc');
AddInclude('linkedlist.inc');
AddInclude('math.inc');
AddInclude('ndsmotion.inc');
AddInclude('paddle.inc');
AddInclude('pcx.inc');
AddInclude('piano.inc');
AddInclude('postest.inc');
AddInclude('rumble.inc');
AddInclude('sassert.inc');
AddInclude('sound.inc');
AddInclude('sprite.inc');
AddInclude('trig_lut.inc');
AddInclude('video.inc');
AddInclude('videoGL.inc');
AddInclude('window.inc');
end;
// dswifi
P.SourcePath.Add('src/dswifi');
T:=P.Targets.AddUnit('dswifi9.pp');
T:=P.Targets.AddUnit('dswifi7.pp');
T.IncludePath.Add('src/dswifi/inc');
with T.Dependencies do
begin
AddInclude('dswifi_version.inc');
AddInclude('dswifi9.inc');
AddInclude('dswifi7.inc');
AddInclude('netdb.inc');
AddInclude('sgIp_errno.inc');
end;
T.IncludePath.Add('src/dswifi/inc/netinet');
T.Dependencies.AddInclude('in.inc');
T.IncludePath.Add('src/dswifi/inc/sys');
T.Dependencies.AddInclude('socket.inc');
// fat
P.SourcePath.Add('src/fat');
T:=P.Targets.AddUnit('fat.pp');
T.IncludePath.Add('src/fat');
T.Dependencies.AddInclude('fat.inc');
T:=P.Targets.AddUnit('filesystem.pp');
T.IncludePath.Add('src/fat');
T.Dependencies.AddInclude('filesystem.inc');
// gl2d
P.SourcePath.Add('src/gl2d');
T:=P.Targets.AddUnit('gl2d.pp');
// maxmod
P.SourcePath.Add('src/maxmod');
T:=P.Targets.AddUnit('maxmod9.pp');
T:=P.Targets.AddUnit('maxmod7.pp');
T.IncludePath.Add('src/maxmod/inc');
with T.Dependencies do
begin
AddInclude('maxmod.inc');
AddInclude('maxmod7.inc');
AddInclude('maxmod9.inc');
AddInclude('mm_mas.inc');
AddInclude('mm_msl.inc');
AddInclude('mm_types.inc');
end;
P.Sources.AddExampleFiles('examples/*',P.Directory,true,'.');
{$ifndef ALLPACKAGES}
Run;
end;
end.
{$endif ALLPACKAGES}
|