PackageSecurity.pas 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. $Project$
  3. $Workfile$
  4. $Revision$
  5. $DateUTC$
  6. $Id$
  7. This file is part of the Indy (Internet Direct) project, and is offered
  8. under the dual-licensing agreement described on the Indy website.
  9. (http://www.indyproject.org/)
  10. Copyright:
  11. (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved.
  12. }
  13. {
  14. $Log$
  15. }
  16. {
  17. { Rev 1.1 3/28/2005 1:11:46 PM JPMugaas
  18. { Package build errors.
  19. }
  20. {
  21. { Rev 1.0 3/28/2005 5:53:06 AM JPMugaas
  22. { New security package.
  23. }
  24. unit PackageSecurity;
  25. interface
  26. uses
  27. Package;
  28. type
  29. TPackageSecurity = class(TPackage)
  30. public
  31. procedure Generate(ACompiler: TCompiler); override;
  32. procedure GenerateDT(ACompiler: TCompiler); override;
  33. end;
  34. implementation
  35. uses
  36. DModule;
  37. { TPackageSecurity }
  38. procedure TPackageSecurity.Generate(ACompiler: TCompiler);
  39. begin
  40. if not (ACompiler in DelphiNet) then
  41. begin
  42. Exit;
  43. end;
  44. inherited;
  45. FName := 'IndySecurity' + GCompilerID[Compiler];
  46. FDesc := 'Security';
  47. GenHeader;
  48. GenOptions;
  49. Code('');
  50. Code('requires');
  51. Code(' Borland.Delphi,');
  52. Code(' Borland.VclRtl,');
  53. Code(' IndySystem' + GCompilerID[Compiler] + ',');
  54. Code(' IndyCore' + GCompilerID[Compiler] + ',');
  55. Code(' IndyProtocols'+ GCompilerID[Compiler] + ',');
  56. Code(' Mono.Security,');
  57. Code(' System,');
  58. Code(' System.Data,');
  59. Code(' System.XML;');
  60. GenContains;
  61. //back door for embedding version information into an assembly
  62. //without having to do anything to the package directly.
  63. Code('{$I IdSecurity90ASM90.inc}');
  64. WriteFile(DM.OutputPath + '\Lib\Security\');
  65. end;
  66. procedure TPackageSecurity.GenerateDT(ACompiler: TCompiler);
  67. begin
  68. if not (ACompiler in DelphiNet) then
  69. begin
  70. Exit;
  71. end;
  72. inherited;
  73. FName := 'dclIndySecurity' + GCompilerID[Compiler];
  74. FDesc := 'Security';
  75. GenHeader;
  76. GenOptions(True);
  77. Code('');
  78. Code('requires');
  79. Code(' Borland.Studio.Vcl.Design,');
  80. Code(' IndySystem' + GCompilerID[Compiler] + ',');
  81. Code(' IndyCore' + GCompilerID[Compiler] + ',');
  82. Code(' IndyProtocols'+ GCompilerID[Compiler] + ',');
  83. Code(' IndySecurity'+ GCompilerID[Compiler] + ',');
  84. Code(' dclIndyCore' + GCompilerID[Compiler]+',');
  85. Code(' dclIndyProtocols' + GCompilerID[Compiler]+',');
  86. Code(' Mono.Security,');
  87. Code(' System,');
  88. Code(' System.Data,');
  89. Code(' System.XML;');
  90. GenContains;
  91. //back door for embedding version information into an assembly
  92. //without having to do anything to the package directly.
  93. Code('{$I IddclSecurity90ASM90.inc}');
  94. WriteFile(DM.OutputPath + '\Lib\Security\');
  95. end;
  96. end.