Commit Graph

816 Commits

Author SHA1 Message Date
phillip kavan
56b4254b54 Fix for a regression that caused nativized Blueprint struct types to fail UHT property validation at build time.
#rnx
#rb None
[FYI] Ben.Marsh
#jira UE-75209

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: phillip.kavan
#ROBOMERGE-SOURCE: CL 6673665 in //UE4/Main/...
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim) (v365-6733468)

[CL 6787844 by phillip kavan in Dev-Anim branch]
2019-06-03 06:36:59 -04:00
david harvey
ea870cd041 PlatformExtensions:
- extensions are included in the solution
 - extension automation projects are included under Automation, and built as part of AutomationTool

#rb josh.adams

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: david.harvey
#ROBOMERGE-SOURCE: CL 6662967 in //UE4/Main/...
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim) (v365-6733468)

[CL 6761282 by david harvey in Dev-Anim branch]
2019-05-31 20:40:06 -04:00
ben marsh
83bd3cd7c6 Copying //UE4/Dev-Build to Dev-Main (//UE4/Dev-Main)
#rb none
#rnx

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 6631504 in //UE4/Main/...
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim) (v365-6733468)

[CL 6748759 by ben marsh in Dev-Anim branch]
2019-05-31 18:06:13 -04:00
ben marsh
640069c5a2 Live Coding: Fix crashes when patching adaptive non-unity files in game modules containing static global variables.
Live++ reads object files at startup for game modules, and assigns unique ids to each compiland (used to disambiguate static variables). When compiling the patch, these compilands are modified to reference a unique id for the unity blob, causing the variables to be reconstructed.

Solution is to generate a JSON file to each output directory containing object files containing the mapping, and to use that to assign compiland ids at startup.

#rb none
#jira UE-74036

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 6455253 in //UE4/Release-4.22/... via CL 6455273
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6474667 by ben marsh in Dev-Anim branch]
2019-05-15 08:12:01 -04:00
ben marsh
ea92f11001 UBT: Fix incorrect output directory being used for target version files.
#jira UE-74173
#rb none

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 6316064 in //UE4/Release-4.22/... via CL 6317358
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6325422 by ben marsh in Dev-Anim branch]
2019-05-06 17:18:43 -04:00
ben marsh
93d1b32f04 UBT: Fix UnrealHeaderTool always needing to run whenever the makefile was invalidated. Order of files in the timestamp file is not guaranteed, so we can't do an element-wise comparison against current list of files.
#rb none
[CODEREVIEW] Steve.Robb
#jira UE-71031

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 6037107 in //UE4/Release-4.22/... via CL 6037108
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6039700 by ben marsh in Dev-Anim branch]
2019-04-22 17:04:34 -04:00
ben marsh
15abbd90f9 UAT: Fix incorrect logic causing plugin references to override whether a plugin supports a target platform or not.
#rb none
#jira UE-71909

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 6011749 in //UE4/Release-4.22/... via CL 6011750
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6014797 by ben marsh in Dev-Anim branch]
2019-04-19 13:02:25 -04:00
ben marsh
9f33ddaedf LiveCoding: Merging fixes to resolve issues with global symbols being reconstructed when loading patch DLLs. Was causing asserts when log channels were re-registered etc...
#jira
#rb none

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5993252 via CL 5993257 via CL 5995286 via CL 5995562
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6001808 by ben marsh in Dev-Anim branch]
2019-04-18 21:38:01 -04:00
ben marsh
8b3fea50b9 Live Coding: Fixes issue linking patch DLLs with Visual Studio Express, due to PATH environment variable not including path to mspdb140.dll.
Now stores the linker environment block in the live coding manifest, and adds it to the cache before executing the linker.

