Commit Graph

48 Commits

Author SHA1 Message Date
josh adams
40b23a4c9b - Added ability to read plugins into a config hierarchy, controlled by passing optional IncludePluginsForTargetType param to ConfigCache.ReadHierarchy(), with a TargetType (like Game or Editor).
- Use this in CopyBuildToStagingDIrectory when reading the Packaging settings when staging. This allows plugins to add files/directories to stage without needing to modify every project.
- Added a ConfigTester Turnkey command that can help test C# inis programmatically. Currently need to pass in these 3 params on commandline, it doesn't ask for them: -Branch=Engine -Section=SomeSection -Key=SomeKey

#rb David.Harvey

[CL 35927236 by josh adams in ue5-main branch]
2024-08-30 11:05:34 -04:00
joe kirchoff
33089071ef UnralBuildTool: Fixing more analysis warnings
#rnx

[CL 35042727 by joe kirchoff in ue5-main branch]
2024-07-23 19:39:24 -04:00
zousar shaker
a08314aab7 C# config cache fix so that it doesn't ignore extra commandline arguments because the IEnumerable Append method doesn't mutate the container it is called on, but returns a copy with the specified elements added.
#rb brian.white

[CL 34906817 by zousar shaker in ue5-main branch]
2024-07-18 13:51:35 -04:00
david harvey
19085e1fe4 Adding CustomConfig option to ConfigCache.ReadSettings
- not fixing up all call sites because it may not be appropriate

#jira UE-213935
#rnx
#rb chris.applegarth

[CL 33479488 by david harvey in ue5-main branch]
2024-05-07 04:47:44 -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
89805bc149 UnrealBuildTool: Resolve IDE0008, IDE0049
#rnx

[CL 32687030 by joe kirchoff in ue5-main branch]
2024-04-02 20:29:22 -04:00
joe kirchoff
e895acc0bb UnrealBuildTool: Resolve IDE0018, IDE0019, IDE0034, IDE0038, IDE0041, IDE0054, IDE0057, IDE0074, IDE0090
#rnx

[CL 32686487 by joe kirchoff in ue5-main branch]
2024-04-02 19:54:03 -04:00
joe barnes
ca39c2dee3 [Switch] Add automatic --defragment-size calculation for Switch patches when --defragment is in use. Uses PatchDefragmentThreshold from [Packaging] in SwitchEngine.ini as the target patch fragmentation to hit. Tests --defragment-sizes of 0,32,64,128,256,512. Picks the largest one that generates fragmentation below PatchDefragmentationThreshold. Can be run using the UpdateSwitchPatchParameters stage of NightlyBuild, which will update the PatchDefragmentBlockSize setting in the [Packaging] section of SwitchEngine.ini. Also can be run when patch is generated if -AutoDefragment is supplied as an additional option when creating a patch.
#rb ben.woodhouse, gwennael.arbona
#rnx

[CL 31422626 by joe barnes in ue5-main branch]
2024-02-13 08:46:05 -05:00
rob perren
a6b5dd69df Add support to ConfigCache.cs to allow a hotfix directory to be specified which will allow additions and overrides to specified in a similar way to the runtime hotfixing system
#rb Josh.Adams
#rnx

[CL 27669033 by rob perren in ue5-main branch]
2023-09-07 07:25:22 -04:00
joe kirchoff
acacd6a8de UnrealBuildTool: More automated code cleanup
* Use object type rather than var
* Remove double newlines
* Use pattern matching

#rnx
#preflight 647780095d23eca37d28a387

[CL 25706751 by joe kirchoff in ue5-main branch]
2023-05-31 13:37:21 -04:00
joe kirchoff
acf80ab609 [Backout] - CL25694851
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
UnrealBuildTool: More automated code cleanup

#rnx

[CL 25695155 by joe kirchoff in ue5-main branch]
2023-05-30 19:55:37 -04:00
joe kirchoff
7ed1a39679 UnrealBuildTool: More automated code cleanup
#rnx

[CL 25694864 by joe kirchoff in ue5-main branch]
2023-05-30 19:36:05 -04:00
joe kirchoff
c04da27b3b UnrealBuildTool: More automated code cleanup
#rnx
#preflight 64767efb4b1ead7c7f428c7a

[CL 25693857 by joe kirchoff in ue5-main branch]
2023-05-30 18:59:32 -04:00
joe kirchoff
36d266e932 UnrealBuildTool: Automated code cleanup
#rnx
#preflight 6476799e947ff6973c225619

