Commit Graph

31 Commits

Author SHA1 Message Date
Ben Marsh
ee7082473f Revert change to the way that ndk_build is called.
[CL 2242314 by Ben Marsh in Main branch]
2014-08-04 08:53:45 -04:00
Mike Fricker
80f6dc9362 UnrealBuildTool: Experimental fast C++ include dependency scanning
- Adds experimental super-fast C++ outdated file checking
- This feature is turned off for now as we continue to test and improve it
      - You can try it out by enabling "bUseExperimentalFastDependencyScan" option in your BuildConfiguration.xml
- Here is the basic idea:
     - We no longer exhaustively scan all includes and build up a big graph every invocation
     - Instead, source files whose build products are missing have their includes scanned asynchronously while being compiled
     - The flat list of dependent includes for every outdated C++ is saved into a new cache file ("FlatCPPIncludes.bin")
     - On the next run, we quickly load that up and "just know" which files to check timestamps on to determine what is out of date
- Lots of "@todo fastubt" comments were added to UnrealBuildTool for potential performance optimizations and further improvements on this feature.

UnrealBuildTool: Determination of which modules have UObjects is now faster
- We now cache which modules have UObjects and load those for the next session

UnrealBuildTool: Module "shared" precompiled header determination is now much faster
- We no longer scan all C++ includes for a module to figure out which "shared" PCH to use
- Instead, we use the module dependencies specified in the module's *.Build.cs file
- For example, if your module depends on "Engine" and "UnrealEd", we choose "UnrealEd"'s shared PCH

