Commit Graph

1355 Commits

Author SHA1 Message Date
chris varnsverry
6bc8df0ee7 - Remove WITH_SERVER_CODE_UNTRUSTED define to avoid confusion
[REVIEW] [at]Rob.Cannaday [at]Sam.Zamani

[CL 22802891 by chris varnsverry in ue5-main branch]
2022-10-26 22:21:03 -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
benn gallagher
8be43e1076 Enable physics macro deprecation in all modules for non-engine modules that relied on inheriting from dependencies on engine modules.
#jira UE-167375
#preflight 6351922d3d41a4455a3edda3
#rb Chris.Caulfield
#lockdown michael.lentine

[CL 22786966 by benn gallagher in ue5-main branch]
2022-10-26 15:27:30 -04:00
henrik karlsson
19a8eac8c1 [UBT]
* Fixed bug where name collision happened if both VNI and UHT files were created for same file

Fixes VerseExample UBT exception

#rb none
#preflight none

[CL 22783396 by henrik karlsson in ue5-main branch]
2022-10-26 13:07:08 -04:00
Ryan Gerleve
bc9d566c29 Disable Iris compilation while we fix static analysis warnings.
#jira none
#rb none
#preflight 635839abb870e03e6abfc39c

[CL 22759680 by Ryan Gerleve in ue5-main branch]
2022-10-25 15:54:02 -04:00
Ryan Gerleve
244de1bc8c Enable Iris compilation by default. Remains disabled at runtime.
#jira UE-166990
#preflight 6356e43df92c325024fad9fc
#rb peter.engstrom, mattias.hornlund

[CL 22750421 by Ryan Gerleve in ue5-main branch]
2022-10-25 10:21:42 -04:00
joe pribele
7938bdda07 [LowLevelTestRunner] added custom reporter to make parsing of xml easier for UnrealVS TestAdapter
#rb devin.doucette
#preflight 635312f3777a77c4407b2733

[CL 22702551 by joe pribele in ue5-main branch]
2022-10-21 18:00:09 -04:00
bryan sefcik
a86a03522d Added a bool setting to allow us to turn off the forcing of PCH files for gen.cpp files when PCH is disabled. This improves NoPCH/DisableUnity compile times.
#jira
#preflight 63518daf3d41a4455a3de844

[CL 22677159 by bryan sefcik in ue5-main branch]
2022-10-20 20:09:31 -04:00
henrik karlsson
a72cec4bbc [UnrealBuildTool]
* Added support for forcing module to use inlined .gen.cpp files

#rb joe.kirchoff
#preflight skipped

[CL 22673962 by henrik karlsson in ue5-main branch]
2022-10-20 17:53:32 -04:00
christopher waters
81690d87f9 Adding and moving to the Unreal 5.2 EngineIncludeOrderVersion.
#jira none
#rb joe.kirchoff
#preflight 635014c02337adbf4270366e

[CL 22657181 by christopher waters in ue5-main branch]
2022-10-20 11:28:11 -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
Chris Varnsverry
552f7c8ead - Fix calling AddFormat extension method which only exists if you have a certain platform synced
#preflight none

[CL 22621656 by Chris Varnsverry in ue5-main branch]
2022-10-19 06:36:40 -04:00
Ben Marsh
f517d5d542 UBT: Remove dependency on HoloLens code from UEBuildTarget.cs.
#preflight none

[CL 22615461 by Ben Marsh in ue5-main branch]
2022-10-18 20:49:33 -04:00
chris varnsverry
f4c3eb6b2c - Add concept of trusted and untrusted server code/targets, so we can include/exclude code from certain trusted/untrusted build targets.
[REVIEW] [at]Rob.Cannaday [at]Sam.Zamani

[CL 22606065 by chris varnsverry in ue5-main branch]
2022-10-18 13:59:19 -04:00
Michael Kirzinger
2e160ff594 TestTarget Resource folders can now exist in any of the module's locations (eg, platform extension directory)
#jira UE-166441
#preflight 22485685
#review-22576619 @chris.constantinescu, @stephen.ma, @jake.niman

[CL 22601628 by Michael Kirzinger in ue5-main branch]
2022-10-18 11:48:58 -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
Ryan Gerleve
acc1553813 Changes to allow compiling engine modules with Iris replication code by default, and link against modules/projects that don't depend on Iris.
ModuleRules.SetupIrisSupport defines a new macro to enable or disable the Iris fast array bindings for a module, added UHT support for this. This allows the dependency on the Iris bindings to be compiled out of modules that don't need it and still link with Iris-enabled modules.
Iris plugin disabled by default, should be enabled for specific projects that use it.

#jira UE-160209
#rb mattias.hornlund, peter.engstrom
#preflight 6346fd2cfa31324bb153b63b

[CL 22482725 by Ryan Gerleve in ue5-main branch]
2022-10-12 14:28:30 -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
henrik karlsson
5c0f624150 [UnrealBuildTool]
* Added module type to json output

#preflight skip
#rb joe.kirchoff

[CL 22361510 by henrik karlsson in ue5-main branch]
2022-10-05 15:35:28 -04:00
bryan sefcik
001cc2d55e Fixed an issue where the makefile would not be invalidated if you switched back and forth between using inline gen cpp files when unity files were disabled. This would sometimes result in linker issues.
#jira
#preflight 6334bf5bb946208fc1c34ef2

[CL 22240851 by bryan sefcik in ue5-main branch]
2022-09-28 22:34:42 -04:00
Zousar Shaker
6540112e2f Allow an Epic-only configuration on UnrealHeaderTool that enforces TObjectPtr usage in Engine Plugins specifically. Cannot be used externally due to the occurrance of third party plugins being placed in the engine plugins directory. Tested against C++ UHT and C# UHT both with and without the Epic-only configuration file present.
#rb tim.smith
#preflight 6334666b0169596cdf0cc710

[CL 22225475 by Zousar Shaker in ue5-main branch]
2022-09-28 12:58:24 -04:00
Ben Marsh
9ea2d086e3 UBT: Use structured log event to include path to the plugin file in error message.
#preflight none
#fyi Joe.Kirchoff, Marc.Audy

[CL 22205497 by Ben Marsh in ue5-main branch]
2022-09-27 10:16:58 -04:00