fpmake.pp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_unicode(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-unicode');
  14. P.Author := 'Inoussa OUEDRAOGO';
  15. P.License := 'LGPL with modification';
  16. P.HomepageURL := 'www.freepascal.org';
  17. P.Email := '';
  18. {$ifdef ALLPACKAGES}
  19. P.Directory:=ADirectory;
  20. {$endif ALLPACKAGES}
  21. P.Version:='2.7.1';
  22. P.Dependencies.Add('rtl');
  23. P.Dependencies.Add('fcl-base');
  24. P.Dependencies.Add('fcl-xml');
  25. P.OSes:=[win32, win64, linux, darwin];
  26. T := P.Targets.AddImplicitUnit('helper.pas');
  27. T.ResourceStrings := true;
  28. T.Install := false;
  29. T := P.Targets.AddImplicitUnit('cldrxml.pas');
  30. T.ResourceStrings := true;
  31. T.Install := false;
  32. T := P.Targets.AddImplicitUnit('unicodeset.pas');
  33. T.ResourceStrings := true;
  34. T.Install := false;
  35. T := P.Targets.AddImplicitUnit('uca_test.pas');
  36. T.Install := false;
  37. T := P.Targets.AddImplicitUnit('cldrhelper.pas');
  38. T.Install := false;
  39. T := P.Targets.AddImplicitUnit('cldrtest.pas');
  40. T.Install := false;
  41. T := P.Targets.AddImplicitUnit('grbtree.pas');
  42. T.Install := false;
  43. T := P.Targets.AddImplicitUnit('trie.pas');
  44. T.Install := false;
  45. T := P.Targets.AddImplicitUnit('unicodeset.pas');
  46. T.Install := false;
  47. T:=P.Targets.AddProgram('cldrparser.lpr');
  48. T:=P.Targets.AddProgram('unihelper.lpr');
  49. end;
  50. end;
  51. {$ifndef ALLPACKAGES}
  52. begin
  53. add_unicode('');
  54. Installer.Run;
  55. end.
  56. {$endif ALLPACKAGES}