Переглянути джерело

Fix STATICCOMPILER and STATICPREPROC.

Martijn Laan 1 рік тому
батько
коміт
c094df1b0e
3 змінених файлів з 11 додано та 9 видалено
  1. 4 2
      Projects/ISCC.dpr
  2. 4 4
      Projects/Src/Compiler.Compile.pas
  3. 3 3
      Projects/Src/IDE.MainForm.pas

+ 4 - 2
Projects/ISCC.dpr

@@ -12,14 +12,16 @@ program ISCC;
 
 
 {x$DEFINE STATICCOMPILER}
 {x$DEFINE STATICCOMPILER}
 { For debugging purposes, remove the 'x' to have it link the compiler code
 { For debugging purposes, remove the 'x' to have it link the compiler code
-  into this program and not depend on ISCmplr.dll. }
+  into this program and not depend on ISCmplr.dll. You will also need to add the
+  ..\Components and Src folders to the Delphi Compiler Search path in the project
+  options. Also see IDE.MainForm's STATICCOMPILER and Compiler.Compile's STATICPREPROC. }
 
 
 uses
 uses
   SafeDLLPath in '..\Components\SafeDLLPath.pas',
   SafeDLLPath in '..\Components\SafeDLLPath.pas',
   Windows,
   Windows,
   SysUtils,
   SysUtils,
   Classes,
   Classes,
-  {$IFDEF STATICCOMPILER} ISCmplr.Compile in 'Src\ISCmplr\ISCmplr.Compile.pas', {$ENDIF}
+  Compiler.Compile,
   PathFunc in '..\Components\PathFunc.pas',
   PathFunc in '..\Components\PathFunc.pas',
   Shared.CommonFunc in 'Src\Shared.CommonFunc.pas',
   Shared.CommonFunc in 'Src\Shared.CommonFunc.pas',
   Shared.CompilerInt in 'Src\Shared.CompilerInt.pas',
   Shared.CompilerInt in 'Src\Shared.CompilerInt.pas',

+ 4 - 4
Projects/Src/Compiler.Compile.pas

@@ -13,7 +13,7 @@ unit Compiler.Compile;
 { For debugging purposes, remove the 'x' to have it link the ISPP code into this
 { For debugging purposes, remove the 'x' to have it link the ISPP code into this
   program and not depend on ISPP.dll. You will also need to add the Src
   program and not depend on ISPP.dll. You will also need to add the Src
   folder to the Delphi Compiler Search path in the project options. Most useful
   folder to the Delphi Compiler Search path in the project options. Most useful
-  when combine with IDE.MainForm's STATICCOMPILER. }
+  when combined with IDE.MainForm's or ISCC's STATICCOMPILER. }
 
 
 interface
 interface
 
 
@@ -30,13 +30,13 @@ type
 implementation
 implementation
 
 
 uses
 uses
-  Shared.PreprocInt, Commctrl, Consts, Classes, IniFiles, TypInfo, AnsiStrings, Math,
-  Generics.Collections, StrUtils, WideStrUtils,
+  Shared.PreprocInt, Commctrl, Vcl.Consts { Vcl prefix for ISCC's STATICCOMPILER support }, Classes,
+  IniFiles, TypInfo, AnsiStrings, Math, Generics.Collections, StrUtils, WideStrUtils,
   PathFunc, Shared.CommonFunc, Shared.Struct, Shared.Int64Em, Compiler.Messages, Shared.SetupEntFunc,
   PathFunc, Shared.CommonFunc, Shared.Struct, Shared.Int64Em, Compiler.Messages, Shared.SetupEntFunc,
   Shared.FileClass, Compression.Base, Compression.Zlib, Compression.bzlib, Compression.LZMACompressor, Shared.ArcFour, SHA1,
   Shared.FileClass, Compression.Base, Compression.Zlib, Compression.bzlib, Compression.LZMACompressor, Shared.ArcFour, SHA1,
   Shared.SetupMessageIDs, Shared.SetupSectionDirectives, Shared.LangOptionsSectionDirectives, Shared.DebugStruct, Shared.VerInfoFunc, Shared.ResUpdateFunc, Compiler.ExeUpdateFunc,
   Shared.SetupMessageIDs, Shared.SetupSectionDirectives, Shared.LangOptionsSectionDirectives, Shared.DebugStruct, Shared.VerInfoFunc, Shared.ResUpdateFunc, Compiler.ExeUpdateFunc,
 {$IFDEF STATICPREPROC}
 {$IFDEF STATICPREPROC}
-  IsppPreprocess,
+  ISPP.Preprocess,
 {$ENDIF}
 {$ENDIF}
   Compiler.ScriptCompiler, SimpleExpression, Shared.SetupTypes;
   Compiler.ScriptCompiler, SimpleExpression, Shared.SetupTypes;
 
 

+ 3 - 3
Projects/Src/IDE.MainForm.pas

@@ -12,8 +12,8 @@
 {x$DEFINE STATICCOMPILER}
 {x$DEFINE STATICCOMPILER}
 { For debugging purposes, remove the 'x' to have it link the compiler code into
 { For debugging purposes, remove the 'x' to have it link the compiler code into
   this program and not depend on ISCmplr.dll. You will also need to add the
   this program and not depend on ISCmplr.dll. You will also need to add the
-  ..\Components and Src folders to the Delphi Compiler Search path
-  in the project options. Also see Compiler.Compile's STATICPREPROC. }
+  ..\Components and Src folders to the Delphi Compiler Search path in the project
+  options. Also see ISCC's STATICCOMPILER and Compiler.Compile's STATICPREPROC. }
 
 
 {$IFDEF STATICCOMPILER}
 {$IFDEF STATICCOMPILER}
 {$R ..\Res\ISCmplr.images.res}
 {$R ..\Res\ISCmplr.images.res}
@@ -653,7 +653,7 @@ uses
   Math, StrUtils, WideStrUtils,
   Math, StrUtils, WideStrUtils,
   PathFunc, Shared.CommonFunc.Vcl, Shared.CommonFunc, Shared.FileClass, IDE.Messages, NewUxTheme.TmSchema, BrowseFunc,
   PathFunc, Shared.CommonFunc.Vcl, Shared.CommonFunc, Shared.FileClass, IDE.Messages, NewUxTheme.TmSchema, BrowseFunc,
   IDE.HtmlHelpFunc, TaskbarProgressFunc,
   IDE.HtmlHelpFunc, TaskbarProgressFunc,
-  {$IFDEF STATICCOMPILER} Compile, {$ENDIF}
+  {$IFDEF STATICCOMPILER} Compiler.Compile, {$ENDIF}
   IDE.OptionsForm, IDE.StartupForm, IDE.Wizard.WizardForm, IDE.SignToolsForm,
   IDE.OptionsForm, IDE.StartupForm, IDE.Wizard.WizardForm, IDE.SignToolsForm,
   Shared.ConfigIniFile, Shared.SignToolsFunc, IDE.InputQueryComboForm, IDE.MsgBoxDesignerForm,
   Shared.ConfigIniFile, Shared.SignToolsFunc, IDE.InputQueryComboForm, IDE.MsgBoxDesignerForm,
   IDE.FilesDesignerForm, IDE.RegistryDesignerForm, IDE.Wizard.WizardFormRegistryHelper;
   IDE.FilesDesignerForm, IDE.RegistryDesignerForm, IDE.Wizard.WizardFormRegistryHelper;