#rb none
#jira UE-72324

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5740602 in //UE4/Release-4.22/... via CL 5740765
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5743767 by ben marsh in Dev-Anim branch]
2019-04-04 13:06:28 -04:00
peter engstrom
bd94ac3a78 Use forward slashes in include paths.
#rb ben.marsh
#rnx

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: peter.engstrom
#ROBOMERGE-SOURCE: CL 5667718 via CL 5667743 via CL 5667748 via CL 5667751 via CL 5668993 via CL 5668997
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5670315 by peter engstrom in Dev-Anim branch]
2019-04-01 13:02:20 -04:00
graeme thornton
7b1959e75f Reinstate the warning about short keys but wrap it in the condition that was lost in the merge from Release-4.22
#rb none

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: graeme.thornton
#ROBOMERGE-SOURCE: CL 5629597 via CL 5629603 via CL 5629607 via CL 5629609 via CL 5631976 via CL 5632515
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5635850 by graeme thornton in Dev-Anim branch]
2019-03-28 17:01:58 -04:00
ben marsh
706913aa94 Fix problems with HotReload on Mac.
* Linker arguments for each hot-reloaded module where only being patched with that module's new name (and not *all* the new module names). Windows was unaffected by this, since it uses response files (which were being handled correctly).
* Loop to rename modules in the manifest was terminating after the first modified module was found. This prevented other modules from being renamed.

#rb none
[FYI] Steve.Robb, Michael.Trepka
#jira UE-62612

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5503573 in //UE4/Release-4.22/... via CL 5503574
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5515638 by ben marsh in Dev-Anim branch]
2019-03-22 18:03:27 -04:00
bob tellez
fa7752c26d #UE4 Disable warning while we wait for a key cycle
#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: bob.tellez
#ROBOMERGE-SOURCE: CL 5493785 via CL 5495889 via CL 5496062
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5511543 by bob tellez in Dev-Anim branch]
2019-03-22 17:35:13 -04:00
graeme thornton
f233b235d1 Add new config values to go alongside "PlatformRequiresDataCrypto" which can specifically disable signing or encryption. Allows selective disabling of signing OR encryption on some platforms, rather than the old config value which would disable both.
Disable signing on platforms that we wanted encryption enabled for by default (mobile mainly)
Add a warning if pak signing or encryption is enabled but there is no key, then disable the offending functionality for that build

#rb none
#jira UE-71811, UE-71806
#lockdown cristina.riveron

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: graeme.thornton
#ROBOMERGE-SOURCE: CL 5487098 in //UE4/Release-4.22/... via CL 5487102
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5507319 by graeme thornton in Dev-Anim branch]
2019-03-22 17:11:06 -04:00
graeme thornton
4f06e16149 Edigrated rollup of all engine RSA changes that were done for 4.22. Pak signature checking is now much more competent.
#rb none
[FYI] joe.barrett
#rnx

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: graeme.thornton
#ROBOMERGE-SOURCE: CL 5469067 via CL 5469119 via CL 5470585 via CL 5470597
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5505293 by graeme thornton in Dev-Anim branch]
2019-03-22 16:59:44 -04:00
ben marsh
20d5d291a6 Fix issues related to hot-reload and LiveCoding co-existing.
* Removed code to invalidate makefiles when adding new source files. UBT should be reliable enough to make this determination itself nowadays, and ignored -invalidatemakefilesonly argument was causing modules to be recompiled.
* Fixed incorrect config section name when determining whether to allow hot reload from IDE. Now prevents hot reload from IDE when live coding is enabled.
* Added error message when trying to add a new class with Live Coding enabled.
* Added error messages when trying to start Live Coding after a hot reload has taken place.
* Added error messages when trying to hot reload with Live Coding enabled.

#jira UE-71253
#rb none

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5403464 in //UE4/Release-4.22/... via CL 5403485
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5411452 by ben marsh in Dev-Anim branch]
2019-03-15 05:56:35 -04:00
ben marsh
ec8ee59498 UBT: Fix generated config files not being read by UBT, or being considered when determining if makefiles are out of date.
#rb none
#jira UE-71501

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5392870 in //UE4/Release-4.22/... via CL 5392891
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5394358 by ben marsh in Dev-Anim branch]
2019-03-13 21:02:42 -04:00
Thomas Sarkanen
bb193db1aa Merging //UE4/Dev-Main to Dev-Anim (//UE4/Dev-Anim) @ CL 5356908
#rb none

