fpmake.pp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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('tplylib');
  13. P.ShortName:='tpll';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. { java and jvm-android do not support
  19. fpc_get_output used in these sources }
  20. if Defaults.CPU=jvm then
  21. P.OSes := P.OSes - [java,android];
  22. { palmos does not support command line parameters }
  23. P.OSes := P.OSes - [palmos];
  24. { Program does not fit in 16-bit memory constraints }
  25. P.OSes := P.OSes - [msdos,win16];
  26. { avr-embedded and i8086-embedded do not meet needed requirements }
  27. if Defaults.CPU in [avr,i8086] then
  28. P.OSes := P.OSes - [embedded];
  29. P.OSes := P.OSes - [wasip2];
  30. P.Author := '<various>';
  31. P.License := 'LGPL with modification';
  32. P.HomepageURL := 'www.freepascal.org';
  33. P.Email := '';
  34. P.Description := 'Library units for a compiler generator for Turbo Pascal and compatibles.';
  35. P.NeedLibC:= false;
  36. P.SourcePath.Add('src');
  37. P.IncludePath.Add('src');
  38. P.Options.Add('-Sg');
  39. P.Targets.AddUnit('lexlib.pas');
  40. P.Targets.AddUnit('yacclib.pas');
  41. P.NamespaceMap:='namespaces.lst';
  42. {$ifndef ALLPACKAGES}
  43. Run;
  44. end;
  45. end.
  46. {$endif ALLPACKAGES}