Commit Graph

793 Commits

Author SHA1 Message Date
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
joe kirchoff
3576fbf55c UnrealBuildTool: Throw an error if multiple modules are loaded that have conflicting ShortNames. Suggestion from UDN
#rnx
#rb Josh.Adams
#preflight 636aa1a27c2b505190b32b8f

[CL 23039139 by joe kirchoff in ue5-main branch]
2022-11-08 16:02:20 -05:00
chris varnsverry
093f221033 - Remove WITH_SERVER_CODE_TRUSTED concept from Engine
[REVIEW] [at]Rob.Cannaday [at]Michael.Atchison [at]Sam.Zamani

[CL 22959144 by chris varnsverry in ue5-main branch]
2022-11-03 14:23:35 -04:00
Robert Millar
d1ae213d52 Server mode for UBT for use by VS Code extension. Provides compile configuration on demand, responding to commands over stdin in json format.
VS Code project file generator argument to skip compile commands json files.
VS Code project file generator adds VS Code extension id as configuration provider to configurations.
Add optional implementable funcion for toolchains to return the path to default C++ compiler.
Add rootdirectory= argument to provide root directory if UBT is published to a different directory than standard.

#jira none
#preflight 635c08e6052cb0bae6a5371a

[CL 22831178 by Robert Millar in ue5-main branch]
2022-10-28 12:59:39 -04:00
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
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
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
nuno leiria
42049243ac Implemented ThinLTO cache and pruning arguments in UBT
#preflight 632c24691003050806482034
#rb Joe.Kirchoff, Wojciech.Krywult, Brian.White

[CL 22204860 by nuno leiria in ue5-main branch]
2022-09-27 09:48:46 -04:00
adam kinge
47d47510ab Add a static library version check for iOS/tvOS and Mac. A BuildException will be thrown if a library is not built with the minimum supported Xcode (13.4.1 or earlier for 5.1).
#jira UE-151508
#review-21059319
#preflight 62cdaa973d7ef9abccf8215b

[CL 22112491 by adam kinge in ue5-main branch]
2022-09-21 10:23:44 -04:00
anton dunchev
e825604e90 Process control:
- Implemented priority control on Unix platform
- Refactored RunnableThreadUnix implementation
- Bump resource limits for process scheduling priority (nice) if possible

#rb LouisPhilippe.Seguin, Brandon.Schaefer
[FYI] anrew.ladenberger

[CL 22087348 by anton dunchev in ue5-main branch]
2022-09-19 22:28:24 -04:00
tim smith
a13076902b Added warnings when C++ UHT is used. These warnings include the reasons why C++ UHT is being used. The warning is currently disabled but informational messages will still be generated.
#rb
#preflight 6322088da514fd1e37319c62

[CL 22015813 by tim smith in ue5-main branch]
2022-09-14 16:44:09 -04:00
Josh Adams
358ee918b3 - Fixing BuildTest project that is under a differently named directory - the uprojectdirs file couldn't be found because the UE_ENGINE_DIRECTORY was wrong
#jira UE-158214
#rb chris.Constantinescu
#preflight skip

[CL 22015098 by Josh Adams in ue5-main branch]
2022-09-14 16:16:15 -04:00
chris constantinescu
d784634072 Mac extra built commandlets (bBuileAdditionalConsoleApp=true) are placed 3 directories up relative to the non-commandlet packaged app.
#jira UE-162903
#rnx
#preflight 6317b52fd135b61bc5875fe8

[CL 21829377 by chris constantinescu in ue5-main branch]
2022-09-06 17:11:08 -04:00
Joe Kirchoff
9b55ef770f UnrealBuildTool: Determinisitic build configuration update to manage via TargetRules and ModuleRules
#rnx
#rb none
#preflight 63056e3a516bef57ffc5a099

[CL 21527850 by Joe Kirchoff in ue5-main branch]
2022-08-23 20:33:31 -04:00
bryan sefcik
1599bfae2e Rewrote the GenerateClangDatabase mode in UBT to work with the clang tools like IWYU.
#preflight 63052ee5c744dac967fc287f

[CL 21519266 by bryan sefcik in ue5-main branch]
2022-08-23 16:36:20 -04:00
dmytro vovk
37b8ab825c Deprecated bCompileForSize UBT Target option and replaced with OptimizationMode enumto fine tune a balance between speed and\or code size
#jira none
#rb Joe.Kirchoff
#preflight 62ff99b0200ff87e07f75a69

[CL 21511266 by dmytro vovk in ue5-main branch]
2022-08-23 12:44:36 -04:00
kaffeewolf
a3acfba5d6 PR #9449: Add support for specifying C Standard when compiling plain C files (Contributed by kaffeewolf)
#rb none
#preflight 62f2f8c33f500fb6dc059f18

[CL 21305284 by kaffeewolf in ue5-main branch]
2022-08-09 20:34:50 -04:00
Wojciech Krywult
dc47ecf009 Modular builds: UBT: Added an option to generate .loadorder manifest file that includes a list of all dynamic modules in the order in which they are meant to be loaded (based on their dependencies).
It's needed on some platforms that don't handle DLLs dependencies out of the box. Generation of this file is integrated into the build metadata generation but is only triggered for platforms that explicitly indicate that it's needed (UEBuildPlatform.RequiresLoadOrderManifest()).

#rb Joe.Kirchoff
#preflight 62d57764f156340c79b98306

[CL 21149087 by Wojciech Krywult in ue5-main branch]
2022-07-18 11:31:22 -04:00