Commit Graph

1443 Commits

Author SHA1 Message Date
Josh Adams
2c989f324c - Set default Mac architecture to universal (arm64+x64)
- Refactored Android to match with Mac way of setting default
#rb chris.babcock,zack.neyland
#preflight 63d2f355be1970f882bccca6

[CL 23876026 by Josh Adams in ue5-main branch]
2023-01-26 16:49:40 -05:00
Joe Kirchoff
f30e759f1b AutomationTool: Remove stale -iwyu UBT arg, whatvever it used to do is no longer available and this flag now runs the IWYU toolchain
#rnx
#rb Henrik.Karlsson
#preflight 63d1745c94644f3e8ee6e0c1

[CL 23852131 by Joe Kirchoff in ue5-main branch]
2023-01-25 13:30:30 -05:00
josh adams
1610c3bee3 UnrealArch/UnrealArchitectures changes
- Creates the UnrealArchitectures class, which wraps a list of UnrealArch objects
 - UnrealArch is a single architecture, expandable enum-like struct
 - There is no more concept of "no/default architecture", there is always a valid active architecture when building
 - Most uses of "string Architecture" are replaced with one of the two above, depending if multiple architectures are supported or not
 - UnrealArch has some platform-extensions for platform-specific naming (like Linux adds in LinuxName that turns, for instance, Arm64 -> aarch64-unknown-linux-gnueabi, which is used in folder names, etc)
 - UnrealArch has bIsX64 which can be used determine intel instruction set (as opposed to arm)
 - TargetRules class has an "Architecture" accessor that will return a single architecture if the active architectures is a single architecture, or throw an exception if multiple. This is useful in a majority of the cases where a paltform can only have a single architecture active in TargetRules (microsoft platforms, for instance, will create separate targets when compiling multiple architectures at once)
 - Added UnrealArchitectureConfig class, which contains all the architecture information for a platform (what architectures are supported, what ones are currently active for given project, etc)

#preflight 63c81fb5b065224750a1759e
#rb mike.fricker,roman.dzieciol,joe.kirchoff,dmytro.vovk,brandon.schaefer [various parts]
#p4v-preflight-copy 23562471

[CL 23829977 by josh adams in ue5-main branch]
2023-01-24 09:30:28 -05:00
PJ Kack
b1764482c1 UAT: Make sure to use the specified unreal executable instead of a hard coded development one when launching the cook on the fly server.
Fix bug where quick launching with cotf from a debug editor failed to launch the cook server due to a missing or old development editor executable.
Since the default executable is the the console -cmd.exe one, implement ShellExecute to open a separate shell for the server output, also fixes duplicated stdout lines in that window.
Improve BuildCookRun log messages for booting and shutting down server and client.

#jira UE-173897, UEENGQA-80955
#rb carlmagnus.nordin
#preflight 63ca9499c503023ab986b09c

[CL 23788926 by PJ Kack in ue5-main branch]
2023-01-20 08:38:42 -05:00
Tim Smith
8571b13a4a Removed the building of C++ UHT from UAT code
#rb joe.kirchoff
#preflight 63c8422dc246f148565e394b

[CL 23761148 by Tim Smith in ue5-main branch]
2023-01-18 14:11:46 -05:00
Tim Smith
a81434c74f Removed places where -nobuilduht is added to the command line.
#rb ryan.hummer
#preflight 63c7e95fac35a0e9dad8774d

[CL 23754222 by Tim Smith in ue5-main branch]
2023-01-18 08:01:18 -05:00
bob tellez
9ab9ef6345 #UE Pak performance. Save IoStore response files in the Engine saved folder instead of the Logs folder so they are not considered logs for build systems that look for and process logs.
[CL 23680946 by bob tellez in ue5-main branch]
2023-01-13 12:57:06 -05:00
bob tellez
1e24e30ab3 [Backout] - CL23669350
[FYI] Bob.Tellez
Original CL Desc
-----------------------------------------------------------------
#UE Pak performance. Save IoStore response files in the Engine saved folder instead of the Logs folder so they are not considered logs for build systems that look for and process logs.

