From 67d5eba6fc054763dcd6b8fede7edf5e2a879bd1 Mon Sep 17 00:00:00 2001 From: nickysn Date: Mon, 3 Aug 2020 15:40:05 +0000 Subject: [PATCH] + added wasmbin fpmake files git-svn-id: branches/wasm@46194 - --- .gitattributes | 1 + utils/fpmake_add.inc | 1 + utils/fpmake_proc.inc | 2 ++ utils/wasmbin/fpmake.pp | 46 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 utils/wasmbin/fpmake.pp diff --git a/.gitattributes b/.gitattributes index 373ae088f8..49ae28a281 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18978,6 +18978,7 @@ utils/usubst.pp svneol=native#text/plain utils/wasmbin/Makefile svneol=native#text/plain utils/wasmbin/Makefile.fpc 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/parseutils.pas svneol=native#text/plain utils/wasmbin/testscan/asmsym1.wat svneol=native#text/plain diff --git a/utils/fpmake_add.inc b/utils/fpmake_add.inc index 7258debf2b..017e4cbd37 100644 --- a/utils/fpmake_add.inc +++ b/utils/fpmake_add.inc @@ -18,3 +18,4 @@ add_tply(ADirectory+IncludeTrailingPathDelimiter('tply')); add_unicode(ADirectory+IncludeTrailingPathDelimiter('unicode')); add_pas2js(ADirectory+IncludeTrailingPathDelimiter('pas2js')); + add_wasmbin(ADirectory+IncludeTrailingPathDelimiter('wasmbin')); diff --git a/utils/fpmake_proc.inc b/utils/fpmake_proc.inc index 74824b54f2..4cdd26b0ff 100644 --- a/utils/fpmake_proc.inc +++ b/utils/fpmake_proc.inc @@ -38,3 +38,5 @@ {$include pas2js/fpmake.pp} +{$include wasmbin/fpmake.pp} + diff --git a/utils/wasmbin/fpmake.pp b/utils/wasmbin/fpmake.pp new file mode 100644 index 0000000000..670f000c50 --- /dev/null +++ b/utils/wasmbin/fpmake.pp @@ -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} + + + +