fpmake.pp 911 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_wasmbin(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. PT,T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-wasmbin');
  14. P.ShortName := 'wsbn';
  15. P.Author := 'Free Pascal Team';
  16. P.License := 'GPL';
  17. P.HomepageURL := 'www.freepascal.org';
  18. P.Description := 'Collection of WebAssembly binary utils.';
  19. P.Email := '';
  20. P.NeedLibC:= false;
  21. P.Directory:=ADirectory;
  22. P.Version:='3.3.1';
  23. P.OSes:=AllUnixOSes+AllBSDOSes+AllWindowsOSes-[WinCE];
  24. if Defaults.CPU=jvm then
  25. P.OSes := P.OSes - [java,android];
  26. P.Dependencies.Add('fcl-base');
  27. PT:=P.Targets.AddProgram('wasa.pas');
  28. PT:=P.Targets.AddProgram('wasmtool.lpr');
  29. end;
  30. end;
  31. {$ifndef ALLPACKAGES}
  32. begin
  33. add_wasmbin('');
  34. Installer.Run;
  35. end.
  36. {$endif ALLPACKAGES}