mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 05:39:26 +02:00
43 lines
952 B
ObjectPascal
43 lines
952 B
ObjectPascal
{$ifndef ALLPACKAGES}
|
|
{$mode objfpc}{$H+}
|
|
program fpmake;
|
|
|
|
uses {$ifdef unix}cthreads,{$endif} fpmkunit;
|
|
|
|
Var
|
|
P : TPackage;
|
|
T : TTarget;
|
|
begin
|
|
With Installer do
|
|
begin
|
|
{$endif ALLPACKAGES}
|
|
|
|
P:=AddPackage('wasmedge');
|
|
P.ShortName:='wasmedge';
|
|
P.Description := 'Interface unit wasmedge webassembly library.';
|
|
{$ifdef ALLPACKAGES}
|
|
P.Directory:=ADirectory;
|
|
{$endif ALLPACKAGES}
|
|
P.Version:='3.3.1';
|
|
P.SourcePath.Add('src');
|
|
P.OSes := [linux,darwin,win64];
|
|
P.CPUs:=[x86_64];
|
|
T:=P.Targets.AddUnit('libwasmedge.pp');
|
|
|
|
{
|
|
// Need to convert wasmtime examples to wasmedge
|
|
P.ExamplePath.Add('examples');
|
|
P.Targets.AddExampleProgram('helloworld.pp');
|
|
P.Targets.AddExampleProgram('gcd.pp');
|
|
P.Targets.AddExampleProgram('memory.pp');
|
|
P.Targets.AddExampleProgram('wasi.pp');
|
|
}
|
|
|
|
P.NamespaceMap:='namespaces.lst';
|
|
|
|
{$ifndef ALLPACKAGES}
|
|
Run;
|
|
end;
|
|
end.
|
|
{$endif ALLPACKAGES}
|