From 2555885541bf6addabae89baeb794f3054dd9667 Mon Sep 17 00:00:00 2001 From: joost Date: Mon, 13 May 2013 19:56:36 +0000 Subject: [PATCH] * Added fpmake.pp files for pas2fpm, pas2jni and pas2ut git-svn-id: trunk@24492 - --- .gitattributes | 3 +++ utils/fpmake_add.inc | 4 ++++ utils/fpmake_proc.inc | 8 +++++++ utils/pas2fpm/fpmake.pp | 46 ++++++++++++++++++++++++++++++++++++ utils/pas2jni/fpmake.pp | 52 +++++++++++++++++++++++++++++++++++++++++ utils/pas2ut/fpmake.pp | 45 +++++++++++++++++++++++++++++++++++ 6 files changed, 158 insertions(+) create mode 100644 utils/pas2fpm/fpmake.pp create mode 100644 utils/pas2jni/fpmake.pp create mode 100644 utils/pas2ut/fpmake.pp diff --git a/.gitattributes b/.gitattributes index d305e8215f..fd86764c24 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14561,17 +14561,20 @@ utils/mksymbian/projectparser.pas svneol=native#text/plain utils/mksymbian/sdkutil.pas svneol=native#text/plain utils/pas2fpm/Makefile svneol=native#text/plain utils/pas2fpm/Makefile.fpc svneol=native#text/plain +utils/pas2fpm/fpmake.pp svneol=native#text/plain utils/pas2fpm/pas2fpm.lpi svneol=native#text/plain utils/pas2fpm/pas2fpm.pp svneol=native#text/plain utils/pas2jni/Makefile svneol=native#text/plain utils/pas2jni/Makefile.fpc svneol=native#text/plain utils/pas2jni/def.pas svneol=native#text/plain +utils/pas2jni/fpmake.pp svneol=native#text/plain utils/pas2jni/pas2jni.pas svneol=native#text/plain utils/pas2jni/ppuparser.pas svneol=native#text/plain utils/pas2jni/readme.txt svneol=native#text/plain utils/pas2jni/writer.pas svneol=native#text/plain utils/pas2ut/Makefile svneol=native#text/plain utils/pas2ut/Makefile.fpc svneol=native#text/plain +utils/pas2ut/fpmake.pp svneol=native#text/plain utils/pas2ut/pas2ut.lpi svneol=native#text/plain utils/pas2ut/pas2ut.pp svneol=native#text/plain utils/postw32.pp svneol=native#text/plain diff --git a/utils/fpmake_add.inc b/utils/fpmake_add.inc index 61863811df..bcc93c5799 100644 --- a/utils/fpmake_add.inc +++ b/utils/fpmake_add.inc @@ -10,5 +10,9 @@ add_h2pas; add_importtl; add_instantfpc; + add_pas2fpm; + add_pas2jni; + add_pas2ut; add_rmwait; add_tply; + add_unicode; diff --git a/utils/fpmake_proc.inc b/utils/fpmake_proc.inc index 058cbbed7c..2d1b7976d6 100644 --- a/utils/fpmake_proc.inc +++ b/utils/fpmake_proc.inc @@ -22,7 +22,15 @@ {$include instantfpc/fpmake.pp} +{$include pas2fpm/fpmake.pp} + +{$include pas2jni/fpmake.pp} + +{$include pas2ut/fpmake.pp} + {$include rmwait/fpmake.pp} {$include tply/fpmake.pp} +{$include unicode/fpmake.pp} + diff --git a/utils/pas2fpm/fpmake.pp b/utils/pas2fpm/fpmake.pp new file mode 100644 index 0000000000..a4720001ba --- /dev/null +++ b/utils/pas2fpm/fpmake.pp @@ -0,0 +1,46 @@ +{$ifndef ALLPACKAGES} +{$mode objfpc}{$H+} +program fpmake; + +uses fpmkunit; +{$endif ALLPACKAGES} + +procedure add_pas2fpm; + +Var + P : TPackage; + T : TTarget; + +begin + With Installer do + begin + P:=AddPackage('pas2fpm'); + + P.Author := 'Free Pascal Team'; + P.License := 'LGPL with modification'; + P.HomepageURL := 'www.freepascal.org'; + P.Description := 'Generate fpmake.pp for Pascal source.'; + P.Email := ''; + P.NeedLibC:= false; + +{$ifdef ALLPACKAGES} + P.Directory:='pas2fpm'; +{$endif ALLPACKAGES} + P.Version:='2.7.1'; + P.Dependencies.Add('fcl-base'); + P.Dependencies.Add('fcl-passrc'); + + T:=P.Targets.AddProgram('pas2fpm.pp'); + end; +end; + +{$ifndef ALLPACKAGES} +begin + add_pas2fpm; + Installer.Run; +end. +{$endif ALLPACKAGES} + + + + diff --git a/utils/pas2jni/fpmake.pp b/utils/pas2jni/fpmake.pp new file mode 100644 index 0000000000..710acef876 --- /dev/null +++ b/utils/pas2jni/fpmake.pp @@ -0,0 +1,52 @@ +{$ifndef ALLPACKAGES} +{$mode objfpc}{$H+} +program fpmake; + +uses fpmkunit; +{$endif ALLPACKAGES} + +procedure add_pas2jni; + +Var + P : TPackage; + T : TTarget; + +begin + With Installer do + begin + P:=AddPackage('pas2jni'); + + P.Author := 'Yury Sidorov'; + P.License := 'LGPL with modification'; + P.HomepageURL := 'www.freepascal.org'; + P.Description := 'The pas2jni utility generates a JNI (Java Native Interface) bridge for a Pascal code.'; + P.Email := ''; + P.NeedLibC:= false; + +{$ifdef ALLPACKAGES} + P.Directory:='pas2jni'; +{$endif ALLPACKAGES} + P.Version:='2.7.1'; + P.Dependencies.Add('fcl-base'); + + T:=P.Targets.AddImplicitUnit('def.pas'); + T.Install := false; + T:=P.Targets.AddImplicitUnit('ppuparser.pas'); + T.Install := false; + T:=P.Targets.AddImplicitUnit('writer.pas'); + T.Install := false; + T:=P.Targets.AddProgram('pas2jni.pas'); + T.Install := false; + end; +end; + +{$ifndef ALLPACKAGES} +begin + add_pas2jni; + Installer.Run; +end. +{$endif ALLPACKAGES} + + + + diff --git a/utils/pas2ut/fpmake.pp b/utils/pas2ut/fpmake.pp new file mode 100644 index 0000000000..7ca8b966b6 --- /dev/null +++ b/utils/pas2ut/fpmake.pp @@ -0,0 +1,45 @@ +{$ifndef ALLPACKAGES} +{$mode objfpc}{$H+} +program fpmake; + +uses fpmkunit; +{$endif ALLPACKAGES} + +procedure add_pas2ut; + +Var + P : TPackage; + T : TTarget; + +begin + With Installer do + begin + P:=AddPackage('pas2ut'); + + P.Author := 'Free Pascal Team'; + P.License := 'LGPL with modification'; + P.HomepageURL := 'www.freepascal.org'; + P.Description := 'Pascal source to FPC Unit test generator program'; + P.Email := ''; + P.NeedLibC:= false; + +{$ifdef ALLPACKAGES} + P.Directory:='pas2ut'; +{$endif ALLPACKAGES} + P.Version:='2.7.1'; + P.Dependencies.Add('fcl-passrc'); + + T:=P.Targets.AddProgram('pas2ut.pp'); + end; +end; + +{$ifndef ALLPACKAGES} +begin + add_pas2ut; + Installer.Run; +end. +{$endif ALLPACKAGES} + + + +