Description

if using -GAME option of GenerateProjectFiles.bat, it does not work correctly by the following codes.

protected void AddProjectsForAllModules( List<FileReference> AllGames, Dictionary<FileReference, ProjectFile> ProgramProjects, List<ProjectFile> ModProjects, List<FileReference> AllModuleFiles, bool bGatherThirdPartySource )protected void AddProjectsForAllModules( List<FileReference> AllGames, Dictionary<FileReference, ProjectFile> ProgramProjects, List<ProjectFile> ModProjects, List<FileReference> AllModuleFiles, bool bGatherThirdPartySource ) 
{
   HashSet<ProjectFile> ProjectsWithPlugins = new HashSet<ProjectFile>(); 
   foreach( FileReference CurModuleFile in AllModuleFiles )
   {
...

// check for engine, or platform extension engine folders
 if( !bIncludeEngineSource ) 
{ 
   if (CurModuleFile.IsUnderDirectory(UnrealBuildTool.EngineDirectory)) 
   { 
      // We were asked to exclude engine modules from the generated projects      
      WantProjectFileForModule = false;
      break;
...

the codes was added by CL-12676637, but it should uses "continue;",not "break;"

Steps to Reproduce
  1. run "GenerateProjectFiles.bat EngineTest\EngineTest.uproject -Game
  2. Check EngineTest\EngineTest.sln

expect : EngineTest.sln containes cpp files of Engine Test project
result : it does not contain them.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-119537 in the post.

2
Login to Vote

Fixed
Fix Commit17803784
Release Commit17803784
CreatedJul 13, 2021
ResolvedOct 13, 2021
UpdatedDec 1, 2022