fpmake.pp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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('symbolic');
  13. P.ShortName:='symb';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Marco van de Voort';
  19. P.License := 'LGPL with modification, ';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Email := '';
  22. P.Description := 'Expression parser with support for fast evaluation';
  23. P.NeedLibC:= false;
  24. P.OSes:=P.OSes-[embedded,msdos,win16,macos,palmos];
  25. if Defaults.CPU=jvm then
  26. P.OSes := P.OSes - [java,android];
  27. P.SourcePath.Add('src');
  28. P.IncludePath.Add('src');
  29. T:=P.Targets.AddUnit('symbolic.pas');
  30. with T.Dependencies do
  31. begin
  32. AddInclude('exprstrs.inc');
  33. AddInclude('parsexpr.inc');
  34. AddInclude('symbexpr.inc');
  35. AddInclude('teval.inc');
  36. AddInclude('rearrang.inc');
  37. end;
  38. T.ResourceStrings := True;
  39. P.ExamplePath.Add('examples');
  40. P.Targets.AddExampleProgram('evaltest.pas');
  41. P.Targets.AddExampleProgram('rpnthing.pas');
  42. P.Targets.AddExampleProgram('easyevalexample.pp');
  43. P.Sources.AddDoc('doc/optimization.txt');
  44. P.Sources.AddDoc('doc/symbolic.txt');
  45. {$ifndef ALLPACKAGES}
  46. Run;
  47. end;
  48. end.
  49. {$endif ALLPACKAGES}