Commit Graph

1576 Commits

Author SHA1 Message Date
josh adams
523b4f0318 - Moved a utility function from two (copy/pasted) places into ConfigHierarchy - GetStructKeyValuePairs(), which will return a Dictionary that contains the keys and values from a standard UE struct definition (almost always loaded from a .ini file). Similar in nature to GetStructEntry(), but will entries in the struct
#rb tim.smith
#preflight 6377efaf815e4b9b7564d565

[CL 23212737 by josh adams in ue5-main branch]
2022-11-18 20:39:31 -05:00
brandon schaefer
4f85084928 [UBT] Add options to enable pie and stack protector for target rules
disabled by default

#rb Josh.Adams, Zack.Neyland
#preflight 637526e4ee4d25f90aa62e6c

[CL 23163701 by brandon schaefer in ue5-main branch]
2022-11-16 17:02:54 -05:00
Rafa Lecina
df001c1d21 Support enable ARC in modules
#jira UE-107891
#review @Sam.Zamani @Bertrand.Carre @Chris.Varnsverry @Roman.Dzieciol @Josh.Adams  @Jack.Porter
#preflight

[CL 23133821 by Rafa Lecina in ue5-main branch]
2022-11-15 06:02:36 -05:00
Wojciech Krywult
3f2f9f9376 UBT: XmlConfigFile: Fixed potential exceptions handling deprecated properties and improved diagnostic messages when using renamed members (NewAttributeName).
#preflight 637272865368a3230a54cb81
#rb Joe.Kirchoff
#rnx

[CL 23120016 by Wojciech Krywult in ue5-main branch]
2022-11-14 12:04:09 -05:00
joe kirchoff
6b64b2da29 UnrealBuildTool: Obsolete some properties moved to EpicGames.Build
#rnx
#rb trivial

[CL 22961430 by joe kirchoff in ue5-main branch]
2022-11-03 15:02:36 -04:00
joe kirchoff
144ce56048 UnrealBuildTool: Move some util properties to EpicGames.Build
#rnx
#rb trivial
#preflight 6362e8e86000216d2e2b4bdd

[CL 22937953 by joe kirchoff in ue5-main branch]
2022-11-02 23:07:24 -04:00
joe kirchoff
48003d0b0a UnrealBuildTool: Remove property that disables generating cpp dependency files
#rnx
#rb trivial

[CL 22918025 by joe kirchoff in ue5-main branch]
2022-11-02 11:47:47 -04:00
joe kirchoff
900599bf9d UnrealBuildTool: Use BuildSettings.Latest as defaults, so changing the latest version will also update these variables. Latest is still set to V2.
#rnx
#rb trivial

[CL 22876166 by joe kirchoff in ue5-main branch]
2022-10-31 20:57:12 -04:00
gary yuan
1770f43991 Add try catch to read ConfigRemapFile to that ConfigFile can be used with assemblies outside of the Engine DotNet Path
#rb josh.adams
#preflight skip

[CL 22875439 by gary yuan in ue5-main branch]
2022-10-31 20:01:55 -04:00
joe kirchoff
1eb7b0cf74 UnrealHeaderTool: Update #include paths to be relative to the module's available include path rather than always using the module's parent directory
#rb Tim.Smith
#preflight 635c2d0c1803be35c7714697

[CL 22850540 by joe kirchoff in ue5-main branch]
2022-10-29 01:54:08 -04:00
joe kirchoff
9b250b2268 [Backout] - CL22830574
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
UnrealHeaderTool: Update #include paths to be relative to the module's first public include path (or the generated UHT path if no public include paths are available) rather than the module's parent directory

#rb Tim.Smith
#preflight 635b0719015611ae3a0779d1

[CL 22832250 by joe kirchoff in ue5-main branch]
2022-10-28 13:41:02 -04:00
joe kirchoff
3cb16277fe UnrealHeaderTool: Update #include paths to be relative to the module's first public include path (or the generated UHT path if no public include paths are available) rather than the module's parent directory
#rb Tim.Smith
#preflight 635b0719015611ae3a0779d1

[CL 22832204 by joe kirchoff in ue5-main branch]
2022-10-28 13:40:18 -04:00
joe kirchoff
8046ba0c0d UnrealBuildTool: Ensure Action list is ordered before running any executor. Pass in IEnumerable instead of List
#rnx
#rb trivial
#preflight 635b20e0015611ae3a0d8f30

[CL 22831783 by joe kirchoff in ue5-main branch]
2022-10-28 13:27:22 -04:00
joe kirchoff
4bd342fb6c UnrealBuildTool: BuildSetting.V3 (currently disabled) which disallows adding module parent directory to include path list
#rnx
#rb bryan.sefcik
#preflight 634df3105f008d633fd571d2