Other UBT optimizations:
- Reduced calls to string formatting functions when setting up API definitions for all modules
- Added new performance diagnostics when bPrintPerformanceInfo is enabled in BuildConfiguration.xml
- We no longer check for "external" headers when scanning includes (this code didn't work at all)
- Optimized CleanDirectorySeparators() utility function to avoid string copies

Fixed UnrealBuildTool not saving DependencyCache under a platform-named folder

[CL 2238266 by Mike Fricker in Main branch]
2014-07-31 09:34:11 -04:00
Ben Marsh
ed24db2ee1 Pipe the output from Android ndk-build and ant-build to the log, so it's possible to see error messages when they fail.
#codereview Chris.Babcock, Josh.Adams

[CL 2237619 by Ben Marsh in Main branch]
2014-07-30 18:05:40 -04:00
Marcus Wassmer
64eec3f77a Force all builders into a clean state for autosdks
[CL 2232443 by Marcus Wassmer in Main branch]
2014-07-25 21:56:32 -04:00
Josh Adams
6ed35e067a - Fixed Android SDK version parsing to allow for android-L (currently ignoring letter SDKs, assuming they mean beta)
[CL 2228983 by Josh Adams in Main branch]
2014-07-23 16:26:31 -04:00
Marcus Wassmer
8d4c78e7a8 Prefer AutoSDK for Android.
#codereview daniel.lamb

[CL 2228919 by Marcus Wassmer in Main branch]
2014-07-23 15:41:23 -04:00
Marcus Wassmer
460b2d20d1 Refactor AutoSDKs in preparation for doing doing AutoSDK setup for the editor.
[CL 2223660 by Marcus Wassmer in Main branch]
2014-07-18 14:21:02 -04:00
Dmitry Rekman
68e0eadec8 Minor mono fixes (unused vars).
- Partially (except for PS4/XB1) in github PR #242.

#codereview Josh.Adams, Marcus.Wassmer, Jeff.Campeau, Peter.Lamb, Peter.Sauerbrei

[CL 2221545 by Dmitry Rekman in Main branch]
2014-07-16 20:26:20 -04:00
Daniel Lamb
3e5600b4bd Rewrote the sdk checking code for andorid so that it's easier to work with.
[CL 2110491 by Daniel Lamb in Main branch]
2014-06-19 11:22:53 -04:00
Daniel Lamb
482d958c36 Fixed case where you don't have the carefully redist directory synced.
Now should find the installed android sdk.

[CL 2110459 by Daniel Lamb in Main branch]
2014-06-19 10:57:36 -04:00
Daniel Lamb
e0c50ff043 Removed some excessive warnings from build script when not using carefullyredist.
Upgraded version string for build script.

[CL 2109474 by Daniel Lamb in Main branch]
2014-06-18 13:31:57 -04:00
Daniel Lamb
41b27f1922 Enabled Using Android SDK switching.
[CL 2109257 by Daniel Lamb in Main branch]
2014-06-18 10:26:14 -04:00
Jaroslaw Palczynski
7865157a1e [GitHub] 219 : Move post build handling to ToolChain
#ttp 338156

[CL 2107782 by Jaroslaw Palczynski in Main branch]
2014-06-17 02:04:37 -04:00
Daniel Lamb
14e2e29af5 Changed the running directory for clang on android so that we can use relative path names for library files.
Gets around issue with too many commandline parameters going to the linker :(.

[CL 2107042 by Daniel Lamb in Main branch]
2014-06-16 11:10:54 -04:00
Saul Abreu
7d6c6f552f Changes to UBT for third party directories. UEThirdPartyDirectory is now obsolete and should be replaced with UEThirdPartySourceDirectory. An error message will appear when attempting to build if this is not heeded.
[CL 2104963 by Saul Abreu in Main branch]
2014-06-13 16:31:00 -04:00
Jack Porter
5776ee4dc3 Android stack walking displaying function signatures. addr2line can be used offline with the address displayed to get the exact source file and line number.
[CL 2104022 by Jack Porter in Main branch]
2014-06-12 22:11:52 -04:00
Peter Sauerbrei
c46a6ac379 Add support for compiling for size instead of speed to Android, IOS, and HTML5
Fix for Android using an old variable for architecture
#ue4

[CL 2100883 by Peter Sauerbrei in Main branch]
2014-06-10 17:14:29 -04:00
Jaroslaw Palczynski
220c44b806 [GitHub] 132 : Introduce NativeBuildEnvironmentConfiguration
#github 132
#ttp 334942

[CL 2098971 by Jaroslaw Palczynski in Main branch]
2014-06-09 11:12:01 -04:00
Jaroslaw Palczynski
a51cded662 UBT: Renamed XmlConfigField to XmlConfig attribute and left only field annotation mechanism. If class has any fields annotated then it's going to be included in the configuration mechanism.
[CL 2097041 by Jaroslaw Palczynski in Main branch]
2014-06-06 07:43:02 -04:00
Jaroslaw Palczynski
32917f05be UBT XML configuration improvements:
- XSD driven IntelliSense
- defaults read from code (default XML file will be regenerated on UBT startup if is different than it should be)
- configurable classes/fields have to be now annotated with XmlConfig and XmlConfigField attributes
#codereview Robert.Manuszewski

[CL 2095741 by Jaroslaw Palczynski in Main branch]
2014-06-05 12:12:32 -04:00
Robert Manuszewski
283e939959 GitHub pull request #194: Full binary type. Removing hardcoded binary file extensions
[CL 2095675 by Robert Manuszewski in Main branch]
2014-06-05 12:11:58 -04:00
Bob Tellez
ab8c090a38 UE4: Removed bCompileNetworkProfiler. USE_NETWORK_PROFILER is now true whenever STATS is also true. Also, removed some platform-specific code in NetworkProfiler.cpp
[CL 2082160 by Bob Tellez in Main branch]
2014-05-22 14:04:35 -04:00
Peter Sauerbrei
aa5a1232f1 Merging
//depot/UE4-TappyChicken/Engine/Source/...

to //depot/UE4/Engine/Source/...

[CL 2081906 by Peter Sauerbrei in Main branch]
2014-05-22 09:13:12 -04:00
Steve Robb
d3d90eafb4 #ttp 333737: UHT should not output anything differently for Rocket - resubmitted after CL# 2068336 was backed out due to UAT rebuild problems.
#change Root module path added to include paths.
#change Plugins now write intermediates to the project folder.
#change All generated #includes are now relative.
#change Updated UHTDebugging.manifest to new format.
#change Android response files now use relative include paths to prevent overly-large response files.
#remove Rocket-specific UHT execution removed.
#remove iOS header hack removed.

#codereview robert.manuszewski,ben.marsh

[CL 2077472 by Steve Robb in Main branch]
2014-05-19 06:57:00 -04:00
Daniel Lamb
ebd6c8303d Changes for packing OBB into APK file.
- Added functionality to GameActivity to query for the asset manager and the mode we are using for OBB data
- Added UI element to toggle OBB packing into APK in the project packaging config panel
- Added code to add a command line switch to turn on packing during building
- Changed build system so that it will write out a JavaBuildConfig file so we know at runtime where to find the data
- Change the build system to copy and rename the OBB so that it is in the APK's asset directory uncompressed
- Added IFileHandle implementation to handle reading from an Asset based OBB and changed the OBB locating code so deal with looking for the OBB in the APK
Submitted on behalf of Robert Jones.
#codereview Daniel.Lamb,Robert.Jones

[CL 2071675 by Daniel Lamb in Main branch]
2014-05-13 11:40:41 -04:00