fpmake.pp 896 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('regexpr');
  13. P.ShortName:='reg';
  14. P.Description := 'Library for working with regular expressions.';
  15. {$ifdef ALLPACKAGES}
  16. P.Directory:=ADirectory;
  17. {$endif ALLPACKAGES}
  18. P.Version:='3.1.1';
  19. P.OSes:=P.OSes-[embedded];
  20. P.Dependencies.Add('rtl-objpas');
  21. P.SourcePath.Add('src');
  22. // Sorokin's RegExpr
  23. T:=P.Targets.AddUnit('regexpr.pas');
  24. // RegEx from Joost
  25. T:=P.Targets.AddUnit('oldregexpr.pp');
  26. T:=P.Targets.AddUnit('regex.pp');
  27. T.ResourceStrings := True;
  28. P.ExamplePath.Add('examples');
  29. P.Targets.AddExampleProgram('testreg1.pp');
  30. P.Sources.AddExampleFiles('examples/*',false,'.');
  31. {$ifndef ALLPACKAGES}
  32. Run;
  33. end;
  34. end.
  35. {$endif ALLPACKAGES}