PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/sdl/fpmake.pp

https://github.com/slibre/freepascal
Puppet | 101 lines | 91 code | 10 blank | 0 comment | 1 complexity | 3679069ee79aabfc9a5aa9f1e0ac8dfa MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
  1{$ifndef ALLPACKAGES}
  2{$mode objfpc}{$H+}
  3program fpmake;
  4
  5uses fpmkunit;
  6
  7Var
  8  P : TPackage;
  9  T : TTarget;
 10begin
 11  With Installer do
 12    begin
 13{$endif ALLPACKAGES}
 14
 15    P:=AddPackage('sdl');
 16{$ifdef ALLPACKAGES}
 17    P.Directory:='sdl';
 18{$endif ALLPACKAGES}
 19    P.Version:='2.7.1';
 20    P.SourcePath.Add('src');
 21    P.IncludePath.Add('src');
 22    P.Dependencies.Add('x11',AllUnixOSes);
 23    P.Dependencies.Add('pthreads',AllUnixOSes);
 24    if Defaults.CPU=arm then
 25       P.OSes := P.OSes - [darwin];
 26    P.OSes := P.OSes - [iphonesim,os2,emx,go32v2,watcom,nativent,embedded];
 27
 28    T:=P.Targets.AddUnit('logger.pas');
 29      with T.Dependencies do
 30        begin
 31          AddInclude('jedi-sdl.inc');
 32        end;
 33    T:=P.Targets.AddUnit('sdl_gfx.pas');
 34      with T.Dependencies do
 35        begin
 36          AddInclude('jedi-sdl.inc');
 37          AddUnit('sdl');
 38        end;
 39    T:=P.Targets.AddUnit('sdl_image.pas');
 40      with T.Dependencies do
 41        begin
 42          AddInclude('jedi-sdl.inc');
 43          AddUnit('sdl');
 44        end;
 45    T:=P.Targets.AddUnit('sdl_mixer_nosmpeg.pas');
 46      with T.Dependencies do
 47        begin
 48          AddInclude('jedi-sdl.inc');
 49          AddUnit('sdl');
 50        end;
 51    T:=P.Targets.AddUnit('sdl_mixer.pas');
 52      with T.Dependencies do
 53        begin
 54          AddInclude('jedi-sdl.inc');
 55          AddUnit('smpeg');
 56          AddUnit('sdl');
 57        end;
 58    T:=P.Targets.AddUnit('sdl_net.pas');
 59      with T.Dependencies do
 60        begin
 61          AddInclude('jedi-sdl.inc');
 62          AddUnit('sdl');
 63        end;
 64    T:=P.Targets.AddUnit('sdl.pas');
 65      with T.Dependencies do
 66        begin
 67          AddInclude('jedi-sdl.inc');
 68        end;
 69    T:=P.Targets.AddUnit('sdl_ttf.pas');
 70      with T.Dependencies do
 71        begin
 72          AddInclude('jedi-sdl.inc');
 73          AddUnit('sdl');
 74        end;
 75    T:=P.Targets.AddUnit('sdlutils.pas',[i386,powerpc],[linux,freebsd,win32,darwin,iphonesim]);
 76      with T.Dependencies do
 77        begin
 78          AddInclude('jedi-sdl.inc');
 79          AddUnit('sdl');
 80        end;
 81    T:=P.Targets.AddUnit('smpeg.pas');
 82      with T.Dependencies do
 83        begin
 84          AddInclude('jedi-sdl.inc');
 85          AddUnit('sdl');
 86        end;
 87    P.Sources.AddSrc('LGPL');
 88    P.Sources.AddSrc('LGPL.addon');
 89    P.Sources.AddSrc('MPL-1.1');
 90    P.Sources.AddSrc('README.txt');
 91
 92{$ifndef ALLPACKAGES}
 93    Run;
 94    end;
 95end.
 96{$endif ALLPACKAGES}
 97
 98
 99
100
101