fpmake.pp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_pas2jni(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-pas2jni');
  14. P.ShortName:='p2jn';
  15. P.Author := 'Yury Sidorov';
  16. P.License := 'LGPL with modification';
  17. P.HomepageURL := 'www.freepascal.org';
  18. P.Description := 'The pas2jni utility generates a JNI (Java Native Interface) bridge for a Pascal code.';
  19. P.Email := '';
  20. P.NeedLibC:= false;
  21. P.Directory:=ADirectory;
  22. P.Version:='3.1.1';
  23. P.Dependencies.Add('fcl-base');
  24. P.Dependencies.Add('fcl-process');
  25. P.Dependencies.Add('fcl-json');
  26. T:=P.Targets.AddImplicitUnit('def.pas');
  27. T.Install := false;
  28. T:=P.Targets.AddImplicitUnit('ppuparser.pas');
  29. T.Install := false;
  30. T:=P.Targets.AddImplicitUnit('writer.pas');
  31. T.Install := false;
  32. T:=P.Targets.AddProgram('pas2jni.pas');
  33. end;
  34. end;
  35. {$ifndef ALLPACKAGES}
  36. begin
  37. add_pas2jni('');
  38. Installer.Run;
  39. end.
  40. {$endif ALLPACKAGES}