fpmake.pp 849 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses
  5. {$ifdef unix}cthreads, cwstring,{$endif}
  6. fpmkunit;
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. {$endif ALLPACKAGES}
  14. P:=AddPackage('uuid');
  15. {$ifdef ALLPACKAGES}
  16. P.Directory:=ADirectory;
  17. {$endif ALLPACKAGES}
  18. P.Version:='3.3.1';
  19. P.SourcePath.Add('src');
  20. P.OSes := [linux];
  21. P.Dependencies.Add('rtl-extra');
  22. T:=P.Targets.AddUnit('libuuid.pp');
  23. T:=P.Targets.AddUnit('macuuid.pp');
  24. P.Sources.AddSrc('README.txt');
  25. P.ExamplePath.Add('examples');
  26. P.Targets.AddExampleProgram('testlibuid.pp');
  27. P.Targets.AddExampleProgram('testuid.pp');
  28. P.Sources.AddExampleFiles('examples/*',P.Directory,false,'.');
  29. P.NamespaceMap:='namespaces.lst';
  30. {$ifndef ALLPACKAGES}
  31. Run;
  32. end;
  33. end.
  34. {$endif ALLPACKAGES}