2
0

fpmake.pp 1022 B

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