Commit Graph

310 Commits

Author SHA1 Message Date
marc audy
6a76a0e4b9 Add UE_DIRECT_HEADER_COMPILE to allow avoiding warnings/errors in single-header compilation.
Replace setting SUPPRESS_MONOLITHIC_HEADER_WARNINGS with UE_DIRECT_HEADER_COMPILE for header compilation situations
#rnx
#rb Christopher.Waters, Joe.Kirchoff

[CL 33672325 by marc audy in ue5-main branch]
2024-05-15 17:47:03 -04:00
joe kirchoff
15dd07ca7e UnrealBuildTool: Always write a .cpp file when compiling stand-alone headers
#rnx

[CL 33638117 by joe kirchoff in ue5-main branch]
2024-05-14 18:12:01 -04:00
joe kirchoff
5066d97820 UnrealBuildTool: Shorten -IncludeHeader path
#rnx

[CL 33634799 by joe kirchoff in ue5-main branch]
2024-05-14 15:15:28 -04:00
joe kirchoff
aae11b81ee UnrealBuildTool: -IncludeHeader fixes
* Headers can have duplicate filenames which results in intermediate file conflicts, generate an intermediate subdirectory using the header relative path from the module root
* Don't use PCH for headers (also fix the original unmodified module compile environment being overwitten due to not making a copy !!!)
* Set SUPPRESS_MONOLITHIC_HEADER_WARNINGS=0 for header compiles
* Remove the need to generate a separate file to include the header with -SingleFile
* Fix /TC not being passed to clang-cl
* Disable a few clang #pragma related warnings

#rnx
#jira UE-214521
#rb christopher.waters

[CL 33608666 by joe kirchoff in ue5-main branch]
2024-05-13 16:24:15 -04:00
joe kirchoff
d28a36cabb UnrealBuildTool: Fix /analyze not being applied to -SingleFile when the module contains generated cpp files
#jira UE-213788
#rb henrik.karlsson

[CL 33461515 by joe kirchoff in ue5-main branch]
2024-05-06 13:14:41 -04:00
joe kirchoff
b10d0d13bf UnrealBuildTool: Put a mutex around project intellisense generation
#rnx
#jira UE-213872

[CL 33429991 by joe kirchoff in ue5-main branch]
2024-05-03 13:43:57 -04:00
henrik karlsson
026b657d49 [UBT]
* Fixed so Classes/Public/Internal/Private includes are only added if there are files directly or indirectly under directory. Change is to make rsp files deterministic even if p4 left empty directories behind

#rb joe.kirchoff

[CL 33206443 by henrik karlsson in ue5-main branch]
2024-04-24 14:08:39 -04:00
joe kirchoff
65f7eab2cd UnrealBuildTool: Resolve CA2254, IDE0011, IDE0017, IDE0030, IDE0031, IDE0037, IDE0056, IDE0075, IDE2000, IDE2001
#rnx

[CL 32711093 by joe kirchoff in ue5-main branch]
2024-04-03 17:18:04 -04:00
joe kirchoff
a20c9fbb9e UnrealBuildTool: Format documents, remove and sort usings
#rnx

[CL 32700883 by joe kirchoff in ue5-main branch]
2024-04-03 12:22:43 -04:00
joe kirchoff
b7c0b15b6c UnrealBuildTool: Fix CS8603: Possible null reference return
#rnx

[CL 32687187 by joe kirchoff in ue5-main branch]
2024-04-02 20:40:48 -04:00
joe kirchoff
89805bc149 UnrealBuildTool: Resolve IDE0008, IDE0049
#rnx

[CL 32687030 by joe kirchoff in ue5-main branch]
2024-04-02 20:29:22 -04:00
christopher waters
0a67185c9f When compiling with -IncludeHeaders, don't include headers from modules that are marked as not supporting IWYU.
#rb Joe.Kirchoff

[CL 31683228 by christopher waters in ue5-main branch]
2024-02-21 10:44:13 -05:00
joe kirchoff
38eea919ce UnrealBuildTool: Don't analyze generated files by default
#rnx
#jira UE-207534

