Commit Graph

3598 Commits

Author SHA1 Message Date
Ben Marsh
cbca80c79b Don't create receipts when generating project files; they aren't needed.
[CL 2681977 by Ben Marsh in Main branch]
2015-09-06 12:50:15 -04:00
Ben Marsh
a6b1fceb82 Use the directory cache when scanning for source files, and remove code which uses custom attributes (was taking ~2% CPU time when generating project files).
[CL 2681974 by Ben Marsh in Main branch]
2015-09-06 12:49:32 -04:00
Marc Audy
d25958e352 Use SizeSquared comparisons instead of Size where trivially replaceable
[CL 2681970 by Marc Audy in Main branch]
2015-09-06 12:42:18 -04:00
Ben Marsh
f67b68a903 Restore missing runtime dependencies in target receipts for editor configurations. Includes runtime dependencies for precompiled modules in monolithic targets at the moment.
[CL 2681947 by Ben Marsh in Main branch]
2015-09-06 11:30:38 -04:00
Ben Marsh
79120fe20e Store module references rather than module names in UEBuildBinary. Removes several code paths that look them up more than once, or create redundant instances of module rules classes.
[CL 2681939 by Ben Marsh in Main branch]
2015-09-06 10:35:57 -04:00
Ben Marsh
8f47b9be79 Move retrieval of VULCAN_SDK_PATH to a static variable; it gets called a lot when generating project files and shows up on profiles.
#codereview rolando.caloca

[CL 2681762 by Ben Marsh in Main branch]
2015-09-05 18:24:28 -04:00
Ben Marsh
09aa8b2f62 Reduce time taken to generate receipts by using the target's view of the required modules, rather than recursively finding them from all the binaries. Also use the FileReferences for build products to optimize the way we escape build product paths.
[CL 2681758 by Ben Marsh in Main branch]
2015-09-05 18:10:25 -04:00
Nick Whiting
839f04ca22 #oculus Updating runtimes to 0.7.0 (Desktop) and 0.6.1 (Mobile)
#jira UE-20291

[CL 2681668 by Nick Whiting in Main branch]
2015-09-05 13:39:13 -04:00
Ben Marsh
6870744ad2 Cache directory searches when looking for include paths. When generating project files we do this many times over.
[CL 2681652 by Ben Marsh in Main branch]
2015-09-05 11:12:19 -04:00
Ben Marsh
b10ae33186 Simplify logic for adding additional include paths to a module, and switch it to use FileReference/DirectoryReference. Compared exported XGE for building FortniteGame; should be identical apart from a few places that have more consistent directory separators now.
[CL 2681641 by Ben Marsh in Main branch]
2015-09-05 09:32:27 -04:00
Leslie Nivison
ff3eaf36d2 Updating TPS files
[CL 2681371 by Leslie Nivison in Main branch]
2015-09-04 20:53:02 -04:00
Wes Hunt
0893ed9f83 All GUBP nodes for a job will use the same temp storage root determined by the branch it is in.
* This should keep storage created by a branch isolated to one location, and allow game-specific branches to control their own storage independently.
* Removed fallback code that looks for temp storage in UE4 folder if not found, since this doesn't really make sense anymore.
* Removed WasLocal out param from RetrieveFromTempStorage since no one was using it.
* Added a new branch hacker Dictionary: GameNameToBuildShareMapping, which essentially specifies, per-game, which build share to use. If one is not specified for that game, it falls back to the UE4 build share.
* Moved branch hacker options creation earlier in GUBP so the JobInfo can use it to determine the location for temp storage.
#jira UEB-341
#codereview:ben.marsh

[CL 2681005 by Wes Hunt in Main branch]
2015-09-04 16:33:23 -04:00
Ben Marsh
6f32c868e1 Use manual binary serialization for dependency caches, instead of the standard .NET serializer. Reduces load time from ~1s to <0.1s, and reduces size to half or less.
[CL 2680675 by Ben Marsh in Main branch]
2015-09-04 13:48:30 -04:00
Justin Hair
430142dfbc [AUTOMERGE]
This submission allows the end user to launch onto any platform using a profile created inside of the UFE.
Allows for easier scripting for testing and launching your project.

To run:
UnrealFrontend.exe -Run="LAUNCHPROFILE" -PROFILENAME="THE_NAME_OF_YOUR_CUSTOM_PROFILE"

