200 Commits

Author SHA1 Message Date
arciel rekman
9a6e9a3814 Fix Linux toolchain building scripts.
- Native Linux toolchain is produced in already a runnable state with the proper name for distribution.
- Both cross and native toolchains have their repo path changed to the github repo they are cloned from.
- Not building bolt as this for some reason cases llvm-profdata and symbolizer not to be added to the install folder.

#rb none
[FYI] Brandon.Schaefer

[CL 26797729 by arciel rekman in 5.3 branch]
2023-08-02 23:21:54 -04:00
Arciel Rekman
4ed861549d Download v22 native Linux toolchain when setting up Linux.
#rb Brandon.Schaefer
#jira none
#review @Brandon.Schaefer

[CL 26585837 by Arciel Rekman in 5.3 branch]
2023-07-25 15:49:04 -04:00
arciel rekman
267d59c868 Script fixes for v22 toolchain
- Windows binaries use rpmalloc for a tremendous LTO speed improvements
- also a patch from clang 17.x to add a flag to disable auto-upgrading debug info
- new patch for our old sysroot missing modern stuff (HWCAP_CRC32)
- switched Linux script away from clang/lld standalone builds because they are no longer supported and don't work reliably
- fixed Windows build to allow compressing debug info with zlib
- cleaned up Windows batch files so it uses native commands (except for git/patch) and can run without Cygwin/etc installed

#rb Brandon.Schaefer
[REVIEW] Brandon.Schaefer

[CL 26285363 by arciel rekman in 5.3 branch]
2023-06-28 10:58:02 -04:00
josh adams
384ec009e9 - Fixed up latest p4vutils for Mac/Linux, updated project to handle all platforms
- Added UserInterface static class for pulling DialogBox and Clipboard stuff, which needs per-platform implementations
- Changed Windows to install P4VUtils.exe <command>, instead of dotnet P4Utils.dll <command>
- Added scripts to build all platforms, from all platforms (using the IsWindows, IsLinux, IsOSX, WithRestricted properties in the project)
- Updated Binaries as well
#rb ryan.hummer
#preflight skip

[CL 24964516 by josh adams in ue5-main branch]
2023-04-07 10:43:57 -04:00
MalikuMane
112084df2d PR #10139: Use git to find the GIT_DIR (Contributed by MalikuMane)
#review-24639689
#rb Brandon.Schaefer
#jira UE-177821
#preflight 6410a50dd778f889759a2c51

[CL 24653977 by MalikuMane in ue5-main branch]
2023-03-15 10:12:23 -04:00
Brandon Schaefer
895c73720f Move to new 15.0.1 LLVM Linux Toolchain
#jira UE-174139
#rb none
#fyi Ryan.Hummer, Zack.Neyland, Robert.Seiver, James.Singer
#preflight 63cedc59b91ac945f53281b9

[CL 23821785 by Brandon Schaefer in ue5-main branch]
2023-01-23 16:32:46 -05:00
Brandon Schaefer
f6278f65ac Update scripts for 15.0.1 LLVM
#jira UE-174139
#preflight none
#fyi James.Singer, Robert.Seiver, Zack.Neyland

[CL 23795845 by Brandon Schaefer in ue5-main branch]
2023-01-20 15:20:30 -05:00
Joe Kirchoff
086969637c BatchFiles: Clean up so non-ide UBT builds all call the same script and fix up some dependency scanning
#rnx
#rb Brandon.Schaefer
#preflight 63b752af221aab21e0313ac2

[CL 23593968 by Joe Kirchoff in ue5-main branch]
2023-01-05 17:50: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
joe kirchoff
27ee520c1b [Backout] - CL23055743
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
BatchFiles: Add output directory when caling dotnet build as running the scripts via a visual studio environment requires this, and for consistency. Via UDN

#rnx
#rb Josh.Adams
#preflight 636ae35c7c2b505190d92839

[CL 23069893 by joe kirchoff in ue5-main branch]
2022-11-09 21:04:55 -05:00
joe kirchoff
73b3529e56 BatchFiles: Add output directory when caling dotnet build as running the scripts via a visual studio environment requires this, and for consistency. Via UDN
#rnx
#rb Josh.Adams
#preflight 636ae35c7c2b505190d92839

[CL 23069570 by joe kirchoff in ue5-main branch]
2022-11-09 20:58:05 -05:00
Ryan Hummer
0ea41c9941 Removing mono referenced from GitDependencies scripts
mono not used by this tool

#rnx
#jira none
#rb none
#preflight none

[CL 22490973 by Ryan Hummer in ue5-main branch]
2022-10-12 21:25:25 -04:00
joe kirchoff
f1edb85ce3 Fix up code compile batch scripts to better support visual studio
* If invoked from VS2022, use visual studio to build UnrealBuildTool to prevent unnecessary rebuilds
* If invoked from VS2019 or on the command line without visual studio, use bundled dotnet to build
* Deduplicate all logic into Build.bat, and have Clean.bat and Rebuild.bat call Build.bat with either -Clean or -Rebuild
* Print entire dotnet version
* Replace various calls to dotnet msbuild with dotnet build
* Update old UE4 comments

#jira UE-165754
#rb ?

