fpmake.pp 953 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_wasmbin(const ADirectory: string);
  11. Var
  12. P : TPackage;
  13. PT,T : TTarget;
  14. begin
  15. With Installer do
  16. begin
  17. P:=AddPackage('utils-wasmbin');
  18. P.ShortName := 'wsbn';
  19. P.Author := 'Free Pascal Team';
  20. P.License := 'GPL';
  21. P.HomepageURL := 'www.freepascal.org';
  22. P.Description := 'Collection of WebAssembly binary utils.';
  23. P.Email := '';
  24. P.NeedLibC:= false;
  25. P.Directory:=ADirectory;
  26. P.Version:='3.3.1';
  27. P.OSes:=AllUnixOSes+AllBSDOSes+AllWindowsOSes-[WinCE];
  28. if Defaults.CPU=jvm then
  29. P.OSes := P.OSes - [java,android];
  30. P.Dependencies.Add('fcl-base');
  31. PT:=P.Targets.AddProgram('wasa.pas');
  32. PT:=P.Targets.AddProgram('wasmtool.lpr');
  33. end;
  34. end;
  35. {$ifndef ALLPACKAGES}
  36. begin
  37. add_wasmbin('');
  38. Installer.Run;
  39. end.
  40. {$endif ALLPACKAGES}