Commit Graph

46 Commits

Author SHA1 Message Date
Joe Kirchoff
1b044d8f36 EpicGames.Build: Don't throw an exception if a path in AdditionalSearchPath doesn't exist
#rnx
#rb trivial
#preflight 63ff8a2ff43e53f68137ead4

[CL 24465656 by Joe Kirchoff in ue5-main branch]
2023-03-01 12:46:25 -05:00
tim smith
a4c3bf1186 Added the "Build" directory as locations UBT will scan for UBT plugins.
#rb brandon.schaefer
#jira UE-176903
#preflight 63ea62d5de74ffbae5f3b4fa

[CL 24195515 by tim smith in ue5-main branch]
2023-02-13 19:01:07 -05:00
joe kirchoff
23ee50f97d UnrealBuildTool: Fix typo in DirectoryItem docstring
#rnx
#rb trivial
#jira UE-175817

[CL 23961121 by joe kirchoff in ue5-main branch]
2023-02-01 19:29:54 -05:00
joe kirchoff
346eeabb72 UnrealBuildTool: When checking timestamps of produced files, also consider creation time as in some cases copied outputs (such as from a cache) can have a newer creation time than last write time
#rnx
#rb Ryan.Hummer
#preflight 63d9887dd21dbe1d290047ab

[CL 23942163 by joe kirchoff in ue5-main branch]
2023-01-31 19:26:51 -05:00
henrik karlsson
36288047d1 [EpicGames.Build]
* DirectoryItem - Added CompatRead/Write to BinaryArchive

#preflight 63d82ec05c69f453c11ff1b9
#rb joe.kirchoff

[CL 23923500 by henrik karlsson in ue5-main branch]
2023-01-31 01:17:27 -05:00
Joe Kirchoff
8c23f8320b EpicGames.Build: Validate all existing build records, not just the records associated with found projects
#rnx
#rb Josh.Adams
#preflight 63c9d0276a00f3cc8eaf8b54

[CL 23783544 by Joe Kirchoff in ue5-main branch]
2023-01-19 18:38:52 -05:00
Joe Kirchoff
4a262359a0 UnrealBuildTool: Store Action file lists in SortedSets rather than Lists, since these collections should never have duplicate entries and sorting them helps when checking for action conflicts
Requires implementing IComparable\IEquatable in FileItem (and I also implemented them in DirectoryItem for consistency)

#rnx
#rb Tim.Smith
#preflight 63c1cce4a06ab115ea17ba4f
#preflight 63c70f4d7763631ba15486ea

[CL 23745743 by Joe Kirchoff in ue5-main branch]
2023-01-17 16:35:14 -05:00
Joe Kirchoff
ed38136400 EpicGames.Build: Fix XML comment for NativeProjectBase.FindProjectFile()
#rnx
#rb trivial
#preflight 63c0a2ab1a06fc61059913eb

[CL 23672045 by Joe Kirchoff in ue5-main branch]
2023-01-12 19:18:56 -05:00
Joe Kirchoff
7749d6f625 AutomationTool: Fix resolving relative .uproject path for -ScriptsForProject
#rnx
#rb Josh.Adams
#jira UE-126532
#preflight 63c083600b358b97d10ad218

[CL 23670442 by Joe Kirchoff in ue5-main branch]
2023-01-12 17:19:13 -05:00
Ryan Hummer
3934ea81f0 Provided better messaging when DirectoryItem.CacheDirectories runs into duplicate keys
#rnx
#jira none
#rb joe.kirchoff, brandon.schaefer
#preflight none

[CL 23667501 by Ryan Hummer in ue5-main branch]
2023-01-12 14:37:47 -05:00
Joe Kirchoff
65dd0012f7 EpicGames.Build: Base script modules directories list should not contain duplicate paths
#jira UE-172233
#rnx
#rb trivial
#preflight 63bcb9ceaf3ebedd99dcc461

[CL 23623221 by Joe Kirchoff in ue5-main branch]
2023-01-09 20:21:32 -05:00
Joe Kirchoff
d5a49b45c4 AutomationTool: Reset FileInfo cache when deleting files
#rnx
#rb none
#jira UE-168433
#preflight 63b8aac2763c6c10645f93eb

[CL 23605345 by Joe Kirchoff in ue5-main branch]
2023-01-06 18:32:51 -05:00
Tim Smith
d082913ff7 Removing prior change to clean up old build records. While the change fixed the issue with removed projects, it caused large number of installed build issues.
#rb self
#preflight 6390b9807e0feab0b7c4eb7f

[CL 23429361 by Tim Smith in ue5-main branch]
2022-12-07 11:19:37 -05:00
Tim Smith
b10cfbfa7b Fixed issue where removed UAT plugins would not have their compile script state file deleted and thus cause future -NoCompile runs to load old plugins.
#rb ryan.hummer
#preflight 63779554815e4b9b754b0afc

