fpmake.pp 1004 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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('libenet');
  13. P.ShortName:='lnet';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.2.4-rc1';
  18. P.SourcePath.Add('src');
  19. P.SourcePath.Add('examples');
  20. P.IncludePath.Add('src');
  21. { only enable for darwin after testing }
  22. P.OSes := AllUnixOSes+AllWindowsOSes-[qnx,darwin,iphonesim,ios];
  23. if Defaults.CPU=jvm then
  24. P.OSes := P.OSes - [java,android];
  25. P.Dependencies.Add('rtl-extra'); // winsock2
  26. T:=P.Targets.AddUnit('enet.pp');
  27. T:=P.Targets.AddUnit('uenetclass.pp');
  28. with T.Dependencies do
  29. AddUnit('enet');
  30. // Examples
  31. P.ExamplePath.Add('examples');
  32. P.Targets.AddExampleProgram('serverapp.pp');
  33. P.Targets.AddExampleProgram('clientapp.pp');
  34. {$ifndef ALLPACKAGES}
  35. Run;
  36. end;
  37. end.
  38. {$endif ALLPACKAGES}