fpmake.pp 1.8 KB

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