[CL 31669338 by joe kirchoff in ue5-main branch]
2024-02-20 20:49:13 -05:00
joe kirchoff
c0357d6a15 UnrealBuildTool: Option to disable anaylzing engine modules or generated code
#jira UE-207534, UE-207535

[CL 31669299 by joe kirchoff in ue5-main branch]
2024-02-20 20:48:55 -05:00
christopher waters
2dffacefb6 Removing exclusions from using matching header files first.
#rb henrik.karlsson, Joe.Kirchoff

[CL 31658298 by christopher waters in ue5-main branch]
2024-02-20 17:15:34 -05:00
steve robb
9fa9b31697 Added UE_DEPRECATED_FORENGINE deprecation warnings for engine modules, and TargetRules.bDisableEngineDeprecations to silence engine deprecations in non-engine modules, to allow incremental fixup. Disabling engine deprecations should be regarded as short-term to allow incremental fixup.
#rb Joe.Kirchoff

[CL 31185022 by steve robb in ue5-main branch]
2024-02-05 14:40:33 -05:00
steve robb
b5ddfbd202 Removed DEPRECATED_FORGAME from UBT, as it hasn't existed since CL# 19480377.
[FYI] joe.kirchoff

[CL 31159324 by steve robb in ue5-main branch]
2024-02-03 11:44:03 -05:00
joe kirchoff
e294f152e8 UnrealBuildTool: bTreatAsEngine module creates a pch variant, clean up some unneeded logic
#rnx
#rb christopher.waters, henrik.karlsson

[CL 31070432 by joe kirchoff in ue5-main branch]
2024-01-31 17:57:54 -05:00
matt johnson
19a5270ad5 UBT: add "bVcRemoveUnreferencedComdat" ModuleRules property to control whether /Zc:inline is enabled with MSVC
#rb Joe.Kirchoff

[CL 30329213 by matt johnson in ue5-main branch]
2023-12-14 15:09:30 -05:00
joe kirchoff
64138fc204 UnrealBuildTool: Ensure FileInlineGenCPPMap is set for the module compile environment
[CL 30218610 by joe kirchoff in ue5-main branch]
2023-12-08 15:30:50 -05:00
yiliang siew
36b63b4a46 Making changes so that VerseVM will compile without the WITH_VERSE_VM macro being defined normally,
and also removing the escape hatch for "the source file must include the header of the same name" and
just including the superfluous header files for now to silence UBT warnings.

#rb Tim.Smith
#rb Tim.Smith
[FYI] Joe.Kirchoff
[FYI] Chris.Waters

[CL 30196956 by yiliang siew in ue5-main branch]
2023-12-07 19:05:24 -05:00
joe kirchoff
fbc3e63d8a UnrealBuildTool: Set UE_VALIDATE_INTERNAL_API to control the define UE_INTERNAL which will be set to an empty macro for Engine modules and [[deprecated]] for non-engine modules. This will create a pch variant but will allow a way to stop (or at least discourage) the use of internal code that needs to be in public headers for performance or historical reasons, as well as a way to migrate internal code out of public headers over the span of a few releases
#jira UE-201038
#rb David.Harvey, Devin.Doucette

[CL 30172737 by joe kirchoff in ue5-main branch]
2023-12-06 19:31:44 -05:00
joe kirchoff
1a5a20811f UnrealBuildTool: Fix not building files in override paths with -SingleFile
#rnx

[CL 29193865 by joe kirchoff in ue5-main branch]
2023-10-27 15:43:55 -04:00
joe kirchoff
a2d7686337 UnrealBuildTool: Don't try to get files in a directory if null
#rnx
#jira UE-198584

[CL 28971602 by joe kirchoff in ue5-main branch]
2023-10-20 13:26:45 -04:00
joe kirchoff
bdb33956c4 UnrealBuildTool: C Standard doesn't matter for PCH variants as C files don't use PCH when compiled
#rnx

[CL 28849973 by joe kirchoff in ue5-main branch]
2023-10-17 15:38:46 -04:00