fpmake.pp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses
  5. {$ifdef unix}
  6. cthreads,
  7. {$endif}
  8. fpmkunit, sysutils;
  9. {$endif ALLPACKAGES}
  10. procedure add_openapi2pas(const ADirectory: string);
  11. Var
  12. P : TPackage;
  13. T : TTarget;
  14. Bin2Obj : string;
  15. begin
  16. With Installer do
  17. begin
  18. P:=AddPackage('utils-openapi2pas');
  19. P.ShortName:='oapi2p';
  20. P.Author := '<various>';
  21. P.License := 'LGPL with modification';
  22. P.HomepageURL := 'www.freepascal.org';
  23. P.Email := '';
  24. P.Description := 'Free Pascal OpenAPI to pascal code generation utility.';
  25. P.NeedLibC:= false;
  26. P.OSes:=AllOSes-[embedded,msdos,win16,go32v2,nativent,macosclassic,palmos,atari,zxspectrum,msxdos,amstradcpc,watcom,sinclairql,wasi,human68k,ps1];
  27. if Defaults.CPU=jvm then
  28. P.OSes := P.OSes - [java,android];
  29. P.Dependencies.Add('fcl-base');
  30. P.Dependencies.Add('fcl-json');
  31. P.Dependencies.Add('fcl-openapi');
  32. P.Dependencies.Add('fcl-jsonschema');
  33. P.Directory:=ADirectory;
  34. P.Version:='3.3.1';
  35. P.Options.Add('-S2h');
  36. T:=P.Targets.AddProgram('openapi2pas.pp');
  37. end;
  38. end;
  39. {$ifndef ALLPACKAGES}
  40. begin
  41. add_openapi2pas('');
  42. Installer.Run;
  43. end.
  44. {$endif ALLPACKAGES}