Commit Graph

940 Commits

Author SHA1 Message Date
ben marsh
9170b5f44a Enable shadow variable warnings as errors by default for projects that are using the latest UBT build settings. Allow setting the warning/error level on a per-module and per-target basis.
The engine will always be built with it as an error.

#rb none
[FYI] Marc.Audy
#jira none

#ROBOMERGE-SOURCE: CL 9839163 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v546-9757112)

[CL 9839167 by ben marsh in Main branch]
2019-10-25 10:39:37 -04:00
ben marsh
8160cd7a8f UBT: Add a command line option to enable RTTI (requires -OverrideBuildEnvironment also)
#rb none
#rnx
#jira

#ROBOMERGE-SOURCE: CL 9736943 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v539-9700858)

[CL 9736948 by ben marsh in Main branch]
2019-10-21 16:11:26 -04:00
Mitchell Wilson
f0a83e9112 Copying //UE4/Dev-Documentation to Samples-Main (//UE4/Samples-Main)
#rb none
#rnx

[CL 9551884 by Mitchell Wilson in Main branch]
2019-10-11 16:59:16 -04:00
Rolando Caloca
1a30325d6f Copying //UE4/Dev-RenderPlat-Staging@9551419 to //UE4/Main
#rb none
#rnx

[CL 9551447 by Rolando Caloca in Main branch]
2019-10-11 15:33:31 -04:00
luke thatcher
762d8ba154 Add a flag in TargetRules to optionally disable the generation of the runtime symbol files on some platforms.
#rb Ben.Marsh, Ben.Woodhouse


#ROBOMERGE-SOURCE: CL 9546226 via CL 9546228
#ROBOMERGE-BOT: (v521-9539702)

[CL 9546230 by luke thatcher in Main branch]
2019-10-11 07:21:22 -04:00
Ben Marsh
06ba288850 UBT: Fix the bHasProjectScriptPlugin flag not being set correctly when building UHT for program targets.
#rb none
#rnx

[CL 9540863 by Ben Marsh in Main branch]
2019-10-10 15:04:48 -04:00
Ben Marsh
b6039a9873 Merging //UE4/Dev-Main to Dev-Build (//UE4/Dev-Build)
#rb none
#rnx

[CL 9419420 by Ben Marsh in Dev-Build branch]
2019-10-04 11:20:44 -04:00
michael lentine
70bfe401f5 Fixes for FN/Main from copy up.
#rb none
[FYI] Bob.Tellez


#ROBOMERGE-SOURCE: CL 9375649 via CL 9375669
#ROBOMERGE-BOT: (v456-9359915)

[CL 9388095 by michael lentine in Main branch]
2019-10-03 00:08:12 -04:00
michael lentine
acbc579509 Copy from //Fortnite/Dev-Physics
#rb none


#ROBOMERGE-OWNER: michael.lentine
#ROBOMERGE-AUTHOR: michael.lentine
#ROBOMERGE-SOURCE: CL 9374650 via CL 9374665
#ROBOMERGE-BOT: (v456-9359915)

[CL 9385990 by michael lentine in Main branch]
2019-10-02 17:27:26 -04:00
Ben Marsh
d7c0aebeaa UBT: Prevent the rules assembly override for the default build settings version being overridden by calling the constructor.
#rb none
#rnx

[CL 9378482 by Ben Marsh in Dev-Build branch]
2019-10-02 14:56:47 -04:00
Nick Shin
3526d16d5e merge/copyup to parent stream - HTML5 platform extension
#jira UEMOB-482  HTML5 platform as a plug in
#rb josh.adams
#rn

[CL 9306021 by Nick Shin in Dev-Build branch]
2019-09-30 15:13:56 -04:00
ben marsh
c1ce0c7b01 UBT: Add native support for parsing command line arguments inside Target.cs files, via the [CommandLine] attribute on fields.
#jira


#ROBOMERGE-SOURCE: CL 9137624 via CL 9137662
#ROBOMERGE-BOT: (v443-9013191)

[CL 9137678 by ben marsh in Main branch]
2019-09-26 09:49:06 -04:00
Ben Marsh
bbe9fecb2f Copying //UE4/Dev-Build to Dev-Main (//UE4/Dev-Main)
#rb none
#rnx

