Commit Graph

583 Commits

Author SHA1 Message Date
josh adams
f6381544e2 - Allow a project to override the Main SDK version for a platform (the platform's project Engine.ini would set
[OverrideSDK]
  SDKVersion=x.y.z
and AutoSDK, or anything using GetMainVersion(), would use that version string instead
- If multiple targets are built in one run of UBT/UAT, it will error out because there is no support to switch SDKs (and builds happen in parallel, etc)
- This is not a complete solution, because it can cause problems with shared tools like ShaderCompileWorker, when different projects are on different SDKs and they have one SCW to share
- Renamed GetMainVersion to GetMainVersionInternal(), and wrapped that in a new non-vitual GetMainVersion() that calls GetMainVersionInternal() (and handles the ini overrides)
#rb david.harvey,dave.barrett
#jira UE-185364
#preflight 647a12e7b0670733186c928e

[CL 25767233 by josh adams in ue5-main branch]
2023-06-02 13:42:59 -04:00
nicolas mercier
7379b5d2a0 Add an option to embed an alternate PDB search path into a Windows executable. This can be used to store PDB files in e.g. subdirectories. The default behaviour remains that the PDB file is searched in the same directory as the executable.
#rb [at]daniele.vettorel
#rnx

[CL 25721616 by nicolas mercier in ue5-main branch]
2023-06-01 04:30:15 -04:00
bob tellez
ae9e70b0eb #UE Unconditionally disabling a couple ASAN annotations to workaround an issue related to building third party libraries with different asan options than the main binary. This may be fixed in a future version of MSVC, but for now we will disable them.
[FYI] mickael.gilabert,zach.brockway

[CL 25714680 by bob tellez in ue5-main branch]
2023-05-31 17:09:37 -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
joe kirchoff
57a8fe409c UnrealBuildTool: Use expression body for simple properties and accessors
#rnx
#preflight 64766abcfe6a3b258a04cb50

[CL 25691579 by joe kirchoff in ue5-main branch]
2023-05-30 18:01:50 -04:00
tim smith
cf626105dd 1) Replaced bCanCache with new artifact mode flags
2) Added support in artifacts for relative paths
3) Modified ISPC header generation to be cached

At this time, only MSVC compiles are cached and -deterministic must be specified when building.

#rb josh.adams
#preflight 6470a172054af2576a2bd4b9

[CL 25647092 by tim smith in ue5-main branch]
2023-05-26 12:48:45 -04:00
brandon schaefer
41989bf258 Make sure to include autortfm for C files when enabled for the module
#rb none
#preflight none
[FYI] Andrew.Scheidecker, Joe.Kirchoff

[CL 25644345 by brandon schaefer in ue5-main branch]
2023-05-26 12:04:01 -04:00
David Harvey
9964f05419 Split resources.pri file generation from xml appx manifest generation.
- also removed several unused members & functions.
 - use File/DirectoryReference rather than strings in the api.

#jira UE-185896
#rb Joe.Kirchoff
#rnx
#preflight 646c74a44130b0ce508a5028

[CL 25577406 by David Harvey in ue5-main branch]
2023-05-23 04:25:59 -04:00
Joe Kirchoff
2f01b73a84 UnrealBuildTool: Bump msvc preferred version to 17.6-14.36. Notably this version improves /LTCG link duration by 25%-50% depending on the project
#rb Ryan.Hummer
#preflight 646bbd86656436839e0d37d5

[CL 25570398 by Joe Kirchoff in ue5-main branch]
2023-05-22 17:08:28 -04:00
brandon schaefer
3576318b2f Manually make change here due to conflict being to hard to understand
#rb none
#preflight none

[CL 25534679 by brandon schaefer in ue5-main branch]
2023-05-18 17:51:57 -04:00
joe kirchoff
16bd16b2fe [Backout] - CL25518086
#fyi Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
UnrealBuildTool: Move several defines from VCToolchain to instead be added in the target, so they are placed in Definitions.h rather than passed via the command line response file

#rnx
#rb trivial
#preflight 6464025811205d35736ddf19

[CL 25529878 by joe kirchoff in ue5-main branch]
2023-05-18 14:05:00 -04:00
joe kirchoff
4feafec488 UnrealBuildTool: Clean up some PGO logic to be shared, don't raise an exception if no project is set
#rnx
#jira UE-163038
#preflight 6465621e6b1406b54a79f566

[CL 25520493 by joe kirchoff in ue5-main branch]
2023-05-17 20:52:54 -04:00
Joe Kirchoff
8a6b2a36c7 UnrealBuildTool: Move several defines from VCToolchain to instead be added in the target, so they are placed in Definitions.h rather than passed via the command line response file
#rnx
#rb trivial
#preflight 6464025811205d35736ddf19

[CL 25518086 by Joe Kirchoff in ue5-main branch]
2023-05-17 18:26:08 -04:00
joe kirchoff
e459a14fd5 UnrealBuildTool: Fix missing properties in VCCompileAction copy constructor & Write
#rnx
#rb trivial

[CL 25514920 by joe kirchoff in ue5-main branch]
2023-05-17 15:58:14 -04:00
David Harvey
a910891ca3 fix for when there is no per-culture settings specified for the current project.
#jira none
#rnx
#rb trivial
#fyi Dave.Barrett
#preflight 6463d7fa11205d35736161a8

[CL 25495179 by David Harvey in ue5-main branch]
2023-05-16 15:36:34 -04:00
joe kirchoff
141f206312 UnrealBuildTool: Add .suppressed.lib to link action delete list
#rnx
#rb trivial

[CL 25494793 by joe kirchoff in ue5-main branch]
2023-05-16 15:23:35 -04:00
David Harvey
4e66a6576a Adding some additional hook points to AppXManifest generation for specializations.
#jira UE-127706
#rnx
#rb trivial
#preflight 6463b8d6f033744ae60382e0

[CL 25492738 by David Harvey in ue5-main branch]
2023-05-16 13:33:20 -04:00
David Harvey
a6477e7409 AppXManifest localized strings are parsed during initialization, not read from the ini file each time.
- TargetName is also cached from initialization, rather than being passed through everywhere.
 - some member variables renamed to clear up confusion over which culture type they refer to - UE or AppX

#jira UE-185896
#rnx
#rb Wojciech.Krywult
#preflight 6463a382317ee2d9d1ae3a9d

[CL 25490898 by David Harvey in ue5-main branch]
2023-05-16 11:57:56 -04:00
Joe Kirchoff
2907946ca1 Remove platform
#rnx
#jira UE-114382
#rb Josh.Adams
#rb Ryan.Hummer
#preflight 645eaf1eb71b8186aa02706b

[CL 25460968 by Joe Kirchoff in ue5-main branch]
2023-05-12 18:03:33 -04:00
Joe Kirchoff
9c6b2483a7 UnrealBuildTool: Remove TODO, this warning is fine to suppress
#rnx
#rb trivial
#preflight skipped

[CL 25379067 by Joe Kirchoff in ue5-main branch]
2023-05-08 17:53:59 -04:00
Joe Kirchoff
8e95c25d04 UnrealBuildTool: If /LTCG is enabled also pass it when generating libs
#rnx
#rb trivial
#preflight 6459464e9f47682963ff158c

[CL 25375223 by Joe Kirchoff in ue5-main branch]
2023-05-08 15:17:42 -04:00