2019-12-26 23:06:02 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
Copying //UE4/Dev-Build to //UE4/Dev-Main (Source: //UE4/Dev-Build @ 3209340)
#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
Change 3209340 on 2016/11/23 by Ben.Marsh
Convert UE4 codebase to an "include what you use" model - where every header just includes the dependencies it needs, rather than every source file including large monolithic headers like Engine.h and UnrealEd.h.
Measured full rebuild times around 2x faster using XGE on Windows, and improvements of 25% or more for incremental builds and full rebuilds on most other platforms.
* Every header now includes everything it needs to compile.
* There's a CoreMinimal.h header that gets you a set of ubiquitous types from Core (eg. FString, FName, TArray, FVector, etc...). Most headers now include this first.
* There's a CoreTypes.h header that sets up primitive UE4 types and build macros (int32, PLATFORM_WIN64, etc...). All headers in Core include this first, as does CoreMinimal.h.
* Every .cpp file includes its matching .h file first.
* This helps validate that each header is including everything it needs to compile.
* No engine code includes a monolithic header such as Engine.h or UnrealEd.h any more.
* You will get a warning if you try to include one of these from the engine. They still exist for compatibility with game projects and do not produce warnings when included there.
* There have only been minor changes to our internal games down to accommodate these changes. The intent is for this to be as seamless as possible.
* No engine code explicitly includes a precompiled header any more.
* We still use PCHs, but they're force-included on the compiler command line by UnrealBuildTool instead. This lets us tune what they contain without breaking any existing include dependencies.
* PCHs are generated by a tool to get a statistical amount of coverage for the source files using it, and I've seeded the new shared PCHs to contain any header included by > 15% of source files.
Tool used to generate this transform is at Engine\Source\Programs\IncludeTool.
[CL 3209342 by Ben Marsh in Main branch]
2016-11-23 15:48:37 -05:00
|
|
|
#include "CoreMinimal.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
#include "UnrealFrontendMain.h"
|
Copying //UE4/Dev-Core to //UE4/Dev-Main (Source: //UE4/Dev-Core @ 3847469)
#lockdown Nick.Penwarden
#rb none
============================
MAJOR FEATURES & CHANGES
============================
Change 3805828 by Gil.Gribb
UE4 - Fixed a bug in the lock free stalling task queue and adjusted a comment. The code is not current used, so this is not actually change the way the code works.
Change 3806784 by Ben.Marsh
UAT: Remove code to compile UBT when using UE4Build. It should already be compiled as a dependency of UAT.
Change 3807549 by Graeme.Thornton
Add a cook timer around VerifyCanCookPackage. A licensee reports this taking a lot of time so it'll be good to account for it.
Change 3807727 by Graeme.Thornton
Unhide the text asset format experimental editor option
Change 3807746 by Josh.Engebretson
Remove WER from iOS platform
Change 3807928 by Robert.Manuszewski
When async loading, GC Clusters will be created after packages have been processed to avoid situations where some of the objects that are being added to a cluster haven't been fully loaded yet
Change 3808221 by Steve.Robb
GitHub #4307 - Made GetModulePtr() thread safe by not using GetModule()
^ I'm not convinced by how much thread-safer this is really, but it's tidier anyway.
Change 3809233 by Graeme.Thornton
TBA: Misc changes to text asset commandlet
- Rename mode to "loadsave"
- Add -outputFormat option which can be assigned "text" or "binary"
- When saving binary, use a differentiated filename so that source assets aren't overwritten
Change 3809518 by Ben.Marsh
Remove the outdated UnrealSync automation script.
Change 3809643 by Steve.Robb
GitHub #4277 : fix bug; FMath::FormatIntToHumanReadable 3rd comma and negative value
#jira UE-53037
Change 3809862 by Steve.Robb
GitHub #3342 : [FRotator.h] Fix to DecompressAxisFromByte to be more efficient and reflect its intent accurately
#jira UE-42593
Change 3811190 by Graeme.Thornton
Add support for writing specific log channels to their own files
Change 3811197 by Graeme.Thornton
Minor updates to output formatting and timing for the text asset commandlet
Change 3811257 by Robert.Manuszewski
Cluster creation will now be time-sliced
Change 3811565 by Steve.Robb
Define out non-monolithic module functions.
Change 3812561 by Steve.Robb
GitHub #3886 : Enable Brace-Initialization for Declaring Variables
Incorrect semi-colon search removed after discussion with author.
Test added.
#jira UE-48242
Change 3812864 by Steve.Robb
Removal of some unproven code which was supposed to fix hot reloading BP class functions in plugins.
See: https://udn.unrealengine.com/questions/376978/aitask-blueprint-nodes-disappear-when-their-module.html
#jira UE-53089
Change 3820358 by Ben.Marsh
PR #4358: Incredibuild use ShowAgent by default (Contributed by projectgheist)
Change 3822594 by Ben.Marsh
UAT: Improvements to log file handling.
- Always create log files in the final location, rather than writing to a temp directory and copying in later.
- Now supports -Verbose and -VeryVerbose for increasing log verbosity, rather than -Verbose=XXX.
- Keep a backlog of log output before the log system is initialized, and flush it to the log file once it is.
- Allow buildmachines to specify the uebp_FinalLogFolder environment variable, which is used to form paths for display. When build machines copy log files elsewhere after UAT finishes (eg. a network share), this allows error messages to display the right location.
Change 3823695 by Ben.Marsh
UGS: Fix issue where precompiled binaries would not be shown as available for a change until scrolling the last submitted code change into the buffer (other symptoms, like de-focussing the main window would cause it to go back to an unavailable state, since the changes buffer was shrunk).
Now always queries changes up to the last change for which zipped binaries are available.
Change 3823845 by Ben.Marsh
UBT: Exclude C# projects for unsupported platforms when generating project files.
Change 3824180 by Ben.Marsh
UGS: Add an option to show changes by build machines, and move the "only show reviewed" option in there too (Options > Show Changes).
#jira
Change 3825777 by Steve.Robb
Fix to return value of StringToBytes.
Change 3825810 by Ben.Marsh
UBT: Reduce length of include paths for MSVC toolchain.
Change 3825822 by Robert.Manuszewski
Optimized PIE lazy pointer fixup. Should be up to 8x faster now.
Change 3826734 by Ben.Marsh
Remove code to disable TextureFormatAndroid on Linux. It seems to be an editor dependency.
Change 3827730 by Steve.Robb
Try to avoid decltype(auto) if it's not supported.
See: https://udn.unrealengine.com/questions/395644/build-417-with-c11-on-linux-ttuple-errors.html
Change 3827745 by Steve.Robb
Initializer list support for TMap.
Change 3827770 by Steve.Robb
GitHub #4399 : Added a CONSTEXPR qualifiers to FVariant::GetType()
#jira UE-53813
Change 3829189 by Ben.Marsh
UBT: Now always writes a minimal log file. By default, just contains the regular console output and any reasons why actions are outdated and needed to be executed. UAT directs child UBT instances to output logs into its own log folder, so that build machines can save them off.
Change 3830444 by Steve.Robb
BuildVersion and ModuleManifest moved to Core, and parsing of these files reimplemented to avoid a JSON library.
This should be revisited when Core has its own JSON library.
Change 3830718 by Ben.Marsh
Fix incorrect group name being returned by FStatNameAndInfo::GetGroupName() for stat groups.
The editor populates the viewport stats list by calling this for every registered stat and stat group (via FLevelViewportCommands::HandleNewStatGroup). The menu entry attempts to show the stat name with STAT_XXX stripped from the start as the menu item label, with the free-form text description as a tooltip.
For stat groups, the it would previously just return the stat group name as "Groups" (due to the raw naming convention of "//Groups//STATGROUP_Foo//..."). Since this didn't match the expected naming convention in FLevelViewportCommands::HandleNewStat (ie. STAT_XXX or STATGROUP_XXX), it would fail to add it.
When the first actual stat belonging to that group is added, it would add a menu entry for the group based on that, but the stat description no longer makes sense as a tooltip for the group. As a result, all the editor tooltips were junk.
#jira UE-53845
Change 3831064 by Ben.Marsh
Fix log file contention when spawning UBT recursively.
Change 3832654 by Ben.Marsh
UGS: Fix error panel not being selected when opened, and weird alignment/color issues on it.
Change 3832680 by Ben.Marsh
UGS: Fix failing to detect workspace if synced to a different stream. Seems to be a regression caused by recent P4D upgrade.
Change 3832695 by Ben.Marsh
UGS: Invert the options in the 'Show Changes' submenu for simplicity.
Change 3833528 by Ben.Marsh
UAT: Script to rewrite source files with public include paths relative to the 'Public' folder. Usage is: RebasePublicIncludePaths -UpdateDir=<Dir> [-Project=<Dir>] [-Write].
Change 3833543 by Ben.Marsh
UBT: Allow targets to opt-out of having public include paths added for every dependent module. This reduces the command line length when building a target, which has recently become a problem with larger games (due to Microsoft's compiler embedding the command line into each object file, with a maximum length of 64kb). All engine modules are compiled with this enabled; games may opt into it by setting bLegacyPublicIncludePaths = false; from their .target.cs, as may individual modules.
Change 3834354 by Robert.Manuszewski
Archetype pointer will now be cached to avoid locking the object tables when acquiring its info. It should also be faster this way regardless of any locks.
#jira UE-52035
Change 3834400 by Robert.Manuszewski
Fixing crash on exit caused by cached archetypes not being cleaned up before static exit cleanup.
#jira UE-52035
Change 3834947 by Steve.Robb
USE_FORMAT_STRING_TYPE_CHECKING removed from FMsg::Logf and FMsg::Logf_Internal.
Change 3835004 by Ben.Marsh
Fix code that relies on dubious behavior of requiring referenced "include path only" modules having their _API macros set to be empty, even if the module is actually implemented in a separate DLL.
Change 3835340 by Ben.Marsh
Fix errors making installed build from directories with spaces in the name.
Change 3835972 by Ben.Marsh
UBT: Improved diagnostic message for targets which don't need a version file.
Change 3836019 by Ben.Marsh
UBT: Fix warnings caused by defining linkage macros for third party libraries.
Change 3836269 by Ben.Marsh
Fix message box larger than the screen height being created when a large number of modules are incompatible on startup.
Change 3836543 by Ben.Marsh
Enable SoundMod plugin on Linux, since it's already supported through the editor.
Change 3836546 by Ben.Marsh
PR #4412: fix type mismatch (Contributed by nakapon)
Change 3836805 by Ben.Marsh
Fix commandlet to compile marketplace plugins.
Change 3836829 by Ben.Marsh
UBT: Fix ability to precompile plugins from installed engine builds.
Change 3837036 by Ben.Marsh
UBT: Write the previous and new contents of intermediate files to the log if they change. Makes it easier to debug unexpected rebuilds.
Change 3837037 by Ben.Marsh
UBT: Fix engine modules having inconsistent definitions depending on whether modules are only referenced for their include paths vs being linked into a binary (due to different _API macro).
Change 3837040 by Ben.Marsh
UBT: Remove code that initializes members in ModuleRules and TargetRules objects before the constructor is run. This is no longer necessary, now that the backwards-compatible default constructors have been removed.
Change 3837247 by Ben.Marsh
UBT: Remove UELinkerFixups module, now that plugins and precompiled modules do not require hacks to force initialization (since they're linked in as object files).
Encryption and signing keys are now set via macros expanded from the IMPLEMENT_PRIMARY_GAME_MODULE macro, via project-specific macros added in the TargetRules constructor.
Change 3837262 by Ben.Marsh
UBT: Set whether a module is an engine module or not via a default value for the rules assembly. All non-program engine and enterprise modules are created with this flag set to true; program targets and modules are now created from a different assembly that sets it to false. This removes hacks from UEBuildModule needed to adjust behavior for different module types based on the directory containing the module.
Also add a bUseBackwardsCompatibleDefaults flag to the TargetRules class, also initialized to a default value from a setting passed to the RulesAssembly constructor. This controls whether modules created for the target should be configured to allow breaking changes to default settings, and is set to false for all engine targets, and true for all project targets.
Change 3837343 by Ben.Marsh
UBT: Remove the OverrideExecutableFileExtension target property. Change the only current use for this (the MayaLiveLinkPlugin target) to use a post build step to copy the file instead.
Change 3837356 by Ben.Marsh
Fix invalid character encodings.
Change 3837727 by Graeme.Thornton
UnrealPak: KeyGenerator: Only generate prime table when required, not all the time
Change 3837823 by Ben.Marsh
UBT: Output warnings and errors when compiling module rules assembly in a way that allows them to be double-clicked in the Visual Studio output window.
Change 3837831 by Graeme.Thornton
UBT: When parsing crypto settings, always load legacy data first, then allow the new system to override it. Provides the same key backwards compatibility that the editor settings class gives
Change 3837857 by Robert.Manuszewski
PR #4404: Make FGCArrayPool singleton global instead of per-CU (Contributed by mhutch)
Change 3837943 by Robert.Manuszewski
PR #4405: Fix FGarbageCollectionTracer (Contributed by mhutch)
Change 3838451 by Ben.Marsh
UBT: Fix exceptions thrown on a background thread while caching C++ includes not being caught and logged correctly. Now captures exceptions and re-throws on the main thread.
#jira UE-53996
Change 3839519 by Ben.Marsh
UBT: Simplify configuring bPrecompile and bUsePrecompile settings for modules. Each rules assembly can now be configured as installed, which defaults the module rules it creates to use precompiled data.
Change 3843790 by Graeme.Thornton
UnrealPak: Log the size of all encrypted data
Change 3844258 by Ben.Marsh
Fix plugin compile failure when created via new plugin wizard. Passing -plugin on the command line is unnecessary, and is now reserved for packaging external plugins for the marketplace.
Also extend the length of time that the error toast stays visible, and don't delete the plugin on failure.
#jira UE-54157
Change 3845796 by Ben.Marsh
Workaround for slow performance of String.EndsWith() on Mono.
Change 3845823 by Ben.Marsh
Fix case sensitive matching of platform names in -TargetPlatform=X argument to BuildCookRun.
#jira UE-54123
Change 3845901 by Arciel.Rekman
Linux: fix crash due to lambda lifetime issues (UE-54040).
- The lambda goes out of scope in FBufferVisualizationMenuCommands::CreateVisualizationCommands, crashing the editor if compiled with a recent clang (5.0+).
(Edigrating 3819174 to Dev-Core)
Change 3846439 by Ben.Marsh
Revert CL 3822742 to always call Process.WaitForExit(). The Android target platform module in the editor spawns ADB.EXE, which inherits the editor's stdout/stderr handles and forks itself. Process.WaitForExit() waits for EOF on those pipes, which never occurs because the forked process never terminates.
Proper fix is probably to have the engine explicitly duplicate stdout/stderr handles for new pipes to output process, but too risky before copying up to Main.
Change 3816608 by Ben.Marsh
UBT: Use DirectoryReference objects for all include paths.
Change 3816954 by Ben.Marsh
UBT: Remove bIncludeDependentLibrariesInLibrary option. This is not widely supported by platform toolchains, and is not used anywhere.
Change 3816986 by Ben.Marsh
UBT: Remove UEBuildBinaryConfig; UEBuildBinary objects are now just created directly.
Change 3816991 by Ben.Marsh
UBT: Deprecate PlatformSpecificDynamicallyLoadedModules. We no longer have any special behavior for these modules.
Change 3823090 by Ben.Marsh
UAT: Improve logging for child UAT instances.
- Calling RunUAT now requires an identifier for prefixing into the parent log, which is also used to determine the name of the log folder.
- Stdout is no longer written to its own output file, since it's written to the parent stdout, the parent log file, and the child log file anyway.
- Log folders for child UAT instances are left intact, rather than being copied to the parent folder. The derived names for the copied names were confusing and hard to read.
- Output from UAT is no longer returned as a string. It should not be parsed anyway (but may be huge!). ProcessResult now supports running without capturing output.
Change 3826082 by Ben.Marsh
UBT: Add a check to make sure that all modules that are precompiled are correctly marked to enable it, even if they are part of the build target.
Change 3827025 by Ben.Marsh
UBT: Move the compile output directory into a property on the module, and explicitly pass it to the toolchain when compiling.
Change 3829927 by James.Hopkin
Made HTTP interface const correct
Change 3833533 by Ben.Marsh
Rewrite engine source files to base include paths relative to the "Public" directory. This allows reducing the number of public include paths that have to be added for engine modules.
Change 3835826 by Ben.Marsh
UBT: Precompiled targets now generate a separate manifest for each precompiled module, rather than adding object files to a library. This fixes issues where object files from static libraries would not be linked into a target if a symbol in them was not referenced.
Change 3835969 by Ben.Marsh
UBT: Fix cases where text is being written directly to the console rather than via logging functions.
Change 3837777 by Steve.Robb
Format string type checking added to FOutputDevice::Logf.
Fixes for those.
Change 3838569 by Steve.Robb
Algo moved up a folder.
[CL 3847482 by Ben Marsh in Main branch]
2018-01-20 11:19:29 -05:00
|
|
|
#include "HAL/ExceptionHandling.h"
|
Copying //UE4/Dev-Platform to //UE4/Dev-Main (Source: //UE4/Dev-Platform @ 3120366)
#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
Change 2714591 on 2015/10/02 by Ben.Marsh
Initial branch of files from Engine-Main (//UE4/Engine-Main) to Dev-Platform (//UE4/Dev-Platform)
Change 2916715 on 2016/03/21 by Daniel.Lamb
First pass at splitting out build cook run into into seperate scripts.
Change 2948322 on 2016/04/19 by Nick.Shin
update libwebsockets to v1.7.4
part 4 of 4 - doing this in stages for tracking purposes
#jira UEPLAT-1246 - Update libWebsockets
#jira UEPLAT-1221 - update websocket library
#jira UEPLAT-1204 - Rebuild libwebsockets with SSL
Change 2970016 on 2016/05/07 by Nick.Shin
undo all of the following upgrades:
- zlib
- openssl
- libcurl
- libwebsockets
and reset webrtc
#jira UE-30298 - Fortnite and Orion crash on login
Change 3059693 on 2016/07/21 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Change 3061151 on 2016/07/22 by Niklas.Smedberg
Fast ASTC texture compression, using ISPC.
#jira UE-32308
Change 3061428 on 2016/07/22 by Peter.Sauerbrei
Back out changelist 3061151 as it wasn't approved for submission
Change 3061970 on 2016/07/22 by Steve.Cano
Adding AdMob interstitital ad support for Android, including Blueprint functions
#jira UE-33286
#ue4
#android
Change 3062160 on 2016/07/22 by Mark.Satterthwaite
Fix the fix for handling RHISetStreamSource overriding stride on Metal - not all MTLVertexDescriptors are equally hashable so do this ourselves.
#jira UE-33355
Change 3062770 on 2016/07/24 by Brent.Pease
UE-32397 Error Message displays as Unknown Error when failing to supply a Remote Build server for ios on Windows
Change 3063227 on 2016/07/25 by Dmitry.Rekman
Update hlslcc cross-compile after libc++ change.
Change 3063314 on 2016/07/25 by Jeff.Campeau
Xbox One DLL loading
Receipts can be read back by request for target info
Change 3063329 on 2016/07/25 by Mark.Satterthwaite
CL #3046743 was breaking other samples in unexpected ways after a recent Main merge, so make a Metal-specific change to the shader instead and amend the MetalBackend to better match HLSL's handling of NaN/inf with common single-precision float intrinsics. This is sufficient to fix the AtmosphericFog and the recent regressions.
#jira UE-33600
#jira UE-33028
#jira UE-27879
#jira UE-25802
Change 3063492 on 2016/07/25 by Brent.Pease
UE-23846 - iOS Movie Player can't handle videos at resolutions that aren't multiples of 16
UE-33200 - A movie isn't played on iOS occasionally.
Change 3063729 on 2016/07/25 by Dmitry.Rekman
Linux: enable XGE on all platforms.
#tests Cross-compiled a number of Linux targets on Windows.
Change 3063732 on 2016/07/25 by Dmitry.Rekman
Fixed formatting (spaces->tabs) in previous change.
Change 3063750 on 2016/07/25 by Daniel.Lamb
Added code to dump the cook modification delegate loads to log.
Fixed the memory usage output log.
#test cook paragon.
Change 3063804 on 2016/07/25 by Daniel.Lamb
Added cookpartialgc additional commandline option to uat.
#test UFE
Change 3064008 on 2016/07/25 by Mark.Satterthwaite
For non-shipping builds conditionally bind a default uniform buffer in Metal and report an error if the slot was unbound, if our validation layer is enabled attempt to report the shader source in question. This relies on the shader compiler providing accurate information about uniform buffer bindings and won't fix all occurances of bad uniform usage (if a buffer is bound but too short the result will be GPU restarts or an error in Apple's validation layer - we can't detect this case) but will help debug the typical error of leaving an active slot unbound.
#jira FORT-27685
Change 3064141 on 2016/07/25 by Jeff.Campeau
Rebuild vpxmd.lib with delayed codegen disabled (fixes linker warning building Win64).
Change 3065024 on 2016/07/26 by Nick.Shin
Change filetype
remove exclusive check out bit
requested by or.coheni & nick.penwarden
Change 3065274 on 2016/07/26 by Jonathan.Fitzpatrick
DirectoriesToAlwaysStageAsUFS now properly filters out *.uasset and *.umap files
This prevents the bug where cooked assets get trampled by staging their uncooked version on top of them during the UFS step
Added a file filter to DirectoriesToAlwaysStageAsUFS for uasset and umap.
Change 3066338 on 2016/07/27 by Mark.Satterthwaite
Handle releasing an SRV/UAV & the source object within a single Metal command-buffer.
#jira UE-33779
Change 3066789 on 2016/07/27 by Daniel.Lamb
Realtime mode does not save any packages anymore unless they are ready.
#test cookontheside, cookbythebook shooter game
Change 3066847 on 2016/07/27 by Jeff.Campeau
Fix define
#2634
#jira UE-33813
Change 3068868 on 2016/07/28 by Mark.Satterthwaite
Extend hlslcc's handling of switch-statements to allow implict casts from scalar bool, half & float as HLSL itself permits while also making sure it errors if the expression input is not scalar. This fixes shader compile errors in UT.
Change 3070040 on 2016/07/29 by Dmitry.Rekman
Delete Nadzorca.
Change 3070947 on 2016/07/29 by Jeff.Campeau
Perforce C++ API 2015.2 (includes debug libraries)
Change 3073707 on 2016/08/02 by Daniel.Lamb
Derived data cache commandlet runs resolve string asset references to load any string asset refereced packages from the map.
Also process async results from shaders being compiled so they can have their memory resources released.
#test DerivedDataCache commandlet shootergame.
Change 3076613 on 2016/08/03 by Brent.Pease
+ UnrealTargetConfiguration is now passed into deploy and package methods
+ The UIRequiredDeviceCapabilities plist key now only considers the architectures from the corresponding target configuration (shipping or development)
Change 3076668 on 2016/08/03 by Brent.Pease
Back out changelist 3076613
Change 3077157 on 2016/08/04 by Daniel.Lamb
Fixed up DLC staging so that it stages to the proper mount point.
Fixes up include engine content in DLC staging paths.
#test Made up shooter game DLC
Change 3077191 on 2016/08/04 by Daniel.Lamb
More smartly process async shader compilation if we are waiting for it.
#test cook on the side shooter game cook by the book shooter game.
Change 3077412 on 2016/08/04 by Mark.Satterthwaite
Fix "iOS Metal-based build crashes at launch with sub-levels":
- Slate should not bind the null RHI texture from an unitialised texture atlas - atlases only have a valid texture pointer once an entry has been added to them and in the template projects an empty sub-level doesn't add anything.
- To prevent this kind of bug resurfacing and being so hard to track down add Metal shader binding validation to our validation layer as Apple's is incomplete on iOS and won't warn us about nil texture usage which causes these GPU restarts. This requires reworking our vertex declaration handling to be more efficient so that we can cache the pipeline reflection data as well as the pipeline objects.
- Fix validation error of texture reallocation on loading template projects under Metal.
#jira UE-30847
Change 3077958 on 2016/08/04 by Brent.Pease
+ UnrealTargetConfiguration is now passed into deploy and package methods
+ The UIRequiredDeviceCapabilities plist key now only considers the architectures from the corresponding target configuration (shipping or development)
Change 3079503 on 2016/08/05 by Mark.Satterthwaite
Initialise more variable types to 0 in Metal shaders to workaround Xcode 8 toolchain no longer doing this for us for "threadgroup shared" variables. Everything but structs and atomic's will now be initialised.
#jira UE-33856
Change 3079737 on 2016/08/05 by Jeff.Campeau
Add support for delay load DLLs on Xbox One
Turn off warnging for missing PDBs to match VCToolchain.cs
Change 3081005 on 2016/08/08 by Mark.Satterthwaite
Fix-up Metal device name on AMD for macOS 10.12 which reports it correctly and enable tiled reflections on Intel from macOS 10.12 too as they now work.
Change 3081557 on 2016/08/08 by Daniel.Lamb
File-> Package saves all packages before starting packaging.
#test File package first person template
Change 3082215 on 2016/08/09 by Lee.Clark
PS4 - Added 4k profile
Change 3082412 on 2016/08/09 by Daniel.Lamb
Fixed cook on the fly server not handling cook requests.
#test Cook on the fly shooter game.
Change 3082955 on 2016/08/09 by Dmitry.Rekman
Linux: convert existing Strcat() uses to Strncat().
- Strcat() does not check destination size so can silently corrupt memory. While this was not observed, this conversion removes this concern altogether.
Change 3083772 on 2016/08/10 by Luke.Thatcher
[PLATFORM] [PS4] [+]
Checking in PS4CrashHandler files so we have a copy in Perforce rather than just on the server.
- Taken from \\devweb-02 and removed all the unused files/dependencies.
- Created a publish profile pointing to \\devweb-02\Sites\PS4Services\PS4CrashHandlerDev so I'm not writing over the existing deployed crash handler.
- Moved all code in the Page_Load event to inside the check for the HTTP method (POST) otherwise GET'ing the page from a browser will generate crash folders that hang around forever.
Change 3085450 on 2016/08/11 by Lee.Clark
PS4 - Fix mediaplayer pipeline allocation
Change 3086360 on 2016/08/11 by Michael.Trepka
Fixed a non-unity build error in Mac UnrealFrontend
Change 3087224 on 2016/08/12 by Luke.Thatcher
[PLATFORM] [PS4] [~]
Refactor PS4 Crash Handler site
- Removed CoreDumpHandler. Processing dump files is handled directly by an async thread within the aspx process.
- Separated configuration values into their own class. Currently set to output to a testing directory, rather than the actual crash reporter landing zone.
- Added a debug upload page to allow manual submission of .orbisdmp/.txt settings files, accessible by GET'ing Default.aspx.
- Added logging. Logs self-delete after 30 days.
Testing required before we switch to the new system.
#jira UE-34504
#jira OR-26886
Change 3087626 on 2016/08/12 by Dmitry.Rekman
PR #2689: Fix copying/duplicating failing on Linux (UE-34586).
- Contributed by Web-eWorks.
Change 3087991 on 2016/08/12 by Mark.Satterthwaite
Initial AVFoundation implementation of Media Framework for Mac, iOS & tvOS.
- Video playback occurs via AVPlayerItemVideoOutput's attached to the AVPlayerItem's output. This means gathering video samples is trivial.
- Metal texture updates occur by wrapping the texture object provided by AVF - for Mac this is simple as it can bind to the IOSurface directly, for iOS/tvOS we have to create a CVMetalTextureCache and allocate our texture from there.
- OpenGL and OpenGLES currently have to lock the pixel buffer and upload to a texture the old fashioned way - this should be revisited when there is time.
- Subtitles/Captions are captured using AVPlayerItemLegibleOutput which also connects to the AVPlayerItem's output.
- On Mac audio samples are returned by manually reading from the stream using an AVAssetReaderTrackOutput, including manual seeking and synching.
- On iOS/tvOS the audio is played directly by AVPlayer because the IOSAudio system can't handle procedural buffers - otherwise it could reuse the Mac code.
- AVFoundation does not support AVI - that's an obsolete Microsoft/Windows file-format.
- Only 'file://' URLs are supported - streaming would require a totally different audio solution (using MTAudioProcessingTap) and has many more edge and failure cases that would need to be handled.
#jira UE-34315
Change 3088790 on 2016/08/15 by Luke.Thatcher
[PLATFORM] [PS4] [~]
Hook new PS4 crash handler up to the crash reporter website.
- Removed indentation from generated crash context XML file. The crash reporter process does manual XML parsing which doesn't correctly handle whitespace at the start of lines.
- Switched the final output folder to match the one the crash reporter process is watching.
- Hide upload form on a config variable.
#jira UE-34504
#jira OR-26886
Change 3089060 on 2016/08/15 by Luke.Thatcher
[PLATFORM] [PS4] [!]
Change PS4 crash handler log file extension to ".ps4chlog", otherwise the crash reporter site attaches the wrong log file to the crash report.
Allowed showing of debug upload form via "Default.aspx?showform=1" query string.
#jira UE-34504
#jira OR-26886
Change 3089089 on 2016/08/15 by Mark.Satterthwaite
Duplicated changes to AppleMovieStreamer from CL #3088149.
#jira UE-34315
Change 3089460 on 2016/08/15 by Mark.Satterthwaite
Duplicate CL #3080971:
Workaround a macOS 10.12 Beta bug on some Metal drivers that can't initialise temporary/local variable arrays, only those that are marked threadgroup shared.
#jira UE-34355
Change 3089465 on 2016/08/15 by Mark.Satterthwaite
For Metal shader translation retain more precision for float constants -1.0f >< 1.0f by emitting them in scientific notation - prevents Hammersley constant amongst others from being flushed to 0.
Change 3089902 on 2016/08/15 by Daniel.Lamb
Changed the next compiling ID to the correct compiling ID.
#test Cook
Change 3089903 on 2016/08/15 by Daniel.Lamb
Cooker monitors config useage during cook and uses those settings to invalidate cooked content instead of all config settings.
Change 3090114 on 2016/08/16 by Luke.Thatcher
[PLATFORM] [PS4] [~]
Minor change to PS4 settings text on crash handler site.
Change 3090949 on 2016/08/16 by Nick.Shin
WebSocketNetDriver crash fix
filled in missing chunk of code that calls PacketHandler's "packet modifiers"
#jira UE-25492 HTML5 Client cannot connect to Windows Server
#jira UE-30880 WinServer crashes when NetDriver is set to WebSocket and Client attempts to connect via websocket
#code.review john.pollard john.barrett
Change 3091265 on 2016/08/16 by Brent.Pease
Add IOS support to HarfBuzz
Change 3091267 on 2016/08/16 by Brent.Pease
Add references to fix mono build
Change 3091291 on 2016/08/16 by Nick.Shin
CIS warning fix
#jira UE-25492 HTML5 Client cannot connect to Windows Server
#jira UE-30880 WinServer crashes when NetDriver is set to WebSocket and Client attempts to connect via websocket
Change 3091781 on 2016/08/17 by Joe.Barnes
UE-33640: Exposed UPrimitiveComponent::IsAnyRigidBodyAwake() to Blueprints.
Change 3092687 on 2016/08/17 by Daniel.Lamb
Added support for using binned allocator in cooker instead of tbb.
#test Cook shootergame.
Change 3093867 on 2016/08/18 by Mark.Satterthwaite
Use a read/write mutex to protect access to Metal's internal shader pipeline caches so that parallel threads can progress in the common case where new shaders are not being compiled.
Change 3093950 on 2016/08/18 by Mark.Satterthwaite
Change the Mac GPU identification code to cope with AMD's new naming scheme on 10.12.
Change 3093951 on 2016/08/18 by Mark.Satterthwaite
More SCW threads on Mac - they work now.
Change 3093960 on 2016/08/18 by Mark.Satterthwaite
Increase the default number of command-buffers on Mac because bigger games overflow the current limit of 64 per queue.
Change 3096493 on 2016/08/22 by Jeff.Campeau
Use Xbox version of DirectX include.
Change 3097509 on 2016/08/23 by Luke.Thatcher
[PLATFORM] [PS4] [+]
Refactor PS4 Symbol Publish
- Moved the SymStore task from Win.Automation to BuildGraph.Automation, and made it more generic.
- The specifics of uploading symbols are now implemented in the platform tool chain, alongside StripSymbols().
- Re-generated the build graph schema file.
- Removed the old PS4 symbols upload path in the package step.
Modified OrionBuild.xml to publish symbols for all PS4 dev, test and shipping config builds of OrionClient.
Change 3097635 on 2016/08/23 by Luke.Thatcher
[PLATFORM] [PS4] [+]
Refactor Age Symbols task in UAT.
- Moved the AgeStore task from Win.Automation to BuildGraph.Automation and made it more generic.
- Symbol server directory structure is now defined by the platform tool chain, which the common task uses to clean out old symbols.
- Added a "filter" parameter to prevent age tasks deleting symbols from unrelated builds in shared symbol servers.
Modified OrionBuild.xml to age both the Windows and PS4 symbol stores.
Change 3097713 on 2016/08/23 by Luke.Thatcher
[PLATFORM] [PS4] [+]
Enable new PS4 crash handler server
- Created live deployment profile and applied the required config file changes.
Change 3099214 on 2016/08/24 by Luke.Thatcher
[PLATFORM] [PS4] [!]
Fix compile error in PS4 tool chain. For some reason, this only breaks ocassionally. Maybe we're alternating between the 2013 and 2015 C# compilers depending on what initiates the build (e.g. Visual Studio vs GenerateProjectFiles)?
Change 3099222 on 2016/08/24 by Luke.Thatcher
[PLATFORM] [PS4] [+]
Added PS4 support for FPlatformMisc::MessageBoxExt using the MsgDialog library.
- Note, only one and two button message dialogs are supported (limitation of MsgDialog).
Change 3099260 on 2016/08/24 by Luke.Thatcher
[PLATFORM] [PS4] [~]
Better PS4 exit function. Calls quick_exit instead of abort when we've not asserted. Allows for a "cleaner" forced exit without generating a crash dump.
Change 3101192 on 2016/08/25 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Change 3101944 on 2016/08/25 by Daniel.Lamb
Ask to save the current level when we are using launch on.
Change 3102036 on 2016/08/25 by Nick.Shin
check for minimum expected size upon data received from network
#jira UE-13657 - HTML5 plugin OnRawRecieve overflow
Change 3102115 on 2016/08/25 by Brent.Pease
- Fix small errors that probably only show up in the mac mono build
#code.review peter.sauerbrei
Change 3102747 on 2016/08/26 by Jeremiah.Waldron
Re-submitting OnlineSubsystemGameCircle with TPS permission for Amazon SDK
- Also fixed the plugin to remove any related files from the final package when IAP is disabled or GameCircle support itself is disabled with the plugin still enabled
- Added support for new AlreadyOwned IAP response code as well which is already used for GooglePlay and IOS
Change 3102900 on 2016/08/26 by Nick.Shin
since last checkin (CL: 2981945) - prints are crashing the browser - this change will allow browser to print the details via console.log()
#jira UE-26047 - HTML5 HTTP Response Headers not implemented
Change 3103130 on 2016/08/26 by Brent.Pease
UE-24679 - Enable the ability to change ports for a firewall to pass them through rsync
Change 3103225 on 2016/08/26 by Daniel.Lamb
Fixed issue with warning which would cause crash.
Change 3103425 on 2016/08/26 by Dmitry.Rekman
Enable offscreen GL rendering without X.
- Added new video subsystem to SDL that is uses EGL to initialize the context.
- Most windoing functions stubbed.
- Also added a new test case to TestPAL for easier debugging.
Change 3104743 on 2016/08/29 by Brent.Pease
Support remote offline metal shader compilation
Change 3105051 on 2016/08/29 by Brent.Pease
UE-2382 - TASK: MobleMVP: iOS: Add ability to view iOS device console output in the editor UFE
- IOS Automation will now create a thread to collect the console logs from the device and send them to C# Console output while the app is running on device
- Made ProcessResult an interface (IProcessResult) which ProcessResult implements. This allows platforms to provide their own implementation if needed.
- Moved the RunLoop related parts of CoreFoundation into MobileDevice.cs
Change 3105053 on 2016/08/29 by Brent.Pease
- IOS dll's as part of the last check-in
Change 3106853 on 2016/08/30 by Jeff.Campeau
Implement FD3D11DynamicRHI::RHICreateComputeFence to prevent memory overwrite
Change 3107361 on 2016/08/30 by Dmitry.Rekman
Renderer: changes to allow postproc delegates.
Change 3107362 on 2016/08/30 by Dmitry.Rekman
Plugin with a CUDA postproc example.
- Linux version only. Runs under a headless GL too (without X).
- Disabled during cross-compilation, can be compiled natively only.
- CUDA kernel should be compiled separately, CMakefile with compilation attached (can be used to generate VStudio projects as well).
- To test the output, run under the debugger, interrupt and set global variable GSaveTheOutput to 50 (this will write out kernel output buffer 50 times as .bmp files into working directory).
Change 3107913 on 2016/08/31 by Daniel.Lamb
Fixed loading of cooked content in the editor.
Change 3107916 on 2016/08/31 by Daniel.Lamb
Added error case when shader compilation fails to notify shader.
#test Cook shooter game.
Change 3108080 on 2016/08/31 by Josh.Adams
- Fixed PS4Automation compile errors
Change 3109077 on 2016/08/31 by Brent.Pease
Fix C# debug builds by specifying x64 and add reference to MobileDeviceInterface
Change 3110086 on 2016/09/01 by Dmitry.Rekman
Fix race condition in PThread runnable (UE-35074).
- Instead of relying on busy-wait, join the threads. This prevents race between PostRun() (executed in the context of the thread) and FPThreadRunnableThread() destructor (see UE-34909).
- Do not use an invalid value for pthread_t, since there's none.
Change 3110172 on 2016/09/01 by Dmitry.Rekman
Fixed a crash exiting VR Preview on Windows GL4 (UE-28708).
- PR #2188 submitted by ardneran.
Change 3110313 on 2016/09/01 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Change 3111134 on 2016/09/01 by Dmitry.Rekman
UBT: prevent mono from hanging on Ctrl-C.
- Sometimes Ctrl-C can cause thread creation to fail. Without this change, UBT would lock up.
Change 3111171 on 2016/09/01 by Brent.Pease
Move all C# projects to use the x64 Platform for consistency with other changes made to move to the x64 Platform
Change 3111177 on 2016/09/01 by Dmitry.Rekman
Fix Linux build on systems without CUDA (UE-35460).
Change 3111548 on 2016/09/02 by Luke.Thatcher
[PLATFORM] [PS4] [!]
Fix for PS4 iterative deployment.
- Changes in Dev-Mobile broke the deployment manifests, as PS4 was now using the wrong filename when creating delta and obsolete file lists.
Change 3111863 on 2016/09/02 by Dmitry.Rekman
Better fix for build without CUDA (UE-35460).
Change 3112738 on 2016/09/02 by Mark.Satterthwaite
Fix the pausing particles on Metal - one line bug in the Metal query implementation meant that the first query wouldn't return the correct result for no good reason.
#jira UE-34989
Change 3114579 on 2016/09/06 by Chris.Babcock
Fix Vulkan include path in NDK check (contributed by geediiiiky)
#jira UE-35490
#github #2758
#ue4
#android
Change 3115115 on 2016/09/06 by Jeff.Campeau
Calculate buffer size for paks using the bitwindow override as needed
Change 3115600 on 2016/09/07 by Luke.Thatcher
[PLATFORM] [PS4] [~]
Make the crash dump handler registration much earlier, to catch crashes in early engine init.
- Fixed up places in FGenericCrashContext::SerializeContentToBuffer which used the command line. If we crash early, the command line may not have been initialized yet.
- Added a GetNoInit function to FThreadHeartBeat to avoid creating the heart beat thread if we crash early, and the thread doesn't exist yet.
Tested by calling abort() immediately inside int main(), and we get a valid crash dump that the crash handler service can consume.
Change 3115676 on 2016/09/07 by Luke.Thatcher
[PLATFORM] [~]
Dev-Platform integration fix for original CL 3064888 in //Orion/Release-29.1
Add .exe and .dll to windows symbol upload file filters.
Change 3115811 on 2016/09/07 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Change 3115944 on 2016/09/07 by Michael.Trepka
Implemented IsGamepadAttached() for Mac
Change 3115948 on 2016/09/07 by Michael.Trepka
Don't try to restore Help menu item on Mac if MenuBlock does not contain it
Change 3116200 on 2016/09/07 by Jeff.Campeau
Fix parameter ordering
Change 3117660 on 2016/09/08 by Josh.Adams
Merging //UE4/Dev-Main to Dev-Platform (//UE4/Dev-Platform)
Change 3117728 on 2016/09/08 by Michael.Trepka
Copy of CL 3117698 by Mike.Fricker
Fixed regression with editor's Simulate mode where cursor would teleport back to the center of the viewport after every click
- This bug was introduced in CL 3075932 from a borderless window cursor handling fix that was needed for games that capture the cursor
Change 3117797 on 2016/09/08 by Peter.Sauerbrei
Shader Resource compression
Change 3117988 on 2016/09/08 by Brent.Pease
- Solutiion generator will now pick x64 instead of AnyCPU for the default platform configuration
- Fix what I think was a merge error in BuildGraph.cs
Change 3118296 on 2016/09/08 by Daniel.Lamb
Fixed crash with launch on. Couldnt' correctly detect previous generated ini settings.
#test launch on QA game
#jira UE-35741
Change 3118438 on 2016/09/08 by JohnHenry.Carawon
Fix UAT compilation on Linux
#UE-35745
Change 3118934 on 2016/09/08 by Jeff.Campeau
Shader compression setting based on target platform instead of cooking host platform.
#jira UE-35753
Change 3120190 on 2016/09/09 by Ben.Marsh
Add missing Platform attribute to build script for Dev-Platform.
[CL 3120378 by Josh Adams in Main branch]
2016-09-09 20:13:41 -04:00
|
|
|
#include "LaunchEngineLoop.h"
|
Copying //UE4/Dev-Build to //UE4/Dev-Main (Source: //UE4/Dev-Build @ 3209340)
#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
Change 3209340 on 2016/11/23 by Ben.Marsh
Convert UE4 codebase to an "include what you use" model - where every header just includes the dependencies it needs, rather than every source file including large monolithic headers like Engine.h and UnrealEd.h.
Measured full rebuild times around 2x faster using XGE on Windows, and improvements of 25% or more for incremental builds and full rebuilds on most other platforms.
* Every header now includes everything it needs to compile.
* There's a CoreMinimal.h header that gets you a set of ubiquitous types from Core (eg. FString, FName, TArray, FVector, etc...). Most headers now include this first.
* There's a CoreTypes.h header that sets up primitive UE4 types and build macros (int32, PLATFORM_WIN64, etc...). All headers in Core include this first, as does CoreMinimal.h.
* Every .cpp file includes its matching .h file first.
* This helps validate that each header is including everything it needs to compile.
* No engine code includes a monolithic header such as Engine.h or UnrealEd.h any more.
* You will get a warning if you try to include one of these from the engine. They still exist for compatibility with game projects and do not produce warnings when included there.
* There have only been minor changes to our internal games down to accommodate these changes. The intent is for this to be as seamless as possible.
* No engine code explicitly includes a precompiled header any more.
* We still use PCHs, but they're force-included on the compiler command line by UnrealBuildTool instead. This lets us tune what they contain without breaking any existing include dependencies.
* PCHs are generated by a tool to get a statistical amount of coverage for the source files using it, and I've seeded the new shared PCHs to contain any header included by > 15% of source files.
Tool used to generate this transform is at Engine\Source\Programs\IncludeTool.
[CL 3209342 by Ben Marsh in Main branch]
2016-11-23 15:48:37 -05:00
|
|
|
#include "Misc/CommandLine.h"
|
Copying //UE4/Dev-Core to //UE4/Dev-Main (Source: //UE4/Dev-Core @ 3847469)
#lockdown Nick.Penwarden
#rb none
============================
MAJOR FEATURES & CHANGES
============================
Change 3805828 by Gil.Gribb
UE4 - Fixed a bug in the lock free stalling task queue and adjusted a comment. The code is not current used, so this is not actually change the way the code works.
Change 3806784 by Ben.Marsh
UAT: Remove code to compile UBT when using UE4Build. It should already be compiled as a dependency of UAT.
Change 3807549 by Graeme.Thornton
Add a cook timer around VerifyCanCookPackage. A licensee reports this taking a lot of time so it'll be good to account for it.
Change 3807727 by Graeme.Thornton
Unhide the text asset format experimental editor option
Change 3807746 by Josh.Engebretson
Remove WER from iOS platform
Change 3807928 by Robert.Manuszewski
When async loading, GC Clusters will be created after packages have been processed to avoid situations where some of the objects that are being added to a cluster haven't been fully loaded yet
Change 3808221 by Steve.Robb
GitHub #4307 - Made GetModulePtr() thread safe by not using GetModule()
^ I'm not convinced by how much thread-safer this is really, but it's tidier anyway.
Change 3809233 by Graeme.Thornton
TBA: Misc changes to text asset commandlet
- Rename mode to "loadsave"
- Add -outputFormat option which can be assigned "text" or "binary"
- When saving binary, use a differentiated filename so that source assets aren't overwritten
Change 3809518 by Ben.Marsh
Remove the outdated UnrealSync automation script.
Change 3809643 by Steve.Robb
GitHub #4277 : fix bug; FMath::FormatIntToHumanReadable 3rd comma and negative value
#jira UE-53037
Change 3809862 by Steve.Robb
GitHub #3342 : [FRotator.h] Fix to DecompressAxisFromByte to be more efficient and reflect its intent accurately
#jira UE-42593
Change 3811190 by Graeme.Thornton
Add support for writing specific log channels to their own files
Change 3811197 by Graeme.Thornton
Minor updates to output formatting and timing for the text asset commandlet
Change 3811257 by Robert.Manuszewski
Cluster creation will now be time-sliced
Change 3811565 by Steve.Robb
Define out non-monolithic module functions.
Change 3812561 by Steve.Robb
GitHub #3886 : Enable Brace-Initialization for Declaring Variables
Incorrect semi-colon search removed after discussion with author.
Test added.
#jira UE-48242
Change 3812864 by Steve.Robb
Removal of some unproven code which was supposed to fix hot reloading BP class functions in plugins.
See: https://udn.unrealengine.com/questions/376978/aitask-blueprint-nodes-disappear-when-their-module.html
#jira UE-53089
Change 3820358 by Ben.Marsh
PR #4358: Incredibuild use ShowAgent by default (Contributed by projectgheist)
Change 3822594 by Ben.Marsh
UAT: Improvements to log file handling.
- Always create log files in the final location, rather than writing to a temp directory and copying in later.
- Now supports -Verbose and -VeryVerbose for increasing log verbosity, rather than -Verbose=XXX.
- Keep a backlog of log output before the log system is initialized, and flush it to the log file once it is.
- Allow buildmachines to specify the uebp_FinalLogFolder environment variable, which is used to form paths for display. When build machines copy log files elsewhere after UAT finishes (eg. a network share), this allows error messages to display the right location.
Change 3823695 by Ben.Marsh
UGS: Fix issue where precompiled binaries would not be shown as available for a change until scrolling the last submitted code change into the buffer (other symptoms, like de-focussing the main window would cause it to go back to an unavailable state, since the changes buffer was shrunk).
Now always queries changes up to the last change for which zipped binaries are available.
Change 3823845 by Ben.Marsh
UBT: Exclude C# projects for unsupported platforms when generating project files.
Change 3824180 by Ben.Marsh
UGS: Add an option to show changes by build machines, and move the "only show reviewed" option in there too (Options > Show Changes).
#jira
Change 3825777 by Steve.Robb
Fix to return value of StringToBytes.
Change 3825810 by Ben.Marsh
UBT: Reduce length of include paths for MSVC toolchain.
Change 3825822 by Robert.Manuszewski
Optimized PIE lazy pointer fixup. Should be up to 8x faster now.
Change 3826734 by Ben.Marsh
Remove code to disable TextureFormatAndroid on Linux. It seems to be an editor dependency.
Change 3827730 by Steve.Robb
Try to avoid decltype(auto) if it's not supported.
See: https://udn.unrealengine.com/questions/395644/build-417-with-c11-on-linux-ttuple-errors.html
Change 3827745 by Steve.Robb
Initializer list support for TMap.
Change 3827770 by Steve.Robb
GitHub #4399 : Added a CONSTEXPR qualifiers to FVariant::GetType()
#jira UE-53813
Change 3829189 by Ben.Marsh
UBT: Now always writes a minimal log file. By default, just contains the regular console output and any reasons why actions are outdated and needed to be executed. UAT directs child UBT instances to output logs into its own log folder, so that build machines can save them off.
Change 3830444 by Steve.Robb
BuildVersion and ModuleManifest moved to Core, and parsing of these files reimplemented to avoid a JSON library.
This should be revisited when Core has its own JSON library.
Change 3830718 by Ben.Marsh
Fix incorrect group name being returned by FStatNameAndInfo::GetGroupName() for stat groups.
The editor populates the viewport stats list by calling this for every registered stat and stat group (via FLevelViewportCommands::HandleNewStatGroup). The menu entry attempts to show the stat name with STAT_XXX stripped from the start as the menu item label, with the free-form text description as a tooltip.
For stat groups, the it would previously just return the stat group name as "Groups" (due to the raw naming convention of "//Groups//STATGROUP_Foo//..."). Since this didn't match the expected naming convention in FLevelViewportCommands::HandleNewStat (ie. STAT_XXX or STATGROUP_XXX), it would fail to add it.
When the first actual stat belonging to that group is added, it would add a menu entry for the group based on that, but the stat description no longer makes sense as a tooltip for the group. As a result, all the editor tooltips were junk.
#jira UE-53845
Change 3831064 by Ben.Marsh
Fix log file contention when spawning UBT recursively.
Change 3832654 by Ben.Marsh
UGS: Fix error panel not being selected when opened, and weird alignment/color issues on it.
Change 3832680 by Ben.Marsh
UGS: Fix failing to detect workspace if synced to a different stream. Seems to be a regression caused by recent P4D upgrade.
Change 3832695 by Ben.Marsh
UGS: Invert the options in the 'Show Changes' submenu for simplicity.
Change 3833528 by Ben.Marsh
UAT: Script to rewrite source files with public include paths relative to the 'Public' folder. Usage is: RebasePublicIncludePaths -UpdateDir=<Dir> [-Project=<Dir>] [-Write].
Change 3833543 by Ben.Marsh
UBT: Allow targets to opt-out of having public include paths added for every dependent module. This reduces the command line length when building a target, which has recently become a problem with larger games (due to Microsoft's compiler embedding the command line into each object file, with a maximum length of 64kb). All engine modules are compiled with this enabled; games may opt into it by setting bLegacyPublicIncludePaths = false; from their .target.cs, as may individual modules.
Change 3834354 by Robert.Manuszewski
Archetype pointer will now be cached to avoid locking the object tables when acquiring its info. It should also be faster this way regardless of any locks.
#jira UE-52035
Change 3834400 by Robert.Manuszewski
Fixing crash on exit caused by cached archetypes not being cleaned up before static exit cleanup.
#jira UE-52035
Change 3834947 by Steve.Robb
USE_FORMAT_STRING_TYPE_CHECKING removed from FMsg::Logf and FMsg::Logf_Internal.
Change 3835004 by Ben.Marsh
Fix code that relies on dubious behavior of requiring referenced "include path only" modules having their _API macros set to be empty, even if the module is actually implemented in a separate DLL.
Change 3835340 by Ben.Marsh
Fix errors making installed build from directories with spaces in the name.
Change 3835972 by Ben.Marsh
UBT: Improved diagnostic message for targets which don't need a version file.
Change 3836019 by Ben.Marsh
UBT: Fix warnings caused by defining linkage macros for third party libraries.
Change 3836269 by Ben.Marsh
Fix message box larger than the screen height being created when a large number of modules are incompatible on startup.
Change 3836543 by Ben.Marsh
Enable SoundMod plugin on Linux, since it's already supported through the editor.
Change 3836546 by Ben.Marsh
PR #4412: fix type mismatch (Contributed by nakapon)
Change 3836805 by Ben.Marsh
Fix commandlet to compile marketplace plugins.
Change 3836829 by Ben.Marsh
UBT: Fix ability to precompile plugins from installed engine builds.
Change 3837036 by Ben.Marsh
UBT: Write the previous and new contents of intermediate files to the log if they change. Makes it easier to debug unexpected rebuilds.
Change 3837037 by Ben.Marsh
UBT: Fix engine modules having inconsistent definitions depending on whether modules are only referenced for their include paths vs being linked into a binary (due to different _API macro).
Change 3837040 by Ben.Marsh
UBT: Remove code that initializes members in ModuleRules and TargetRules objects before the constructor is run. This is no longer necessary, now that the backwards-compatible default constructors have been removed.
Change 3837247 by Ben.Marsh
UBT: Remove UELinkerFixups module, now that plugins and precompiled modules do not require hacks to force initialization (since they're linked in as object files).
Encryption and signing keys are now set via macros expanded from the IMPLEMENT_PRIMARY_GAME_MODULE macro, via project-specific macros added in the TargetRules constructor.
Change 3837262 by Ben.Marsh
UBT: Set whether a module is an engine module or not via a default value for the rules assembly. All non-program engine and enterprise modules are created with this flag set to true; program targets and modules are now created from a different assembly that sets it to false. This removes hacks from UEBuildModule needed to adjust behavior for different module types based on the directory containing the module.
Also add a bUseBackwardsCompatibleDefaults flag to the TargetRules class, also initialized to a default value from a setting passed to the RulesAssembly constructor. This controls whether modules created for the target should be configured to allow breaking changes to default settings, and is set to false for all engine targets, and true for all project targets.
Change 3837343 by Ben.Marsh
UBT: Remove the OverrideExecutableFileExtension target property. Change the only current use for this (the MayaLiveLinkPlugin target) to use a post build step to copy the file instead.
Change 3837356 by Ben.Marsh
Fix invalid character encodings.
Change 3837727 by Graeme.Thornton
UnrealPak: KeyGenerator: Only generate prime table when required, not all the time
Change 3837823 by Ben.Marsh
UBT: Output warnings and errors when compiling module rules assembly in a way that allows them to be double-clicked in the Visual Studio output window.
Change 3837831 by Graeme.Thornton
UBT: When parsing crypto settings, always load legacy data first, then allow the new system to override it. Provides the same key backwards compatibility that the editor settings class gives
Change 3837857 by Robert.Manuszewski
PR #4404: Make FGCArrayPool singleton global instead of per-CU (Contributed by mhutch)
Change 3837943 by Robert.Manuszewski
PR #4405: Fix FGarbageCollectionTracer (Contributed by mhutch)
Change 3838451 by Ben.Marsh
UBT: Fix exceptions thrown on a background thread while caching C++ includes not being caught and logged correctly. Now captures exceptions and re-throws on the main thread.
#jira UE-53996
Change 3839519 by Ben.Marsh
UBT: Simplify configuring bPrecompile and bUsePrecompile settings for modules. Each rules assembly can now be configured as installed, which defaults the module rules it creates to use precompiled data.
Change 3843790 by Graeme.Thornton
UnrealPak: Log the size of all encrypted data
Change 3844258 by Ben.Marsh
Fix plugin compile failure when created via new plugin wizard. Passing -plugin on the command line is unnecessary, and is now reserved for packaging external plugins for the marketplace.
Also extend the length of time that the error toast stays visible, and don't delete the plugin on failure.
#jira UE-54157
Change 3845796 by Ben.Marsh
Workaround for slow performance of String.EndsWith() on Mono.
Change 3845823 by Ben.Marsh
Fix case sensitive matching of platform names in -TargetPlatform=X argument to BuildCookRun.
#jira UE-54123
Change 3845901 by Arciel.Rekman
Linux: fix crash due to lambda lifetime issues (UE-54040).
- The lambda goes out of scope in FBufferVisualizationMenuCommands::CreateVisualizationCommands, crashing the editor if compiled with a recent clang (5.0+).
(Edigrating 3819174 to Dev-Core)
Change 3846439 by Ben.Marsh
Revert CL 3822742 to always call Process.WaitForExit(). The Android target platform module in the editor spawns ADB.EXE, which inherits the editor's stdout/stderr handles and forks itself. Process.WaitForExit() waits for EOF on those pipes, which never occurs because the forked process never terminates.
Proper fix is probably to have the engine explicitly duplicate stdout/stderr handles for new pipes to output process, but too risky before copying up to Main.
Change 3816608 by Ben.Marsh
UBT: Use DirectoryReference objects for all include paths.
Change 3816954 by Ben.Marsh
UBT: Remove bIncludeDependentLibrariesInLibrary option. This is not widely supported by platform toolchains, and is not used anywhere.
Change 3816986 by Ben.Marsh
UBT: Remove UEBuildBinaryConfig; UEBuildBinary objects are now just created directly.
Change 3816991 by Ben.Marsh
UBT: Deprecate PlatformSpecificDynamicallyLoadedModules. We no longer have any special behavior for these modules.
Change 3823090 by Ben.Marsh
UAT: Improve logging for child UAT instances.
- Calling RunUAT now requires an identifier for prefixing into the parent log, which is also used to determine the name of the log folder.
- Stdout is no longer written to its own output file, since it's written to the parent stdout, the parent log file, and the child log file anyway.
- Log folders for child UAT instances are left intact, rather than being copied to the parent folder. The derived names for the copied names were confusing and hard to read.
- Output from UAT is no longer returned as a string. It should not be parsed anyway (but may be huge!). ProcessResult now supports running without capturing output.
Change 3826082 by Ben.Marsh
UBT: Add a check to make sure that all modules that are precompiled are correctly marked to enable it, even if they are part of the build target.
Change 3827025 by Ben.Marsh
UBT: Move the compile output directory into a property on the module, and explicitly pass it to the toolchain when compiling.
Change 3829927 by James.Hopkin
Made HTTP interface const correct
Change 3833533 by Ben.Marsh
Rewrite engine source files to base include paths relative to the "Public" directory. This allows reducing the number of public include paths that have to be added for engine modules.
Change 3835826 by Ben.Marsh
UBT: Precompiled targets now generate a separate manifest for each precompiled module, rather than adding object files to a library. This fixes issues where object files from static libraries would not be linked into a target if a symbol in them was not referenced.
Change 3835969 by Ben.Marsh
UBT: Fix cases where text is being written directly to the console rather than via logging functions.
Change 3837777 by Steve.Robb
Format string type checking added to FOutputDevice::Logf.
Fixes for those.
Change 3838569 by Steve.Robb
Algo moved up a folder.
[CL 3847482 by Ben Marsh in Main branch]
2018-01-20 11:19:29 -05:00
|
|
|
#include "Mac/CocoaThread.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
static FString GSavedCommandLine;
|
|
|
|
|
|
|
|
|
|
|
2021-03-25 15:41:19 -04:00
|
|
|
@interface UnrealAppDelegate : NSObject<NSApplicationDelegate, NSFileManagerDelegate>
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
2021-03-25 15:41:19 -04:00
|
|
|
@implementation UnrealAppDelegate
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
//handler for the quit apple event used by the Dock menu
|
|
|
|
|
- (void)handleQuitEvent:(NSAppleEventDescriptor*)Event withReplyEvent:(NSAppleEventDescriptor*)ReplyEvent
|
|
|
|
|
{
|
2014-05-29 17:46:24 -04:00
|
|
|
[self requestQuit:self];
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
2014-08-19 10:46:30 -04:00
|
|
|
- (IBAction)requestQuit:(id)Sender
|
|
|
|
|
{
|
2019-09-12 14:21:26 -04:00
|
|
|
RequestEngineExit(TEXT("requestQuit"));
|
2014-08-19 10:46:30 -04:00
|
|
|
}
|
|
|
|
|
|
2021-03-25 15:41:19 -04:00
|
|
|
- (void)runGameThread:(id)Arg
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
FPlatformMisc::SetGracefulTerminationHandler();
|
2014-08-19 10:46:30 -04:00
|
|
|
FPlatformMisc::SetCrashHandler(nullptr);
|
2014-04-02 18:09:23 -04:00
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
#if !UE_BUILD_SHIPPING
|
|
|
|
|
if (FParse::Param(*GSavedCommandLine,TEXT("crashreports")))
|
|
|
|
|
{
|
|
|
|
|
GAlwaysReportCrash = true;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if UE_BUILD_DEBUG
|
|
|
|
|
if (!GAlwaysReportCrash)
|
|
|
|
|
#else
|
2014-08-19 10:46:30 -04:00
|
|
|
if (FPlatformMisc::IsDebuggerPresent() && !GAlwaysReportCrash)
|
2014-03-14 14:13:41 -04:00
|
|
|
#endif
|
2014-08-19 10:46:30 -04:00
|
|
|
{
|
|
|
|
|
UnrealFrontendMain(*GSavedCommandLine);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
GIsGuarded = 1;
|
|
|
|
|
UnrealFrontendMain(*GSavedCommandLine);
|
|
|
|
|
GIsGuarded = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
FEngineLoop::AppExit();
|
2014-08-19 10:46:30 -04:00
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
[NSApp terminate: self];
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-19 10:46:30 -04:00
|
|
|
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)Sender;
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2019-09-12 14:21:26 -04:00
|
|
|
if(!IsEngineExitRequested() || ([NSThread gameThread] && [NSThread gameThread] != [NSThread mainThread]))
|
2014-08-19 10:46:30 -04:00
|
|
|
{
|
|
|
|
|
[self requestQuit:self];
|
2014-09-29 11:10:28 -04:00
|
|
|
return NSTerminateLater;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return NSTerminateNow;
|
2014-08-19 10:46:30 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void)applicationDidFinishLaunching:(NSNotification *)Notification
|
|
|
|
|
{
|
|
|
|
|
//install the custom quit event handler
|
|
|
|
|
NSAppleEventManager* appleEventManager = [NSAppleEventManager sharedAppleEventManager];
|
|
|
|
|
[appleEventManager setEventHandler:self andSelector:@selector(handleQuitEvent:withReplyEvent:) forEventClass:kCoreEventClass andEventID:kAEQuitApplication];
|
|
|
|
|
|
|
|
|
|
RunGameThread(self, @selector(runGameThread:));
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main( int argc, char *argv[] )
|
|
|
|
|
{
|
|
|
|
|
for (int32 Option = 1; Option < argc; Option++)
|
|
|
|
|
{
|
|
|
|
|
GSavedCommandLine += TEXT(" ");
|
|
|
|
|
FString Argument(ANSI_TO_TCHAR(argv[Option]));
|
|
|
|
|
if (Argument.Contains(TEXT(" ")))
|
|
|
|
|
{
|
2014-04-02 18:09:23 -04:00
|
|
|
if (Argument.Contains(TEXT("=")))
|
|
|
|
|
{
|
|
|
|
|
FString ArgName;
|
|
|
|
|
FString ArgValue;
|
|
|
|
|
Argument.Split( TEXT("="), &ArgName, &ArgValue );
|
|
|
|
|
Argument = FString::Printf( TEXT("%s=\"%s\""), *ArgName, *ArgValue );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Argument = FString::Printf(TEXT("\"%s\""), *Argument);
|
|
|
|
|
}
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
GSavedCommandLine += Argument;
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-29 17:46:24 -04:00
|
|
|
SCOPED_AUTORELEASE_POOL;
|
|
|
|
|
[NSApplication sharedApplication];
|
2021-03-25 15:41:19 -04:00
|
|
|
[NSApp setDelegate:[UnrealAppDelegate new]];
|
2014-05-29 17:46:24 -04:00
|
|
|
[NSApp run];
|
|
|
|
|
return 0;
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|