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