fpmake.pp 814 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_pas2js(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-pas2js');
  14. P.Author := 'Free Pascal Team';
  15. P.License := 'LGPL with modification';
  16. P.HomepageURL := 'www.freepascal.org';
  17. P.Description := 'Convert pascal sources to javascript.';
  18. P.Email := '[email protected]';
  19. P.NeedLibC:= false;
  20. P.Directory:=ADirectory;
  21. P.Version:='3.1.1';
  22. P.Dependencies.Add('fcl-js');
  23. P.Dependencies.Add('fcl-passrc');
  24. P.Dependencies.Add('pastojs');
  25. T:=P.Targets.AddProgram('pas2js.pp');
  26. end;
  27. end;
  28. {$ifndef ALLPACKAGES}
  29. begin
  30. add_pas2js('');
  31. Installer.Run;
  32. end.
  33. {$endif ALLPACKAGES}