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