mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 08:07:54 +02:00
108 lines
2.7 KiB
ObjectPascal
108 lines
2.7 KiB
ObjectPascal
{$ifndef ALLPACKAGES}
|
|
{$mode objfpc}{$H+}
|
|
program fpmake;
|
|
|
|
uses {$ifdef unix}cthreads,{$endif} fpmkunit;
|
|
|
|
Var
|
|
P : TPackage;
|
|
T : TTarget;
|
|
begin
|
|
With Installer do
|
|
begin
|
|
{$endif ALLPACKAGES}
|
|
|
|
P:=AddPackage('sdl');
|
|
{$ifdef ALLPACKAGES}
|
|
P.Directory:=ADirectory;
|
|
{$endif ALLPACKAGES}
|
|
P.Version:='3.3.1';
|
|
P.SourcePath.Add('src');
|
|
P.IncludePath.Add('src');
|
|
P.Dependencies.Add('x11',AllUnixOSes);
|
|
P.Dependencies.Add('pthreads',AllUnixOSes);
|
|
P.Dependencies.Add('morphunits',[morphos]);
|
|
if Defaults.CPU=arm then
|
|
P.OSes := P.OSes - [darwin];
|
|
P.OSes := P.OSes - [iphonesim,ios,java,os2,emx,go32v2,watcom,netware,netwlibc,nativent,embedded,
|
|
android,amiga,aros,msdos,gba,nds,win16,atari,macosclassic,palmos,symbian,wii,
|
|
freertos,zxspectrum,msxdos,amstradcpc,sinclairql,wasi,human68k];
|
|
|
|
T:=P.Targets.AddUnit('logger.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
end;
|
|
T:=P.Targets.AddUnit('sdl_gfx.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
AddUnit('sdl');
|
|
end;
|
|
T:=P.Targets.AddUnit('sdl_image.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
AddUnit('sdl');
|
|
end;
|
|
T:=P.Targets.AddUnit('sdl_mixer_nosmpeg.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
AddUnit('sdl');
|
|
end;
|
|
T:=P.Targets.AddUnit('sdl_mixer.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
AddUnit('smpeg');
|
|
AddUnit('sdl');
|
|
end;
|
|
T:=P.Targets.AddUnit('sdl_net.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
AddUnit('sdl');
|
|
end;
|
|
T:=P.Targets.AddUnit('sdl.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
end;
|
|
T:=P.Targets.AddUnit('sdl_ttf.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
AddUnit('sdl');
|
|
end;
|
|
T:=P.Targets.AddUnit('sdlutils.pas',[i386,powerpc],[linux,freebsd,win32,darwin,iphonesim,ios]);
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
AddUnit('sdl');
|
|
end;
|
|
T:=P.Targets.AddUnit('smpeg.pas');
|
|
with T.Dependencies do
|
|
begin
|
|
AddInclude('jedi-sdl.inc');
|
|
AddUnit('sdl');
|
|
end;
|
|
P.Sources.AddSrc('LGPL');
|
|
P.Sources.AddSrc('LGPL.addon');
|
|
P.Sources.AddSrc('MPL-1.1');
|
|
P.Sources.AddSrc('README.txt');
|
|
|
|
|
|
P.NamespaceMap:='namespaces.lst';
|
|
|
|
{$ifndef ALLPACKAGES}
|
|
Run;
|
|
end;
|
|
end.
|
|
{$endif ALLPACKAGES}
|
|
|
|
|
|
|
|
|
|
|