mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 18:29:23 +02:00
57 lines
1.5 KiB
ObjectPascal
57 lines
1.5 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('opengl');
|
|
P.ShortName:='ogl';
|
|
{$ifdef ALLPACKAGES}
|
|
P.Directory:=ADirectory;
|
|
{$endif ALLPACKAGES}
|
|
P.Version:='3.3.1';
|
|
P.OSes:=AllUnixOSes+[Win32,Win64]+[MorphOS]-[Android];
|
|
|
|
P.Dependencies.Add('x11',AllUnixOSes-[darwin,iphonesim,ios]);
|
|
if Defaults.CPU<>arm then
|
|
P.Dependencies.Add('x11',[darwin]);
|
|
P.Dependencies.Add('morphunits',[morphos]);
|
|
|
|
P.SourcePath.Add('src');
|
|
P.IncludePath.Add('src');
|
|
|
|
T:=P.Targets.AddImplicitUnit('freeglut.pp',AllOSes-[morphos]);
|
|
T:=P.Targets.AddUnit('glext.pp',AllOSes-[morphos]);
|
|
T:=P.Targets.AddUnit('gl.pp');
|
|
T:=P.Targets.AddUnit('glu.pp');
|
|
T:=P.Targets.AddUnit('glut.pp');
|
|
// T.Dependencies.Add('freeglut',AllOSes-[morphos]);
|
|
T:=P.Targets.AddUnit('glx.pp',AllUnixOSes-[darwin,iphonesim,ios]);
|
|
if Defaults.CPU<>arm then
|
|
T:=P.Targets.AddUnit('glx.pp',[darwin]);
|
|
|
|
P.ExamplePath.Add('examples');
|
|
P.Targets.AddExampleProgram('radblur.pp');
|
|
P.Targets.AddExampleProgram('bounce.pp');
|
|
P.Targets.AddExampleProgram('morph3d.pp');
|
|
P.Targets.AddExampleProgram('glutdemo.pp');
|
|
P.Targets.AddExampleProgram('glxtest.pp');
|
|
P.Sources.AddSrc('readme');
|
|
|
|
|
|
P.NamespaceMap:='namespaces.lst';
|
|
|
|
{$ifndef ALLPACKAGES}
|
|
Run;
|
|
end;
|
|
end.
|
|
{$endif ALLPACKAGES}
|