[CL 5360337 by Thomas Sarkanen in Dev-Anim branch]
2019-03-11 12:18:32 -04:00
ben marsh
9b0cb6d8c5 UBT: Figure out outdated actions in parallel. Saves 0.5s on iterative compile.
#rb none
#jira
#rnx

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5315074 in //UE4/Release-4.22/... via CL 5317566
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5331155 by ben marsh in Dev-Anim branch]
2019-03-06 18:42:41 -05:00
ben marsh
5978d3366b UBT: Add additional timing info into logs.
#rb none
#rnx
#jira

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5312405 in //UE4/Release-4.22/... via CL 5316167
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5330366 by ben marsh in Dev-Anim branch]
2019-03-06 18:38:47 -05:00
ben marsh
cac209bb32 Integrating live coding feature (aka Live++) into UE4.
Allows fast iteration of C++ changes without restarting the application. To use, select the "Live Coding (Experimental)" mode from the drop down menu next to the editor's compile button, or type "LiveCoding" into the console for a monolithic build. Press Ctrl+Alt+F11 to find changes and compile.

Changes vs standalone Live++ version:

* UBT is used to execute builds. This allows standard UE4 adaptive unity mode, allows us to reuse object files when we do regular builds, supports using any build executor allowed by UBT (XGE, SNDBS, etc..).
* Adding new source files is supported.
* Custom visualizer for FNames is supported via a weakly linked symbol in a static library (Engine/Extras/NatvisHelpers).
* Settings are exposed in the editor's project settings dialog.
* Standalone application has been rewritten as a Slate app ("LiveCodingConsole"). There is an additional option to start the program as hidden, where it will not be visible until Ctrl+Alt+F11 is hit. Similarly, closing the window will hide it instead of closing the application.
* Does not require a standalone licensed version of Live++.

Known issues:

* Does not currently support class layout changes / object reinstancing

#rb none
[FYI] Marc.Audy, Stefan.Boberg, Nick.Penwarden
#jira

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5304722 in //UE4/Release-4.22/... via CL 5309051
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5325549 by ben marsh in Dev-Anim branch]
2019-03-06 18:16:39 -05:00
ben marsh
117746a475 Fix settings for enabling shadow variable and undefined identifier warnings not being treated as requiring a unique PCH. Also fix shared PCHs not enabling each by default. The compiler (at least on Windows) does not produce a warning/error on this mismatch, but does not respect the different settings passed via the command line.
#rb none
#jira

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5295902 in //UE4/Release-4.22/... via CL 5308945
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5325319 by ben marsh in Dev-Anim branch]
2019-03-06 18:15:48 -05:00
ben marsh
d74c956862 Fix exception when trying to get path for main module for hot reload.
#rb none
#rnx
#jira

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5290983 in //UE4/Release-4.22/... via CL 5308917
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5325159 by ben marsh in Dev-Anim branch]
2019-03-06 18:14:43 -05:00
graeme thornton
f445f577ee Minor unrealpak refactor
- Added a "-sign" parameter to enable signing for the given pak. The cached settings in the crypto.json file aren't used to enable signing any more.
 - Encapsulated all signing and encryption keys in a single keychain object which is passed around, rather than individual keys
 - Added some validation to UBT/UAT encryption config parsing so that if you enable any signing or encryption stuff but haven't generated a key, it'll warn and disable everything.

#jira

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: graeme.thornton
#ROBOMERGE-SOURCE: CL 5237725 via CL 5237726 via CL 5240337 via CL 5240343
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5247605 by graeme thornton in Dev-Anim branch]
2019-02-28 17:23:22 -05:00
Thomas Sarkanen
474bc576ee Merging //UE4/Dev-Main to Dev-Anim (//UE4/Dev-Anim) @ CL 5236305
#rb none
#jira none

[CL 5236785 by Thomas Sarkanen in Dev-Anim branch]
2019-02-28 04:41:36 -05:00