fpmake.pp 1015 B

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