[CL 22387871 by joe kirchoff in ue5-main branch]
2022-10-06 19:45:24 -04:00
robert seiver
23fae11e9e Disabled an optimization which crashes dotnet during GenerateProjectFiles on Ubuntu 20.04.
#rb Brandon.Schaefer
#fyi Henrik.Karlsson, Joe.Kirchoff, Francisco.Vicente
#preflight none

[CL 21553834 by robert seiver in ue5-main branch]
2022-08-24 18:08:06 -04:00
Joe Kirchoff
3f1de0e66c Update bundled dotnet to 6.0.302
#rb Ryan.Hummer
#rnx
#jira UE-159980
#preflight 62f152ba0264595302c59855

[CL 21273202 by Joe Kirchoff in ue5-main branch]
2022-08-08 15:06:11 -04:00
josh adams
f133254485 - Fixed up 3 Linux ContentWorker issues that came from the dotnet 6 upgrade (or other recent UE5 changes):
* Staged the wrong Dotnet directory when making CW from Windows (it would stage Dotnet/6.20.00/windows)
* The ScriptModule code that used the Automation.json files to discover the precompiled UAT script dlls didn't handle \'s on Linux in the paths, and since Windows wrote out the files, there are \'s aplenty. I fixed up the known issue, but possibly all paths loaded from the json files should be fixed up, but it's not easy to do automatically
* We moved to using RunUAT.sh instead of calling dotnet directly, however because we make the CW on Windows, dotnet was not executable, and the code in RunUAT.sh to find the dotnet executable and make it executable (chmod `which dotnet`) only works if dotnet is already executable! So, I moved the +x code into SetupDotnet.sh, on Linux and Mac
#rb eric.knapik
#preflight 62ccd2009922f7e512b6e51a

#ROBOMERGE-OWNER: josh.adams
#ROBOMERGE-AUTHOR: josh.adams
#ROBOMERGE-SOURCE: CL 21055451 via CL 21055464 via CL 21055478
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)
#ROBOMERGE-CONFLICT from-shelf

[CL 21076349 by josh adams in ue5-main branch]
2022-07-13 14:17:50 -04:00
robert seiver
d88ec4c971 Accepting GitHub 9284 which modifies SetupToolchain.sh to not use incomplete archives when downloading the toolchain (instead it starts from scratch)
#jira UE-156934
#fyi @Brandon.Schaefer
#preflight none

[CL 20773768 by robert seiver in ue5-main branch]
2022-06-22 10:01:04 -04:00
Josh Adams
8ba3d7ed4c - MIssed NFL path in P4VUtils installers
#rb trivial
#preflight skip

[CL 20248551 by Josh Adams in ue5-main branch]
2022-05-17 14:56:57 -04:00
Josh Adams
bcb77edc06 - Fixing up some P4VUtils paths in the installers
- Split up the binaries between platform since there are #if's due to WinForms
#rb trivial
#preflight skip

[CL 20247967 by Josh Adams in ue5-main branch]
2022-05-17 14:26:37 -04:00
Josh Adams
a6c5a6ccd9 - Updated p4vutils to dotnet6, so we can use OperatingSystem nicely
- Will compile on Mac and Linux now
- Mac replaced the WinForms functionality with AppleScript
- Linux will compile be have reduced functionality
- Fixed up paths for p4v settings and dotnet location
- Added binaries and installer scripts for all 3 platforms - won't need UGS to install, will copy to user-library location (may need some adustment on Linux, will address after)
#rb will.damon
#preflight skip

[CL 20244727 by Josh Adams in ue5-main branch]
2022-05-17 12:00:08 -04:00
Ryan Durand
0d13c0dbf4 Per platform GitDependencies with the read-only fixes.
#rnx
#rb ryan.hummer
#jira none
#preflight

[CL 20103260 by Ryan Durand in ue5-main branch]
2022-05-09 11:12:21 -04:00
brandon schaefer
de9a7c46ea Update SetupToolchain.sh to download new v20 toolchain
#jira UE-136811
#rb Ryan.Hummer, James.Singer
#preflight none

#ROBOMERGE-AUTHOR: brandon.schaefer
#ROBOMERGE-SOURCE: CL 20040844 in //UE5/Release-5.0/... via CL 20045719
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20047950 by brandon schaefer in ue5-main branch]
2022-05-04 16:14:01 -04:00
Ryan Durand
06cb489d5c Fix missing x flag on Mac version of SetupDotnet.sh, move GitDependencies to .Net 6, and fix GitDependencies binaries and scripts.
#rnx
#jira none
#rb ryan.hummer
#preflight

[CL 19983705 by Ryan Durand in ue5-main branch]
2022-04-29 15:26:36 -04:00
Ryan Hummer
c31de4d06b Reverting to the platform specific GitDependencies
#rnx
#rb none
#fyi Ryan.Durand

[CL 19969133 by Ryan Hummer in ue5-main branch]
2022-04-28 17:12:21 -04:00
Ryan Durand
fbf021c30e Update GitDependencies binaries.
#rnx
#jira UE-141050
#rb ryan.hummer

[CL 19923684 by Ryan Durand in ue5-main branch]
2022-04-26 13:16:37 -04:00