fpmake.pp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses
  5. {$ifdef unix}
  6. cthreads,
  7. {$endif}
  8. fpmkunit;
  9. {$endif ALLPACKAGES}
  10. procedure add_unicode(const ADirectory: string);
  11. Var
  12. P : TPackage;
  13. T : TTarget;
  14. begin
  15. With Installer do
  16. begin
  17. P:=AddPackage('utils-unicode');
  18. P.ShortName:='ucd';
  19. P.OSes:=AllOSes-[embedded,msdos,win16,macosclassic,palmos,zxspectrum,msxdos,amstradcpc,sinclairql,human68k];
  20. if Defaults.CPU=jvm then
  21. P.OSes := P.OSes - [java,android];
  22. P.Author := 'Inoussa OUEDRAOGO';
  23. P.License := 'LGPL with modification';
  24. P.HomepageURL := 'www.freepascal.org';
  25. P.Email := '';
  26. P.Description := 'Utilities for processing the Unicode consortium data files for use with FPC.';
  27. {$ifdef ALLPACKAGES}
  28. P.Directory:=ADirectory;
  29. {$endif ALLPACKAGES}
  30. P.Version:='3.3.1';
  31. P.Dependencies.Add('rtl');
  32. P.Dependencies.Add('fcl-base');
  33. P.Dependencies.Add('fcl-xml');
  34. // P.OSes:=[win32, win64, linux, darwin, os2, emx];
  35. T := P.Targets.AddImplicitUnit('helper.pas');
  36. T.ResourceStrings := true;
  37. T.Install := false;
  38. T := P.Targets.AddImplicitUnit('cldrtxt.pas');
  39. T.Install := false;
  40. T := P.Targets.AddImplicitUnit('cldrxml.pas');
  41. T.Install := false;
  42. T := P.Targets.AddImplicitUnit('unicodeset.pas');
  43. T.ResourceStrings := true;
  44. T.Install := false;
  45. T := P.Targets.AddImplicitUnit('uca_test.pas');
  46. T.Install := false;
  47. T := P.Targets.AddImplicitUnit('cldrhelper.pas');
  48. T.Install := false;
  49. T.ResourceStrings:=true;
  50. T := P.Targets.AddImplicitUnit('cldrtest.pas');
  51. T.Install := false;
  52. T := P.Targets.AddImplicitUnit('grbtree.pas');
  53. T.Install := false;
  54. T := P.Targets.AddImplicitUnit('trie.pas');
  55. T.Install := false;
  56. T:=P.Targets.AddProgram('cldrparser.lpr');
  57. T:=P.Targets.AddProgram('unihelper.lpr');
  58. T:=P.Targets.AddProgram('gbpparser.lpr');
  59. T:=P.Targets.AddProgram('eawparser.lpr');
  60. end;
  61. end;
  62. {$ifndef ALLPACKAGES}
  63. begin
  64. add_unicode('');
  65. Installer.Run;
  66. end.
  67. {$endif ALLPACKAGES}