ソースを参照

* Added fpmake.pp files for pas2fpm, pas2jni and pas2ut

git-svn-id: trunk@24492 -
joost 12 年 前
コミット
2555885541
6 ファイル変更158 行追加0 行削除
  1. 3 0
      .gitattributes
  2. 4 0
      utils/fpmake_add.inc
  3. 8 0
      utils/fpmake_proc.inc
  4. 46 0
      utils/pas2fpm/fpmake.pp
  5. 52 0
      utils/pas2jni/fpmake.pp
  6. 45 0
      utils/pas2ut/fpmake.pp

+ 3 - 0
.gitattributes

@@ -14561,17 +14561,20 @@ utils/mksymbian/projectparser.pas svneol=native#text/plain
 utils/mksymbian/sdkutil.pas svneol=native#text/plain
 utils/mksymbian/sdkutil.pas svneol=native#text/plain
 utils/pas2fpm/Makefile svneol=native#text/plain
 utils/pas2fpm/Makefile svneol=native#text/plain
 utils/pas2fpm/Makefile.fpc 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.lpi svneol=native#text/plain
 utils/pas2fpm/pas2fpm.pp svneol=native#text/plain
 utils/pas2fpm/pas2fpm.pp svneol=native#text/plain
 utils/pas2jni/Makefile svneol=native#text/plain
 utils/pas2jni/Makefile svneol=native#text/plain
 utils/pas2jni/Makefile.fpc svneol=native#text/plain
 utils/pas2jni/Makefile.fpc svneol=native#text/plain
 utils/pas2jni/def.pas 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/pas2jni.pas svneol=native#text/plain
 utils/pas2jni/ppuparser.pas svneol=native#text/plain
 utils/pas2jni/ppuparser.pas svneol=native#text/plain
 utils/pas2jni/readme.txt svneol=native#text/plain
 utils/pas2jni/readme.txt svneol=native#text/plain
 utils/pas2jni/writer.pas svneol=native#text/plain
 utils/pas2jni/writer.pas svneol=native#text/plain
 utils/pas2ut/Makefile svneol=native#text/plain
 utils/pas2ut/Makefile svneol=native#text/plain
 utils/pas2ut/Makefile.fpc 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.lpi svneol=native#text/plain
 utils/pas2ut/pas2ut.pp svneol=native#text/plain
 utils/pas2ut/pas2ut.pp svneol=native#text/plain
 utils/postw32.pp svneol=native#text/plain
 utils/postw32.pp svneol=native#text/plain

+ 4 - 0
utils/fpmake_add.inc

@@ -10,5 +10,9 @@
   add_h2pas;
   add_h2pas;
   add_importtl;
   add_importtl;
   add_instantfpc;
   add_instantfpc;
+  add_pas2fpm;
+  add_pas2jni;
+  add_pas2ut;
   add_rmwait;
   add_rmwait;
   add_tply;
   add_tply;
+  add_unicode;

+ 8 - 0
utils/fpmake_proc.inc

@@ -22,7 +22,15 @@
 
 
 {$include instantfpc/fpmake.pp}
 {$include instantfpc/fpmake.pp}
 
 
+{$include pas2fpm/fpmake.pp}
+
+{$include pas2jni/fpmake.pp}
+
+{$include pas2ut/fpmake.pp}
+
 {$include rmwait/fpmake.pp}
 {$include rmwait/fpmake.pp}
 
 
 {$include tply/fpmake.pp}
 {$include tply/fpmake.pp}
 
 
+{$include unicode/fpmake.pp}
+

+ 46 - 0
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}
+
+
+
+

+ 52 - 0
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}
+
+
+
+

+ 45 - 0
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}
+
+
+
+