[CL 23193965 by Tim Smith in ue5-main branch]
2022-11-18 09:31:16 -05:00
joe kirchoff
76abd8fa0a Fix duplicate keys being added to Dictionary when compiling script modules
#rnx
#jira UE-168092
#preflight 6359776e764df4711e7ca190
#rb Tim.Smith

[CL 22803455 by joe kirchoff in ue5-main branch]
2022-10-26 23:16:34 -04:00
joe kirchoff
22d3933d4d AutomationTool: ScriptModules not in the Engine directory should still be compiled when using an installed engine
Requires marking any engine ScriptModules and their dependencies as valid and up to date so those are ignored when processing project ScriptModule dependencies.

#rnx
#preflight 63506ead3833996f641ab530
#rb Marc.Audy
#jira UE-166963

[CL 22712193 by joe kirchoff in ue5-main branch]
2022-10-22 15:36:28 -04:00
joe kirchoff
1ddd1ead83 [Backout] - CL22569365
[FYI] Joe.Kirchoff
#jira UE-167455
#rb Tim.Smith
#rnx
#preflight 634efcb8dd0d2ceafae5d95b
Original CL Desc
-----------------------------------------------------------------
AutomationTool: ScriptModules not in the Engine directory should stil be compiled when using an installed engine

[CL 22632586 by joe kirchoff in ue5-main branch]
2022-10-19 14:21:54 -04:00
joe kirchoff
b090fad8f8 AutomationTool: ScriptModules not in the Engine directory should stil be compiled when using an installed engine
#jira UE-166963
#rb Tim.Smith
#rnx
#preflight 6349d6c71f6054a99f096591

[CL 22573661 by joe kirchoff in ue5-main branch]
2022-10-17 15:27:40 -04:00
Joe Kirchoff
ebea927bd0 UnrealBuildTool: Fix analysis warnings
#rnx
#rb trivial
#preflight skipped

[CL 22214533 by Joe Kirchoff in ue5-main branch]
2022-09-27 19:15:34 -04:00
Joe Kirchoff
1e0e05a324 UnrealBuildTool: File IoHasher with caching based on last write time and file size, with simple saving and loading of the hash database
Add tests for Epicgames.IoHash

#rnx
#rb Ben.Marsh
#preflight 63334d76665f6b8f7f45c2e3

[CL 22209062 by Joe Kirchoff in ue5-main branch]
2022-09-27 16:42:06 -04:00
tim smith
0c077846eb Fixed issue where already built UBT plugins were not being listed properly.
#rb self
#rnx
#preflight 6332fb5ab20e73a0989d5f7d

[CL 22205909 by tim smith in ue5-main branch]
2022-09-27 10:35:15 -04:00
tim smith
bc705a6fb8 Fixed issue where project plugins would not compile with an installed engine.
#rb joe.kirchoff
#jira UE-164268
#preflight 6328c1a2fc7f1efbdf01fa41

[CL 22087380 by tim smith in ue5-main branch]
2022-09-19 22:29:29 -04:00
tim smith
762e89adfb Fixed issue where in release mode the EpicGames.MsBuild assembly was always being loaded. This causes issues with GetTypes when invoked on all loaded assemblies.
#rb self
#preflight 6308dcd91670d55ad5f8db45

[CL 21678319 by tim smith in ue5-main branch]
2022-08-29 11:27:39 -04:00
henrik karlsson
37301aef2c [UBT/EpicGames.Build]
* Removed debug code accidentally submitted (submitted from active change than shelf and ended up submitting these lines)

#rb Devin.Doucette
#preflight trivial

#ROBOMERGE-AUTHOR: henrik.karlsson
#ROBOMERGE-SOURCE: CL 21362243 via CL 21387021 via CL 21389408 via CL 21389788
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v975-21357124)

[CL 21392503 by henrik karlsson in ue5-main branch]
2022-08-15 15:48:11 -04:00
henrik karlsson
9b603cee85 [UnrealBuildTool]
* Added support for ".ubtignore" files that can be put in a folder to make ubt ignore the folder and its subfolder
* Fixed bug where project's plugin and source folder were visited multiple times (look in FileMetadataPreftch.cs)
* Changed so Lazy<File/DirectoryItem> is resolved directly on windows platform and only do the extra refresh on mac/linux (there seems to be some bugs on those platforms and we don't want to pay extra cost on windows)
* Added runtimeconfig.template.json and changed UnrealBuildTool to use server gc and a few more settings that improve performance
* Added so all file traversing paths is aware of .uplugin
* Added debug code to be able to write out which files that have been touched during UBT execution. This can serve as a way to identify places to add .ubtignore files

#rb Joe.Kirchoff
#preflight 62f685f8cf7afa018ba0a4a5

#ROBOMERGE-AUTHOR: henrik.karlsson
#ROBOMERGE-SOURCE: CL 21360427 via CL 21371108 via CL 21371121 via CL 21371139
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21371637 by henrik karlsson in ue5-main branch]
2022-08-13 02:43:13 -04:00