PackageSuperCore.pas 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 04/09/2004 12:45:44 ANeillans
  18. { Moved the databasename and output paths into a globally accessible variable
  19. { -- makes it a lot easier to override if you need to (as I did for my local
  20. { file structure).
  21. }
  22. {
  23. { Rev 1.0 2004.06.02 3:19:56 PM czhower
  24. { Initial Checkin
  25. }
  26. {
  27. { Rev 1.0 2004.02.08 2:28:38 PM czhower
  28. { Initial checkin
  29. }
  30. {
  31. { Rev 1.0 2004.01.22 8:18:34 PM czhower
  32. { Initial checkin
  33. }
  34. unit PackageSuperCore;
  35. interface
  36. uses
  37. Package;
  38. type
  39. TPackageSuperCore = class(TPackage)
  40. protected
  41. procedure GenRequires; override;
  42. public
  43. constructor Create; override;
  44. procedure Generate(ACompiler: TCompiler; const AFlags: TGenerateFlags); override;
  45. end;
  46. implementation
  47. { TPackageSuperCore }
  48. constructor TPackageSuperCore.Create;
  49. begin
  50. inherited;
  51. FOutputSubDir := 'Lib\SuperCore';
  52. end;
  53. procedure TPackageSuperCore.Generate(ACompiler: TCompiler; const AFlags: TGenerateFlags);
  54. begin
  55. FName := 'IndySuperCore' + GCompilerID[ACompiler];
  56. FDesc := 'SuperCore';
  57. FExt := '.dpk';
  58. inherited Generate(ACompiler, AFlags - [gfDesignTime]);
  59. WriteFile;
  60. end;
  61. procedure TPackageSuperCore.GenRequires;
  62. begin
  63. Code('');
  64. Code('requires');
  65. Code(' rtl,');
  66. Code(' IndySystem' + GCompilerID[FCompiler] + ',');
  67. Code(' IndyCore' + GCompilerID[FCompiler] + ';');
  68. end;
  69. end.