blob: d402610a5334d729c2022800a8bfece9ba051be0 (
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
|
{$ifndef ALLPACKAGES}
{$mode objfpc}{$H+}
program fpmake;
uses fpmkunit;
Var
P : TPackage;
T : TTarget;
begin
With Installer do
begin
{$endif ALLPACKAGES}
P:=AddPackage('libgbafpc');
P.OSes:=[gba];
P.CPUs:=[arm];
{$ifdef ALLPACKAGES}
P.Directory:=ADirectory;
{$endif ALLPACKAGES}
P.Version:='3.0.3';
P.Author := 'Library: libgba and maxmod from devkitARM; headers: Francesco Lombardi';
P.License := 'LGPL';
P.HomepageURL := 'www.freepascal.org';
P.Email := '';
P.Description := 'Some libraries for Nintendo Gameboy Advance.';
P.NeedLibC:= false;
P.SourcePath.Add('src');
T:=P.Targets.AddUnit('gba.pp');
T.IncludePath.Add('src/gba');
with T.Dependencies do
begin
AddInclude('BoyScout.inc');
AddInclude('core_asm.as');
AddInclude('disc.inc');
AddInclude('disc_io.inc');
AddInclude('dldi.inc');
AddInclude('fade.inc');
AddInclude('gba.inc');
AddInclude('gba_affine.inc');
AddInclude('gba_base.inc');
AddInclude('gba_compression.inc');
AddInclude('gba_console.inc');
AddInclude('gba_dma.inc');
AddInclude('gba_helper.inc');
AddInclude('gba_input.inc');
AddInclude('gba_interrupt.inc');
AddInclude('gba_multiboot.inc');
AddInclude('gba_sio.inc');
AddInclude('gba_sound.inc');
AddInclude('gba_sprites.inc');
AddInclude('gba_systemcalls.inc');
AddInclude('gba_timers.inc');
AddInclude('gba_types.inc');
AddInclude('gba_video.inc');
AddInclude('helper.inc');
AddInclude('mappy.inc');
AddInclude('mbv2.inc');
AddInclude('pcx.inc');
end;
P.SourcePath.Add('src/maxmod');
T:=P.Targets.AddUnit('maxmod.pp');
T.IncludePath.Add('src/maxmod/inc');
with T.Dependencies do
begin
AddInclude('maxmod.inc');
AddInclude('mm_types.inc');
end;
P.Sources.AddExampleFiles('examples/*',P.Directory,true,'.');
{$ifndef ALLPACKAGES}
Run;
end;
end.
{$endif ALLPACKAGES}
|