[CL 9053338 by Ben Marsh in Main branch]
2019-09-24 16:13:51 -04:00
Ben Marsh
44f9817f27 UBT: Add a -preprocess argument, which will just preprocess the source code rather than compile it. Can be used in conjunction with -SingleFile=... to preprocess a single source file.
#rb none

[CL 8983800 by Ben Marsh in Main branch]
2019-09-23 15:26:04 -04:00
ben marsh
e41dcbc6a6 Speculative fix for building UHT plugins from installed engine builds.
#rb none
#jira UE-80124

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 8630764 in //UE4/Release-4.23/... via CL 8630878
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v422-8689730)

[CL 8721657 by ben marsh in Dev-Build branch]
2019-09-16 23:47:35 -04:00
Marcus Wassmer
6517c68ef5 Copying //UE4/Dev-RenderPlat-Staging@8684824 to Dev-Main (//UE4/Dev-Main)
#rb none

[CL 8684840 by Marcus Wassmer in Main branch]
2019-09-14 09:45:25 -04:00
Ben Marsh
aa45fb1bf3 UBT: Make the -Quiet option per-target, and use it to suppress toolchain and adaptive non-unity info for secondary build targets.
#rb none
#rnx

[CL 8638712 by Ben Marsh in Dev-Build branch]
2019-09-11 11:52:41 -04:00
ben marsh
92f909a409 Speculative fix for building UHT plugins from installed engine builds.
#rb none
#jira UE-80124

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 8630764 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v409-8614070)

[CL 8630878 by ben marsh in Main branch]
2019-09-10 19:56:46 -04:00
Ben Marsh
9402bdaae8 Add a FApp::GetBuildTargetType() utility method.
#rb none
#rnx

[CL 8579435 by Ben Marsh in Dev-Build branch]
2019-09-09 18:31:08 -04:00
Ben Marsh
324e2e6c5b Remove the bBuildEditor flag passed to ModuleDescriptor.IsCompiledInConfiguration(). This is always determined from the target type now.
#rb none
#rnx

[CL 8576545 by Ben Marsh in Dev-Build branch]
2019-09-09 16:33:08 -04:00
Ben Marsh
b56ebcae04 UBT: Fix single-file compile option modifying response files for files other than the one being built. Causes more files to be rebuilt in the next regular build than necessary.
#rb none
#fyi Johan.Torp

[CL 8572161 by Ben Marsh in Dev-Build branch]
2019-09-09 10:16:08 -04:00
Ben Marsh
adb63622ca Tweak upgrade messages for UBT settings version.
#rb none
#rnx

[CL 8571756 by Ben Marsh in Dev-Build branch]
2019-09-09 08:51:15 -04:00
Ben Marsh
636be9cccc UBT: Determine TargetType related settings dynamically using properties, so that individual targets can override them.
#rb none
#rnx

[CL 8557018 by Ben Marsh in Dev-Build branch]
2019-09-06 16:22:36 -04:00
Ben Marsh
ec2464a292 UBT: Add a mechanism for versioning which build settings UBT should use by default.
Any build targets have a DefaultBuildSettings property. For engine targets, this defaults to BuildSettingsVersion.Latest. For project targets, this defaults to BuildSettingsVersion.Release_4_23. For new projects, this will default to the engine version they are created from.

If a target is not using the latest default build settings, they will receive a message describing the settings that have changed, like this:

    [Upgrade]
    [Upgrade] Using UE 4.23 compatible build settings. The latest version of UE4 sets the following values by default, which may require code changes:
    [Upgrade]     bLegacyPublicIncludePaths = false                 => Omits subfolders from public include paths to reduce compiler command line length.
    [Upgrade]     PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs   => Set in build.cs files to enables IWYU-style PCH model. See https://docs.unrealengine.com/en-US/Programming/BuildTools/UnrealBuildTool/IWYU/index.html.
    [Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.Release_4_24;' in UnrealPak.Target.cs, and explicitly overriding desired settings.
    [Upgrade]

Intent is to reduce friction for users initially upgrading to new engine versions, while notifying them of more optimal build settings being available, and letting them choose when (or if) to use them.

#rb none

[CL 8556769 by Ben Marsh in Dev-Build branch]
2019-09-06 15:59:52 -04:00
Ben Marsh
9fca6273eb Enable developer tools for game/client/server targets that aren't built in Test or Shipping.
#rb none
#jira UE-70913

[CL 8387099 by Ben Marsh in Dev-Build branch]
2019-08-30 16:40:52 -04:00