[CL 22798627 by joe kirchoff in ue5-main branch]
2022-10-26 19:13:07 -04:00
joe kirchoff
20c19d6503 [Backout] - CL22754728
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
UnrealHeaderTool: BuildSetting.V3 (currently disabled) which disallows adding module parent directory to include path list

#rnx
#rb bryan.sefcik
#preflight 634df3105f008d633fd571d2

[CL 22795918 by joe kirchoff in ue5-main branch]
2022-10-26 18:18:06 -04:00
joe kirchoff
6e28fec987 UnrealHeaderTool: BuildSetting.V3 (currently disabled) which disallows adding module parent directory to include path list
#rnx
#rb bryan.sefcik
#preflight 634df3105f008d633fd571d2

[CL 22793005 by joe kirchoff in ue5-main branch]
2022-10-26 17:30:50 -04:00
l2oe
2e3a9fc59a PR #9636: UnrealBuildTool - .gexf export done with invariant culture. (Contributed by l2oe)
#jira UE-166290
#preflight 63530d1e3a547c3da39269bd

[CL 22701221 by l2oe in ue5-main branch]
2022-10-21 17:25:27 -04:00
Jason Nadro
a673e16ce5 Added the ability to do Unreal Insights traces of the Shader Compiler Worker process.
This can be enabled by modifying `UnrealEngine\Engine\Saved\UnrealBuildTool\BuildConfiguration.xml` like so:

    <?xml version="1.0" encoding="utf-8" ?>
    <Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
        <BuildConfiguration>
            <bShaderCompilerWorkerTrace>true</bShaderCompilerWorkerTrace>
        </BuildConfiguration>
    </Configuration>

- Added a build configuration xml value, `bShaderCompilerWorkerTrace`.
- Turning this on will set USE_SHADER_COMPILER_WORKER_TRACE=1
- Move the parameter -nothreading to be set when we launch the process instead of internally as an extra cmd line arg.
- Unreal Insights uses a separate thread to send events so threading support is needed for the program.  When we have USE_SHADER_COMPILER_WORKER_TRACE enabled we need to turn off `-nothreading`.
- When USE_SHADER_COMPILER_WORKER_TRACE is enabled we pass in `-trace=default` to get CPU event markers.
- The SCW program needs to turn on the following defines to be able to perform CPU and memory traces:
	ENABLE_LOW_LEVEL_MEM_TRACKER=1
	UE_MEMORY_TAGS_TRACE_ENABLED=1
	UE_TRACE_ENABLED=1
- Instrument Shader Compiler Worker with TRACE_CPUPROFILER_EVENT_SCOPE.  This are no-ops when this is turned off.

todo: Make the shader compiler worker inherit the trace args from the main process it was launched from.

#rb Yuriy.ODonnell
#jira none
#preflight 634ef80269246074db9637c2

[CL 22625183 by Jason Nadro in ue5-main branch]
2022-10-19 10:33:36 -04:00
bryan sefcik
b3f66b2e18 Added GetModuleDirectory which allows you to get the directory of the passed in module. This makes it easier to include directories from other modules.
#jira
[FYI] joe.kirchoff
#preflight 634de3f25f008d633fd22de1

[CL 22594094 by bryan sefcik in ue5-main branch]
2022-10-18 00:55:33 -04:00
bryan sefcik
3c6a04fdf6 Fixed an issue where SNDBS would fail to compile files on agents because the inlined gen.cpp files were not setup as prerequisites.
#rb joe.kirchoff

[CL 22464949 by bryan sefcik in ue5-main branch]
2022-10-11 16:49:17 -04:00
Robert Millar
a677dbc70e Allow disabling all static analysis on a module.
#rb joe.kirchoff
#jira none
#preflight https://horde.devtools.epicgames.com/job/6340540e174b13865728ca7c

[CL 22403984 by Robert Millar in ue5-main branch]
2022-10-07 13:30:19 -04:00
bryan sefcik
c71498d810 Fixed an issue where commented out #include inline.gen.cpp files would still be considered to be included.
#jira UE-166291

[CL 22389956 by bryan sefcik in ue5-main branch]
2022-10-06 20:53:52 -04:00
marc audy
0fc06b389b bStressTestUnity supercedes adaptive unity
#rb Joe.Kirchoff
#jira

[CL 22361863 by marc audy in ue5-main branch]
2022-10-05 15:50:57 -04:00
bryan sefcik
6245f9d961 Minor optimizations in UBT to improve time when creating the action graph.
#jira
#preflight 6335f77e2f447ea8dc26f758

[CL 22264273 by bryan sefcik in ue5-main branch]
2022-09-30 01:41:38 -04:00
bryan sefcik
f85124e026 Moved the logic to check for inline gen.cpp changes out of the if statement that only triggered when the directory changed. Now the sources are always checked properly.
#jira
#preflight 63353184ee7b13756deb11e0

[CL 22260864 by bryan sefcik in ue5-main branch]
2022-09-29 20:37:10 -04:00