fpmake.pp 952 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('wasmedge');
  13. P.ShortName:='wasmedge';
  14. P.Description := 'Interface unit wasmedge webassembly library.';
  15. {$ifdef ALLPACKAGES}
  16. P.Directory:=ADirectory;
  17. {$endif ALLPACKAGES}
  18. P.Version:='3.3.1';
  19. P.SourcePath.Add('src');
  20. P.OSes := [linux,darwin,win64];
  21. P.CPUs:=[x86_64];
  22. T:=P.Targets.AddUnit('libwasmedge.pp');
  23. {
  24. // Need to convert wasmtime examples to wasmedge
  25. P.ExamplePath.Add('examples');
  26. P.Targets.AddExampleProgram('helloworld.pp');
  27. P.Targets.AddExampleProgram('gcd.pp');
  28. P.Targets.AddExampleProgram('memory.pp');
  29. P.Targets.AddExampleProgram('wasi.pp');
  30. }
  31. P.NamespaceMap:='namespaces.lst';
  32. {$ifndef ALLPACKAGES}
  33. Run;
  34. end;
  35. end.
  36. {$endif ALLPACKAGES}