[CL 23671673 by bob tellez in ue5-main branch]
2023-01-12 18:36:19 -05:00
bob tellez
a920d38b88 #UE Pak performance. Save IoStore response files in the Engine saved folder instead of the Logs folder so they are not considered logs for build systems that look for and process logs.
[CL 23670619 by bob tellez in ue5-main branch]
2023-01-12 17:29:21 -05:00
gary yuan
b4c229eeb8 Fix ProjectName override bug in OpenEditor build command
Running ParseParamValue with a preset project path adds extra quotes to the output and breaks the IsPathRooted check

#rb eric.knapik, tim.kennedy
#preflight skip

[CL 23631773 by gary yuan in ue5-main branch]
2023-01-10 15:20:50 -05:00
andrew grant
a3993df7e7 BenchmarkBuild
- Fix profiling of -xge and -noxge in the same pass resulting in redundant compile steps (UE-173565)
- Make -noclean also imply -nopostclean
- Add support for -ubtargs / -ubt2args / -ubt3args etc to allow profiling of different UBT args (similar to -cookargs / -cook2args etc)

Ex -

RunUAT BenchmarkBuild -project=Unreal -client -compile -ubt2args="-nodebuginfo" -ubt3args="-nopch" -ubt4args="-disableunity" -noxge

Task Unreal Build Client Win64: 00:08:12
Task Unreal Build Client Win64 (-nodebuginfo): 00:07:41
Task Unreal Build Client Win64 (-nopch): 00:13:43
Task Unreal Build Client Win64 (-disableunity): 00:22:49


#jira UE-173565
#preflight none
#rb swarm
[REVIEW] [at]eric.knapik [at]henrik.karlsson

[CL 23616624 by andrew grant in ue5-main branch]
2023-01-09 13:22:13 -05:00
sergio gardeazabal
c1ec9b119c Adding a way to force compression during staging
#rb josh.adams , justin.marcus
#preflight 63b863ff68068a8bd6353273

[CL 23609354 by sergio gardeazabal in ue5-main branch]
2023-01-08 18:12:06 -05:00
gary yuan
510e3345d1 Make OpenEditor BuildCommand accept rooted overrides for UnrealEditorApp and Project paths instead of trying to find them using Host or Project utils.
#rb eric.knapik, tim.kennedy
#preflight 63b776e0763c6c1064d7fc65

[CL 23600847 by gary yuan in ue5-main branch]
2023-01-06 14:00:02 -05:00
Josh Adams
8aed66dd0c - Added MultiShelve UAT script that can shelve multiple changelists into a single shelf
- Added a Reopen command to P4Utils.cs
- Refactored Edit and Reopen (that take file list) into a BatchCommand function to split up huge file lists across multiple commands to respect a max commandline length
- Increased max comandline length from 1024 to the ProcessStartInfo max of 32699
#rb ryan.hummer,matt.peters
#preflight 63b59866d067708b9bfe3953

[CL 23575766 by Josh Adams in ue5-main branch]
2023-01-04 10:23:56 -05:00
chris babcock
ea7579b39b Fix for Android architecture for building plugins with binary builds
#jira UE-171247
#android
[REVIEW] [at]Josh.Adams
#rb Josh.Adams

#preflight n/a

