fpmake.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.3.1';
  19. P.OSes:=P.OSes-[embedded,win16,macosclassic,palmos,zxspectrum,msxdos,amstradcpc,sinclairql];
  20. if Defaults.CPU=jvm then
  21. P.OSes := P.OSes - [java,android];
  22. P.Dependencies.Add('rtl-objpas');
  23. P.SourcePath.Add('src');
  24. // Sorokin's RegExpr
  25. T:=P.Targets.AddUnit('regexpr.pas');
  26. T:=P.Targets.AddUnit('uregexpr.pp');
  27. // RegEx from Joost
  28. T:=P.Targets.AddUnit('oldregexpr.pp');
  29. T:=P.Targets.AddUnit('regex.pp');
  30. T.ResourceStrings := True;
  31. P.ExamplePath.Add('examples');
  32. P.Targets.AddExampleProgram('testreg1.pp');
  33. P.Sources.AddExampleFiles('examples/*',P.Directory,false,'.');
  34. {$ifndef ALLPACKAGES}
  35. Run;
  36. end;
  37. end.
  38. {$endif ALLPACKAGES}