Changeset 38 for trunk/IDE/Forms/UMainForm.pas
- Timestamp:
- Feb 25, 2012, 6:04:21 PM (13 years ago)
- Location:
- trunk/IDE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE
- Property svn:ignore
-
old new 5 5 Transpascal.exe 6 6 heaptrclog.trc 7 Transpascal
-
- Property svn:ignore
-
trunk/IDE/Forms/UMainForm.pas
r37 r38 138 138 LogParsing: Boolean; 139 139 Project: TProject; 140 TargetProject: TProject; 140 141 Compiler: TCustomCompiler; 141 142 function GetSource(Name: string; var SourceCode: string): Boolean; … … 203 204 Compiler.Producer := TProducer(Compiler.Producers[SelectedProducerIndex]); 204 205 Compiler.Analyzer := TAnalyzer(Compiler.Analyzers[SelectedAnalyzerIndex]); 205 Compiler.Analyzer.OnGetSource := GetSource;206 206 Compiler.Init; 207 207 … … 212 212 if Project.Items.Count > 0 then 213 213 with TProjectFile(Project.Items[0]) do begin 214 Compiler.SourceFiles.Clear; 215 Project.DumpFileList(Compiler.SourceFiles); 214 216 Compiler.TargetFolder := Project.RootDir; 215 Compiler.Compile (Parent.GetDir + ExtractFileNameOnly(Name), Source);217 Compiler.Compile; 216 218 end; 217 219 ProjectManager.TreeViewProjectChange(Self, ProjectManager.TreeViewProject.Selected); … … 453 455 Compiler := TCustomCompiler.Create; 454 456 Project := TProject.Create; 457 TargetProject := TProject.Create; 455 458 LastOpenedFiles := TLastOpenedList.Create; 456 459 LastOpenedFiles.MenuItem := MenuItemOpenRecent; … … 461 464 begin 462 465 LastOpenedFiles.Free; 466 TargetProject.Free; 463 467 Project.Free; 464 468 Compiler.Free;
Note:
See TracChangeset
for help on using the changeset viewer.