fpmake.pp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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('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. P.Directory:=ADirectory;
  21. P.Version:='2.7.1';
  22. P.Dependencies.Add('fcl-base');
  23. P.Dependencies.Add('fcl-process');
  24. P.Dependencies.Add('fcl-json');
  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. end;
  33. end;
  34. {$ifndef ALLPACKAGES}
  35. begin
  36. add_pas2jni('');
  37. Installer.Run;
  38. end.
  39. {$endif ALLPACKAGES}