fpmake.pp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('libpcre');
  13. P.ShortName:='pcre';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Library: PCRE';
  19. P.License := 'Library: BSD License, header: LGPL with modification, ';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Email := '';
  22. P.Description := 'Headers for the PCRE (Perl Compatible Regular Expressions) library';
  23. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  24. P.OSes := [Win64,Linux,darwin];
  25. P.SourcePath.Add('src');
  26. P.IncludePath.Add('src');
  27. T:=P.Targets.AddUnit('libpcre2_8.pp');
  28. with T.Dependencies do
  29. begin
  30. AddInclude('pcreconst.inc');
  31. end;
  32. T:=P.Targets.AddUnit('libpcre2_16.pp');
  33. T.OSes:=[Win64,Linux];
  34. with T.Dependencies do
  35. begin
  36. AddInclude('pcreconst.inc');
  37. end;
  38. T:=P.Targets.AddUnit('libpcre2_32.pp');
  39. T.OSes:=[Win64,Linux];
  40. P.ExamplePath.Add('examples');
  41. P.Targets.AddExampleProgram('tpcre.pp');
  42. P.NamespaceMap:='namespaces.lst';
  43. {$ifndef ALLPACKAGES}
  44. Run;
  45. end;
  46. end.
  47. {$endif ALLPACKAGES}