fpmake.pp 948 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('opengles');
  13. P.ShortName := 'ogls';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Free Pascal Development team';
  19. P.License := 'LGPL with modification';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.OSes := [darwin,iphonesim,ios,linux,win32,win64,wince];
  22. P.Dependencies.Add('x11',AllUnixOSes-[darwin,iphonesim,ios]);
  23. P.SourcePath.Add('src');
  24. T:=P.Targets.AddUnit('gles11.pp',[darwin,iphonesim,ios]);
  25. T:=P.Targets.AddUnit('gles20.pas',[linux,win32,win64,wince,darwin]);
  26. P.Targets.AddExampleProgram('examples/es2example1.pas');
  27. P.Sources.AddExampleFiles('examples/*',P.Directory,false,'.');
  28. {$ifndef ALLPACKAGES}
  29. Run;
  30. end;
  31. end.
  32. {$endif ALLPACKAGES}