fpmake.pp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.2.0-beta';
  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.Install := false;
  32. T := P.Targets.AddImplicitUnit('cldrxml.pas');
  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.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}