fpmake.pp 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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('pthreads');
  13. P.ShortName := 'pthr';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.2.4-rc1';
  18. P.OSes := [beos,haiku,freebsd,darwin,iphonesim,ios,solaris,netbsd,openbsd,linux,aix,dragonfly,android];
  19. if Defaults.CPU=jvm then
  20. P.OSes := P.OSes - [java,android];
  21. P.SourcePath.Add('src');
  22. P.IncludePath.Add('src');
  23. T:=P.Targets.AddUnit('pthreads.pp');
  24. with T.Dependencies do
  25. begin
  26. AddInclude('pthrandroid.inc',[Android]);
  27. AddInclude('pthrlinux.inc',[Linux]);
  28. AddInclude('pthrbeos.inc',[Beos]);
  29. AddInclude('pthrsnos.inc',[Solaris]);
  30. AddInclude('pthrbsd.inc',AllBSDOses);
  31. AddInclude('pthraix.inc',[AIX]);
  32. end;
  33. {$ifndef ALLPACKAGES}
  34. Run;
  35. end;
  36. end.
  37. {$endif ALLPACKAGES}