**Changes and Additions**
Added LaunchFromProfileCommand.h/.cpp
--Checks if '-ProfileName=' is used and is correct.
--Loads the LaucherServicesModules and DeviceServicesModules
----Gets the Device Proxy Manager
----Gets the Profile Manager which is needed to find the named profile.
--A launcher is created that uses the profile and DeviceProxyManager to read the profile and trigger a build, cook, and launch of it.
--Logging from the launch will be shown in the command window.
--Keeps running until the launcher broadcasts that it has either completed or has been cancelled.

UnrealFrontendMain.cpp
Task Related:
--Added the launch profile command to the command if/else statement.
--Added helpful comments.
Improvements and General Fixes:
--Added a check to verify that a command is actually given with -Run.  Logs a warning if none exist.
--Fixed an issue where the -messaging command line check was returning incorrectly.  It will now only add '-messaging' if it actually does not exist in the command line already.
--Added a command line check where if you run with -run then -log will be appended to the command line if it isn't already.  This allows us to receive logging onscreen.

#CodeReview: adric.worley, justin.hair, marcus.wassmer, jason.bestimt, bob.ferreira, ben.salem, brad.angelcyk

--------
Integrated using branch UE4-Orion-To-UE4 of change#2675868 by Justin.Hair on 2015/09/01 14:50:30.

[CL 2680596 by Justin Hair in Main branch]
2015-09-04 12:55:44 -04:00
Gil Gribb
2bff847be0 UE4 - Lots of changes to the task graph include new experimental scheduler, current used on PS4, but expected to be used on all platforms after it shakes out.
[CL 2680413 by Gil Gribb in Main branch]
2015-09-04 11:22:22 -04:00
Richard Fawcett
6269b9712e Prevent BuildPatchTool updating timestamps of chunk files in Compactify mode, as they're no longer honored by builders.
Also, remove -nopatchdelete mode, as it no longer makes sense now that we don't update timestamps.

#jira OPP-3947
#reviewedby Leigh.Swift

[CL 2680221 by Richard Fawcett in Main branch]
2015-09-04 09:35:07 -04:00
Ben Marsh
af44f007b1 Only determine the module distribution level when it's actually required, and don't do it when generating project files.
[CL 2680154 by Ben Marsh in Main branch]
2015-09-04 08:02:30 -04:00
Ben Marsh
b27644e918 Cache enumerated plugins between runs. Improves performance when generating project files.
[CL 2680148 by Ben Marsh in Main branch]
2015-09-04 07:59:53 -04:00
Ben Marsh
d5f47b28ec Optimize searching for source files under a given directory, by constructing DirectoryReference and FileReference objects directly from the full paths returned by the system.
[CL 2680146 by Ben Marsh in Main branch]
2015-09-04 07:56:29 -04:00
Robert Manuszewski
62635cffd9 Making FNativeClassHeaderGenerator::GetGeneratedFunctionTextDevice's MaxLinesPerCpp configurable via ini setting.
[CL 2680019 by Robert Manuszewski in Main branch]
2015-09-04 03:35:53 -04:00
Dmitry Rekman
7962cac622 Linux: moved common startup code to a separate module.
- The code that handles initial setup (command line processing, rlimits and debugger) is now shared between engine, UFE and SlateViewer.

[CL 2679796 by Dmitry Rekman in Main branch]
2015-09-03 20:46:02 -04:00
Ben Marsh
8aec191675 Remove some esoteric options from the project file generator (for only showing public headers, and hiding NoRedist folders) to improve performance of directory scanning.
[CL 2679439 by Ben Marsh in Main branch]
2015-09-03 17:31:11 -04:00
Ben Marsh
af30a6e6c3 Merging CL 2679086 from Fortnite branch: Fix sporadic build failure due to build machines having base directories spelt with different cases.
[CL 2679093 by Ben Marsh in Main branch]
2015-09-03 14:35:08 -04:00
Dmitry Rekman
8b5ac31f09 UBT: fix CodeLite project generator.
[CL 2678756 by Dmitry Rekman in Main branch]
2015-09-03 11:48:25 -04:00
Ben Marsh
7fa8b50279 Optimize an inner loop that runs over all files that get added to a project. Path.GetDirectoryName() is pretty slow, and if we're running using full paths we don't need to validate it again.
[CL 2678737 by Ben Marsh in Main branch]
2015-09-03 11:41:30 -04:00