fpmake.pp 732 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. {$ifdef ALLPACKAGES}
  14. P.Directory:='regexpr';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.7.1';
  17. P.SourcePath.Add('src');
  18. // Sorokin's RegExpr
  19. T:=P.Targets.AddUnit('regexpr.pas');
  20. // RegEx from Joost
  21. T:=P.Targets.AddUnit('oldregexpr.pp');
  22. T:=P.Targets.AddUnit('regex.pp');
  23. T.ResourceStrings := True;
  24. P.ExamplePath.Add('examples');
  25. P.Targets.AddExampleProgram('testreg1.pp');
  26. P.Sources.AddExampleFiles('examples/*',false,'.');
  27. {$ifndef ALLPACKAGES}
  28. Run;
  29. end;
  30. end.
  31. {$endif ALLPACKAGES}