fpmake.pp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} fpmkunit;
  5. Var
  6. T : TTarget;
  7. P : TPackage;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('fcl-ebnf');
  13. P.ShortName:='fclebnf';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Dependencies.Add('fcl-base');
  19. P.Dependencies.Add('rtl-objpas');
  20. P.Dependencies.Add('fcl-fpcunit');
  21. P.Author := 'Michael van Canneyt';
  22. P.License := 'LGPL with modification, ';
  23. P.HomepageURL := 'www.freepascal.org';
  24. P.Email := '';
  25. P.Description := 'EBNF grammar parser';
  26. P.NeedLibC:= false;
  27. P.OSes:=AllOSes-[embedded,msdos,win16,macosclassic,palmos,zxspectrum,msxdos,amstradcpc,sinclairql,human68k,ps1,wasip2];
  28. if Defaults.CPU=jvm then
  29. P.OSes := P.OSes - [java,android];
  30. P.SourcePath.Add('src');
  31. T:=P.Targets.AddUnit('ebnf.tree.pp');
  32. T:=P.Targets.AddUnit('ebnf.scanner.pp');
  33. T.ResourceStrings:=true;
  34. T:=P.Targets.AddUnit('ebnf.parser.pp');
  35. T.ResourceStrings:=true;
  36. with T.Dependencies do
  37. begin
  38. AddUnit('ebnf.tree');
  39. AddUnit('ebnf.scanner');
  40. end;
  41. {$ifndef ALLPACKAGES}
  42. Run;
  43. end;
  44. end.
  45. {$endif ALLPACKAGES}