| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- {
- $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.5 3/3/2005 7:46:24 PM JPMugaas
- { Backdoors for BDS assembly version information.
- }
- {
- { Rev 1.4 9/7/2004 3:50:46 PM JPMugaas
- { Updates.
- }
- {
- { Rev 1.3 04/09/2004 12:45:16 ANeillans
- { Moved the databasename and output paths into a globally accessible variable
- { -- makes it a lot easier to override if you need to (as I did for my local
- { file structure).
- }
- {
- { Rev 1.2 2004.06.13 8:06:12 PM czhower
- { Update for D8
- }
- {
- { Rev 1.1 02/06/2004 17:00:46 HHariri
- { design-time added
- }
- {
- { Rev 1.0 2004.02.08 2:28:34 PM czhower
- { Initial checkin
- }
- {
- { Rev 1.0 2004.01.22 8:18:34 PM czhower
- { Initial checkin
- }
- unit PackageCore;
- interface
- uses
- Package;
- type
- TPackageCore = class(TPackage)
- public
- procedure Generate(ACompiler: TCompiler); override;
- procedure GenerateDT(ACompiler: TCompiler); override;
- end;
- implementation
- uses
- Dialogs, DModule;
- { TPackageCore }
- procedure TPackageCore.Generate(ACompiler: TCompiler);
- begin
- inherited;
- FName := 'IndyCore' + GCompilerID[Compiler];
- FDesc := 'Core';
- GenHeader;
- GenOptions;
- Code('');
- Code('requires');
- if ACompiler in DelphiNet then begin
- Code('Borland.Delphi,');
- Code('Borland.VclRtl,');
- end
- else if ACompiler = ctDelphi5 then begin
- Code(' Vcl50,');
- end else begin
- Code(' rtl,');
- end;
- Code(' IndySystem' + GCompilerID[Compiler] + ';');
- GenContains;
- //back door for embedding version information into an assembly
- //without having to do anything to the package directly.
- if Compiler in DelphiNet then
- begin
- Code('{$I IdCore90ASM90.inc}');
- end;
- WriteFile(DM.OutputPath + '\Lib\Core\');
- end;
- procedure TPackageCore.GenerateDT(ACompiler: TCompiler);
- begin
- inherited;
- FName := 'dclIndyCore' + GCompilerID[Compiler];
- FDesc := 'Core Design Time';
- GenHeader;
- GenOptions(True);
- Code('');
- Code('requires');
- if ACompiler = ctDelphi5 then begin
- Code(' Vcl50,');
- end else if ACompiler in [ctDelphi6, ctDelphi7] then begin
- Code(' vcl,');
- end;
- if ACompiler in DelphiNet then
- begin
- Code(' System.Windows.Forms,');
- Code(' Borland.Studio.Vcl.Design,');
- end
- else if ACompiler <> ctDelphi5 then
- begin
- Code(' designide,');
- end;
- Code(' IndySystem' + GCompilerID[Compiler] + ',');
- Code(' IndyCore' + GCompilerID[Compiler] + ';');
- GenContains;
- //back door for embedding version information into an assembly
- //without having to do anything to the package directly.
- if Compiler in DelphiNet then
- begin
- Code('{$I IddclCore90ASM90.inc}');
- end;
- WriteFile(DM.OutputPath + '\Lib\Core\');
- end;
- end.
|