fpmake.pp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_h2pas;
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('h2pas');
  14. P.Author := '<various>';
  15. P.License := 'LGPL with modification';
  16. P.HomepageURL := 'www.freepascal.org';
  17. P.Email := '';
  18. P.Description := 'An utility to create Pascal header files from c header files.';
  19. P.NeedLibC:= false;
  20. {$ifdef ALLPACKAGES}
  21. P.Directory:='h2pas';
  22. {$endif ALLPACKAGES}
  23. P.Version:='2.7.1';
  24. P.Options.Add('-Sg');
  25. p.Commands.AddCommand(caBeforeCompile,'pyacc','h2pas.y','h2pas.pas','h2pas.y');
  26. p.Commands.AddCommand(caBeforeCompile,'plex','scan.l','scan.pas','scan.l');
  27. T:=P.Targets.AddProgram('h2pas.pas');
  28. T.Dependencies.AddUnit('h2poptions');
  29. T.Dependencies.AddUnit('h2plexlib');
  30. T.Dependencies.AddUnit('scan');
  31. T.Dependencies.AddUnit('h2pyacclib');
  32. T.Dependencies.AddUnit('converu');
  33. T:=P.Targets.AddUnit('scan.pas');
  34. T.Install:=false;
  35. T.Dependencies.AddUnit('converu');
  36. T.Dependencies.AddUnit('h2poptions');
  37. T:=P.Targets.AddProgram('h2paspp.pas');
  38. P.Targets.AddUnit('h2poptions.pas').install:=false;
  39. P.Targets.AddUnit('h2plexlib.pas').install:=false;
  40. P.Targets.AddUnit('h2pyacclib.pas').install:=false;
  41. P.Targets.AddUnit('converu.pas').install:=false;
  42. end;
  43. end;
  44. {$ifndef ALLPACKAGES}
  45. begin
  46. add_h2pas;
  47. Installer.Run;
  48. end.
  49. {$endif ALLPACKAGES}