| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- {
- $Project$
- $Workfile$
- $Revision$
- $DateUTC$
- $Id$
- This file is part of the Indy (Internet Direct) project, and is offered
- under the dual-licensing agreement described on the Indy website.
- (http://www.indyproject.org/)
- Copyright:
- (c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved.
- }
- {
- $Log$
- }
- {
- { Rev 1.1 3/28/2005 1:11:46 PM JPMugaas
- { Package build errors.
- }
- {
- { Rev 1.0 3/28/2005 5:53:06 AM JPMugaas
- { New security package.
- }
- unit PackageSecurity;
- interface
- uses
- Package;
- type
- TPackageSecurity = class(TPackage)
- public
- procedure Generate(ACompiler: TCompiler); override;
- procedure GenerateDT(ACompiler: TCompiler); override;
- end;
- implementation
- uses
- DModule;
- { TPackageSecurity }
- procedure TPackageSecurity.Generate(ACompiler: TCompiler);
- begin
- if not (ACompiler in DelphiNet) then
- begin
- Exit;
- end;
- inherited;
- FName := 'IndySecurity' + GCompilerID[Compiler];
- FDesc := 'Security';
- GenHeader;
- GenOptions;
- Code('');
- Code('requires');
- Code(' Borland.Delphi,');
- Code(' Borland.VclRtl,');
- Code(' IndySystem' + GCompilerID[Compiler] + ',');
- Code(' IndyCore' + GCompilerID[Compiler] + ',');
- Code(' IndyProtocols'+ GCompilerID[Compiler] + ',');
- Code(' Mono.Security,');
- Code(' System,');
- Code(' System.Data,');
- Code(' System.XML;');
- GenContains;
- //back door for embedding version information into an assembly
- //without having to do anything to the package directly.
- Code('{$I IdSecurity90ASM90.inc}');
- WriteFile(DM.OutputPath + '\Lib\Security\');
- end;
- procedure TPackageSecurity.GenerateDT(ACompiler: TCompiler);
- begin
- if not (ACompiler in DelphiNet) then
- begin
- Exit;
- end;
- inherited;
- FName := 'dclIndySecurity' + GCompilerID[Compiler];
- FDesc := 'Security';
- GenHeader;
- GenOptions(True);
- Code('');
- Code('requires');
- Code(' Borland.Studio.Vcl.Design,');
- Code(' IndySystem' + GCompilerID[Compiler] + ',');
- Code(' IndyCore' + GCompilerID[Compiler] + ',');
- Code(' IndyProtocols'+ GCompilerID[Compiler] + ',');
- Code(' IndySecurity'+ GCompilerID[Compiler] + ',');
- Code(' dclIndyCore' + GCompilerID[Compiler]+',');
- Code(' dclIndyProtocols' + GCompilerID[Compiler]+',');
- Code(' Mono.Security,');
- Code(' System,');
- Code(' System.Data,');
- Code(' System.XML;');
- GenContains;
- //back door for embedding version information into an assembly
- //without having to do anything to the package directly.
- Code('{$I IddclSecurity90ASM90.inc}');
- WriteFile(DM.OutputPath + '\Lib\Security\');
- end;
- end.
|