Ignore:
Timestamp:
Jul 17, 2012, 6:44:54 AM (12 years ago)
Author:
chronos
Message:
  • Modified: Compiler will accept source code not only from files but it can be feed by in-memory content.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE/Forms/UFormMain.pas

    r55 r59  
    168168begin
    169169  FormSourceCode.Save;
     170  AProjectSave.Execute;
    170171  with Core do begin
    171172    // Compile project file
     
    178179    if Project.Files.Count > 0 then
    179180    with TProjectFile(Project.Files[0]) do begin
    180       Compiler.SourceFiles.Clear;
    181       Project.Files.DumpFileList(Compiler.SourceFiles);
     181      Compiler.SourceFiles.Files.Clear;
     182      Project.Files.DumpFileList(Compiler.SourceFiles.Files);
    182183      Compiler.MainSource := Project.MainSource.AbsoluteFileName;
    183184      TargetProject.FileName := ExtractFileDir(Project.FileName) + DirectorySeparator +
     
    186187      Compiler.TargetFolder := ExtractFileDir(TargetProject.FileName);
    187188      Compiler.Compile;
    188       TargetProject.Files.LoadFromList(Compiler.TargetFiles);
     189      TargetProject.Files.LoadFromList(Compiler.TargetFiles.Files);
    189190      FormTargetProject.UpdateInterface;
    190191    end;
Note: See TracChangeset for help on using the changeset viewer.