[CL 23435231 by chris babcock in ue5-main branch]
2022-12-07 16:58:39 -05:00
Josh Adams
622efc4c0d - More Architecture cleanup
- Added UAT params to pass architecture by target type (-editorarchitecture, -clientarchitecture, -serverarchitecture, -programarchitecture). Keeping -specifiedarchitecture for compat, and it will set all the other 4 if they are not specified
- Changed ProjectGenerator to find Program .uproject files (logic was looking for .Target files under the .uproject's directory, which is not the case for Programs)
- Added two params to GetProjectArchitectures:
    - bGetAllSupported - used to get all supported architectures, not just the ones currently being built for (needed for XcodeProject to know what architectures to allow in the dropdown)
    - bIsDistributionMode - used to get architectures to compile when making distribution builds (probably want to compile all architectures for distro's)
- Removed the MacExports.TargetsAlowedForAppleSilicon, updated XcodeProject code to use the new GetProjectArchitectures()
#rb david.harvey
#jira none
#preflight 63909f217e0feab0b7bd8241

[CL 23428114 by Josh Adams in ue5-main branch]
2022-12-07 09:42:34 -05:00
Alexis Matte
8b8765cb61 Make sure InterchangeWorker is build by UGS and when we release it.
#jira UE-108125
#rb
#rnx
#preflight 638a0c194b2f03a7d7a812fd

[CL 23372363 by Alexis Matte in ue5-main branch]
2022-12-02 09:45:14 -05:00
josh adams
2bb7de64da - Added a new callback to staging that allow for finalization of staged files
- Added a default implementation of GetCookPlatform, which allows BuildCookRun to run without needing any platform-specific automation DLLs (cook and staging can happen, but running/packaging would still need the platform automation dlls)
#rb graeme.thornton
#preflight 637d2ed8f514e1ded91d417b

[CL 23244387 by josh adams in ue5-main branch]
2022-11-22 20:17:39 -05:00
Josh Adams
dabd16bc46 - Removed special case Android logic, because it was adding /arm64/ into the path that was being looked for with InstalledBuilds. This change was tested in 5.1 stream with Android plugins
#rb tested-live
#jira none
#preflight 6377f286cc307d6fa5d99c86

[CL 23205040 by Josh Adams in ue5-main branch]
2022-11-18 16:15:29 -05:00
axel riffard
9780d35625 WrangleContentForDebugging UAT command to prepare for debug iOS / tvOS
#rb josh.adams
#jira UE-162968
#preflight 637458b1232e3d12cb01b154

[CL 23150547 by axel riffard in ue5-main branch]
2022-11-15 22:39:50 -05:00
robert seiver
a37788fdd4 Fixes crash when PLINK or PSCP are inside of a folder path which contains a space
#preflight none
#rb Brandon.Schaefer

[CL 23141324 by robert seiver in ue5-main branch]
2022-11-15 15:17:02 -05:00
joe pribele
242962a719 added new macro UE_DISABLE_OPTIMIZATION_SHIP to replace PRAGMA_DISABLE_OPTIMIZATION
will deprecate `PRAGMA_DISABLE_OPTIMIZATION `in a following changelist after converting code to use `UE_DISABLE_OPTIMIZATION_SHIP`

added `UE_CHECK_DISABLE_OPTIMIZATION` to check for
`UE_DISABLE_OPTIMIZATION` being left in by accident

will enable `UE_CHECK_DISABLE_OPTIMIZATION` in a following changelist
#preflight 6372b159953c19d43537b088

[CL 23126725 by joe pribele in ue5-main branch]
2022-11-14 16:37:00 -05:00
robert seiver
11bba5ecda Fixed crash during run command when deploy to a Linux server. Fix verified using Lyra Game using ushell to build, stage, and deploy the server.
#review-23101439 @Brandon.Schaefer, @Zack.Neyland
#jira UE-139484
#preflight 636e8ebc5368a3230aace90b

[CL 23108107 by robert seiver in ue5-main branch]
2022-11-11 19:29:33 -05:00
Ryan Hummer
24c40b2cb8 Run p4 add with -f to re-add files with p4 wildcards in their name
#rnx
#jira none
#rb none
#preflight skip

[CL 23042581 by Ryan Hummer in ue5-main branch]
2022-11-08 17:57:41 -05:00
tim smith
258305973b Fixed issue where the default Android architectures would prevent plugins from being built.
#rb Josh.Adams
#jira UE-168654
#preflight 635bf7a9ae6840072d2a9759

[CL 22832224 by tim smith in ue5-main branch]
2022-10-28 13:40:34 -04:00