[CL 25693241 by joe kirchoff in ue5-main branch]
2023-05-30 18:38:07 -04:00
stephen ma
e3ce54d344 UBT: Add debugging flag -dumpiniloads to show which .ini files are being loaded into hierarchy with ConfigCache.cs
#rb Josh.Adams
#preflight 6467bad3d1617529a447f6c7

[CL 25550397 by stephen ma in ue5-main branch]
2023-05-19 15:27:50 -04:00
brian white
87670c07a6 Restore functionality of the "-ini:" command line argument in UBT. Also restrict the scope of command line arguments parsed in ConfigCache::ReadHierarchy to prevent reading arguments from other "Target" command lines.
#jira none, seen on horde: https://horde.devtools.epicgames.com/job/6452e7bef007deab84c2680c?step=6cf6
#rb Josh.Adams
#preflight 645414f36c35ad81e6167d51

[CL 25388035 by brian white in ue5-main branch]
2023-05-09 10:56:54 -04:00
bryan sefcik
5d49ac42a1 Fixed the hashcode and equals for ConfigHierarchyKey. It was testing if the list was the same list and not the contents of the list and getting the hashcode of the list and again not the contents of the list.
#fyi joe.kirchoff
#preflight 642484c0710ec8400f7572c5

[CL 24843643 by bryan sefcik in ue5-main branch]
2023-03-29 15:32:58 -04:00
bryan sefcik
3eaa022618 Updated several places in UBT to be thread safe.
#fyi joe.kirchoff
#preflight 641de24b7703a8de3ddb63a7

[CL 24785255 by bryan sefcik in ue5-main branch]
2023-03-24 15:42:24 -04:00
christopher waters
a7119071ac Fixing ConfigCache key comparisons.
Changing ConfigCache to save if a file wasn't found.

Reduced -ProjectFiles time from 5m to 2m.

#rb joe.kirchoff, henrik.karlsson, pj.kack

[CL 24352025 by christopher waters in ue5-main branch]
2023-02-21 17:55:54 -05:00
pj kack
819cf350d8 UAT: Parse ini overrides when reading config values from CreatePaks in CopyBuildToStaginDirectory.
Add ConfigOverrideParams to ProjectParams constructor.
Add OverrideStrings to ConfigHierarchyKey to get the right data from ConfigHierarchy.ReadHierarchy().

#rb dan.thompson
#rnx
#preflight 63ef5c0c3c1eb56f059e7370, 63ef5c4b90198dffbadbd846

[CL 24309947 by pj kack in ue5-main branch]
2023-02-20 03:38:24 -05:00
UnrealBot
73409369c0 Branch snapshot for CL 21319338
[CL 21319338 in ue5-main branch]
2022-08-10 16:03:37 +00:00
Ben Marsh
cbb950c578 UBT: Use ILogger throughout UBT, rather than legacy EpicGames.Core.Log methods. All output going forwards should use structured logging rather than String.Format style logging.
#preflight 628e9dc6e746de4961f60032

[CL 20373777 by Ben Marsh in ue5-main branch]
2022-05-25 19:55:37 -04:00
Wojciech Krywult
023a31719e UBT: ConfigFile attribute: Added support for properties.
[ConfigFile(...)] can be added to both fields and properties. The latter can be useful e.g. with derived properties.

#rb Joe.Kirchoff
#jira none
#preflight 62825962046b81bf93bc5201

[CL 20223985 by Wojciech Krywult in ue5-main branch]
2022-05-16 10:27:05 -04:00
Josh Adams
ed1fb28a68 - New CreateBuild Turnkey command to interactively create builds that can be run now, or saved for later (exposed to Editor Platforms menu)
- Started moving the code that turns ProjectPackagingSettings into BuildCookRun commandline from editor to C# so that we can run scripts without needing to bake out the commandline
- Updated ExecuteBuild to handle some new variables and such (like the new one for importing ProjectPackagingSettings into the commandline dynamically)
- Added ability to update a Default config file in C# (with limited functionality - set value and add array entry, with an enum we can extend later)
- Minor cleanup here and there
#rb david.harvey
#preflight 622b581ddf3960e506cf9a27
#preflight 622bb3f046679d56c3239a8c

[CL 19360380 by Josh Adams in ue5-main branch]
2022-03-11 15:51:57 -05:00
Tim Smith
cd07867bf6 1) Adding new collection of UE types into C#
2) Enhancements to StringView and a few other helper classes
3) New UE style ignore case comparison
4) Moved shared UHT definitions into a common C# file.

#rb jonathan.adamczewski
#rnx
#preflight 620e3cdc8b6428e701a24666

[CL 19033446 by Tim Smith in ue5-main branch]
2022-02-17 07:40:56 -05:00