mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 08:43:07 +02:00
+ added wasmbin fpmake files
git-svn-id: branches/wasm@46194 -
This commit is contained in:
parent
dbffac46cb
commit
67d5eba6fc
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -18978,6 +18978,7 @@ utils/usubst.pp svneol=native#text/plain
|
|||||||
utils/wasmbin/Makefile svneol=native#text/plain
|
utils/wasmbin/Makefile svneol=native#text/plain
|
||||||
utils/wasmbin/Makefile.fpc svneol=native#text/plain
|
utils/wasmbin/Makefile.fpc svneol=native#text/plain
|
||||||
utils/wasmbin/README.md svneol=native#text/plain
|
utils/wasmbin/README.md svneol=native#text/plain
|
||||||
|
utils/wasmbin/fpmake.pp svneol=native#text/plain
|
||||||
utils/wasmbin/lebutils.pas svneol=native#text/plain
|
utils/wasmbin/lebutils.pas svneol=native#text/plain
|
||||||
utils/wasmbin/parseutils.pas svneol=native#text/plain
|
utils/wasmbin/parseutils.pas svneol=native#text/plain
|
||||||
utils/wasmbin/testscan/asmsym1.wat svneol=native#text/plain
|
utils/wasmbin/testscan/asmsym1.wat svneol=native#text/plain
|
||||||
|
@ -18,3 +18,4 @@
|
|||||||
add_tply(ADirectory+IncludeTrailingPathDelimiter('tply'));
|
add_tply(ADirectory+IncludeTrailingPathDelimiter('tply'));
|
||||||
add_unicode(ADirectory+IncludeTrailingPathDelimiter('unicode'));
|
add_unicode(ADirectory+IncludeTrailingPathDelimiter('unicode'));
|
||||||
add_pas2js(ADirectory+IncludeTrailingPathDelimiter('pas2js'));
|
add_pas2js(ADirectory+IncludeTrailingPathDelimiter('pas2js'));
|
||||||
|
add_wasmbin(ADirectory+IncludeTrailingPathDelimiter('wasmbin'));
|
||||||
|
@ -38,3 +38,5 @@
|
|||||||
|
|
||||||
{$include pas2js/fpmake.pp}
|
{$include pas2js/fpmake.pp}
|
||||||
|
|
||||||
|
{$include wasmbin/fpmake.pp}
|
||||||
|
|
||||||
|
46
utils/wasmbin/fpmake.pp
Normal file
46
utils/wasmbin/fpmake.pp
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{$ifndef ALLPACKAGES}
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
program fpmake;
|
||||||
|
|
||||||
|
uses fpmkunit;
|
||||||
|
{$endif ALLPACKAGES}
|
||||||
|
|
||||||
|
procedure add_wasmbin(const ADirectory: string);
|
||||||
|
|
||||||
|
Var
|
||||||
|
P : TPackage;
|
||||||
|
PT,T : TTarget;
|
||||||
|
|
||||||
|
begin
|
||||||
|
With Installer do
|
||||||
|
begin
|
||||||
|
P:=AddPackage('utils-wasmbin');
|
||||||
|
P.ShortName := 'wsbn';
|
||||||
|
|
||||||
|
P.Author := 'Free Pascal Team';
|
||||||
|
P.License := 'GPL';
|
||||||
|
P.HomepageURL := 'www.freepascal.org';
|
||||||
|
P.Description := 'Collection of WebAssembly binary utils.';
|
||||||
|
P.Email := '';
|
||||||
|
P.NeedLibC:= false;
|
||||||
|
|
||||||
|
P.Directory:=ADirectory;
|
||||||
|
P.Version:='3.3.1';
|
||||||
|
P.OSes:=AllUnixOSes+AllBSDOSes+AllWindowsOSes-[WinCE];
|
||||||
|
if Defaults.CPU=jvm then
|
||||||
|
P.OSes := P.OSes - [java,android];
|
||||||
|
P.Dependencies.Add('fcl-base');
|
||||||
|
PT:=P.Targets.AddProgram('wasa.pas');
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
{$ifndef ALLPACKAGES}
|
||||||
|
begin
|
||||||
|
add_wasmbin('');
|
||||||
|
Installer.Run;
|
||||||
|
end.
|
||||||
|
{$endif ALLPACKAGES}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user