fpmake.pp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.ShortName:='ucode';
  15. P.Author := 'Inoussa OUEDRAOGO';
  16. P.License := 'LGPL with modification';
  17. P.HomepageURL := 'www.freepascal.org';
  18. P.Email := '';
  19. P.Description := 'Utilities for processing the Unicode consortium data files for use with FPC.';
  20. {$ifdef ALLPACKAGES}
  21. P.Directory:=ADirectory;
  22. {$endif ALLPACKAGES}
  23. P.Version:='3.1.1';
  24. P.Dependencies.Add('rtl');
  25. P.Dependencies.Add('fcl-base');
  26. P.Dependencies.Add('fcl-xml');
  27. P.OSes:=[win32, win64, linux, darwin, os2, emx];
  28. T := P.Targets.AddImplicitUnit('helper.pas');
  29. T.ResourceStrings := true;
  30. T.Install := false;
  31. T := P.Targets.AddImplicitUnit('cldrxml.pas');
  32. T.ResourceStrings := true;
  33. T.Install := false;
  34. T := P.Targets.AddImplicitUnit('unicodeset.pas');
  35. T.ResourceStrings := true;
  36. T.Install := false;
  37. T := P.Targets.AddImplicitUnit('uca_test.pas');
  38. T.Install := false;
  39. T := P.Targets.AddImplicitUnit('cldrhelper.pas');
  40. T.Install := false;
  41. T := P.Targets.AddImplicitUnit('cldrtest.pas');
  42. T.Install := false;
  43. T := P.Targets.AddImplicitUnit('grbtree.pas');
  44. T.Install := false;
  45. T := P.Targets.AddImplicitUnit('trie.pas');
  46. T.Install := false;
  47. T := P.Targets.AddImplicitUnit('unicodeset.pas');
  48. T.Install := false;
  49. T:=P.Targets.AddProgram('cldrparser.lpr');
  50. T:=P.Targets.AddProgram('unihelper.lpr');
  51. end;
  52. end;
  53. {$ifndef ALLPACKAGES}
  54. begin
  55. add_unicode('');
  56. Installer.Run;
  57. end.
  58. {$endif ALLPACKAGES}