Changeset 67 for branches/Transpascal/Compiler/UCompiler.pas
- Timestamp:
- Oct 18, 2010, 12:39:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Compiler/UCompiler.pas
r64 r67 45 45 destructor Destroy; override; 46 46 procedure Init; 47 procedure Compile(ModuleName: string; Source: TStringList );47 procedure Compile(ModuleName: string; Source: TStringList; TargetFolder: string); 48 48 property OnErrorMessage: TOnErrorMessage read FOnErrorMessage 49 49 write FOnErrorMessage; … … 54 54 { TCompiler } 55 55 56 procedure TCompiler.Compile(ModuleName: string; Source: TStringList); 56 procedure TCompiler.Compile(ModuleName: string; Source: TStringList; 57 TargetFolder: string); 57 58 var 58 59 NewModule: TModule; … … 70 71 Producer.Produce(TModule(ProgramCode.Modules[I])); 71 72 Producer.AssignToStringList(ProducedCode); 72 ForceDirectories(CompiledFolder + DirectorySeparator + Producer.ClassName); 73 ProducedCode.SaveToFile(CompiledFolder + DirectorySeparator + Producer.ClassName + 73 ForceDirectories(TargetFolder + DirectorySeparator + 74 CompiledFolder + DirectorySeparator + Producer.ClassName); 75 ProducedCode.SaveToFile(TargetFolder + DirectorySeparator + 76 CompiledFolder + DirectorySeparator + Producer.ClassName + 74 77 DirectorySeparator + TModule(ProgramCode.Modules[I]).Name + Producer.FileExtension); 75 78 end;
Note:
See TracChangeset
for help on using the changeset viewer.