Where is the ModuleRules class defined?

Hi Everyone,

I’m looking to make some changes to our Build.cs file to improve our build process, and I have been trying to find the definition of the ModuleRules class to no avail.

I’ve done a search in the Unreal Engine source directories, and looked through the wiki/docs/forums.

More specifically, I want to introduce behavior that checks if entries have been added to things like ‘PublicIncludePaths’ and ‘Definitions’ (via ‘Definitions.Add(…)’ etc) and perform different tasks based on that.

Can anyone point me to any documentation/source location for the ModuleRules class itself?

Thanks

Thanks, Ehamloptiran. Exactly what I needed.

You will find ModuleRules in "UnrealBuildTool\System\RulesCompiler.cs abstract class starting at line 68

No longer true. It is now found in UnrealBuildTool/Configuration/ModuleRules.cs

תודה רותם
Thank you very much! I would like to upvote your comment if it was possible. Please consider making it a separate answer.