fpmake.pp 930 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_json2pas(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-json2pas');
  14. P.Dependencies.Add('fcl-json');
  15. P.ShortName:='jsnp';
  16. P.OSes:=AllOSes-[embedded,msdos,win16,macosclassic,palmos];
  17. if Defaults.CPU=jvm then
  18. P.OSes := P.OSes - [java,android];
  19. P.Author := 'Michael Van Canneyt';
  20. P.License := 'LGPL with modification';
  21. P.HomepageURL := 'www.freepascal.org';
  22. P.Email := '';
  23. P.Description := 'A utility to create Object Pascal classes files from sample JSON files.';
  24. P.NeedLibC:= false;
  25. P.Directory:=ADirectory;
  26. P.Version:='3.2.4-rc1';
  27. T:=P.Targets.AddProgram('json2pas.pp');
  28. end;
  29. end;
  30. {$ifndef ALLPACKAGES}
  31. begin
  32. add_json2pas('');
  33. Installer.Run;
  34. end.
  35. {$endif ALLPACKAGES}