fpmake.pp 787 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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('openal');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.7.1';
  17. if Defaults.CPU = i386 then
  18. P.OSes := [linux,win32,darwin]
  19. else
  20. P.OSes := [linux,win32];
  21. P.SourcePath.Add('src');
  22. P.IncludePath.Add('src');
  23. T:=P.Targets.AddUnit('openal.pas');
  24. with T.Dependencies do
  25. begin
  26. AddInclude('alh.inc');
  27. AddInclude('alch.inc');
  28. AddInclude('alexth.inc');
  29. end;
  30. P.ExamplePath.Add('examples');
  31. P.Targets.AddExampleProgram('madopenal.pas');
  32. {$ifndef ALLPACKAGES}
  33. Run;
  34. end;
  35. end.
  36. {$endif ALLPACKAGES}