Commit Graph

4816 Commits

Author SHA1 Message Date
Rafa Lecina
908cc56236 Remove some customizations from iOS and TvOS builds
#review-23193114 @Sam.Zamani, @Bertrand.Carre, @Josh.Adams
#preflight

[CL 23218558 by Rafa Lecina in ue5-main branch]
2022-11-21 04:28:08 -05:00
josh adams
523b4f0318 - Moved a utility function from two (copy/pasted) places into ConfigHierarchy - GetStructKeyValuePairs(), which will return a Dictionary that contains the keys and values from a standard UE struct definition (almost always loaded from a .ini file). Similar in nature to GetStructEntry(), but will entries in the struct
#rb tim.smith
#preflight 6377efaf815e4b9b7564d565

[CL 23212737 by josh adams in ue5-main branch]
2022-11-18 20:39:31 -05:00
Joe Kirchoff
85e3b6fe46 UnrealBuildTool: Compiling Microsoft platforms with Clang when using VS2022 runtime requires Clang 14
#rnx
#jira UE-170540
#rb trivial
#preflight 6377beee337745090079d37a

[CL 23198054 by Joe Kirchoff in ue5-main branch]
2022-11-18 12:39:33 -05:00
joe kirchoff
95c918e91c UnrealBuildTool: Set VS2022 as the default generated solution and compiler if all available platforms are supported
#rb Francis.Hurteau
#rb Josh.Adams
#preflight 63768595de1d9b5c3c33cf9c

[CL 23184507 by joe kirchoff in ue5-main branch]
2022-11-17 16:58:58 -05:00
bryan sefcik
ac642e3ace Updated to disable XGE and SNDBS when profiling.
Added a flag that turns off module unity size overrides.

#jira
[FYI] joe.kirchoff
#preflight 637673ccaf52be152449722a

[CL 23182588 by bryan sefcik in ue5-main branch]
2022-11-17 15:29:33 -05:00
brandon schaefer
4f85084928 [UBT] Add options to enable pie and stack protector for target rules
disabled by default

#rb Josh.Adams, Zack.Neyland
#preflight 637526e4ee4d25f90aa62e6c

[CL 23163701 by brandon schaefer in ue5-main branch]
2022-11-16 17:02:54 -05:00
Josh Adams
04c3c3f2b4 - Fixed the Mac linking of all dependent dylibs when only .cpp changes are made that don't need to relink everything
#jira UE-169775
#rb trivial
#preflight 63751b0dbf76990b71c38fe2

[CL 23156703 by Josh Adams in ue5-main branch]
2022-11-16 12:25:52 -05:00
Rafa Lecina
9fac4f4498 Set arm64 as default architecture for iOS.
There is only support for that one and that fixes Architecture argument being empty when selecting the XCFramework path

https://horde.devtools.epicgames.com/log/63742faa8f4cb2e4dc1242cc?lineindex=59
```
WARNING: Variant for platform "IOS" with architecture  not found in XCFramework FBAEMKit.
WARNING: Variant for platform "IOS" with architecture  not found in XCFramework FBSDKCoreKit_Basics.
WARNING: Variant for platform "IOS" with architecture  not found in XCFramework FBSDKCoreKit.
WARNING: Variant for platform "IOS" with architecture  not found in XCFramework FBSDKLoginKit.
WARNING: Variant for platform "IOS" with architecture  not found in XCFramework FBSDKShareKit.
```

#review @Sam.Zamani, @Bertrand.Carre, @Chris.Varsnverry, @Josh.Adams
#preflight

[CL 23152390 by Rafa Lecina in ue5-main branch]
2022-11-16 06:28:32 -05:00
joe kirchoff
3d1b49fef8 UnrealBuildTool: Only suggest installing visual studio components for Linux or HoloLens if those platforms are valid
#rnx
#rb trivial
#jira UE-167185

[CL 23148557 by joe kirchoff in ue5-main branch]
2022-11-15 19:54:32 -05:00
Rafa Lecina
03b4a563b1 Update FacebookSDK iOS on OnlineSubsystemfacebook
Removed all deprecated functionality and left a common set of functionality on all implementations (REST, Android and IOS)
Removed old Facebook SDK framework and used latest Facebook SDK XCFramework(v15.0.0). New Facebook files added in a different review to avoid noise
Enabled ARC for module. It also needs linking against Swift standard library
Depends on:
 https://p4-swarm.epicgames.net/reviews/22775386: Add support to enable ARC in modules
 https://p4-swarm.epicgames.net/reviews/22810334: Link against Swift standard library
 https://p4-swarm.epicgames.net/changes/23002644: Add support for XCFramework in UBT
 https://p4-swarm.epicgames.net/reviews/23025630: Add Facebook SDK v15.0.0 XCFramework
Moved out Facebook settings additions into Info.plist from UBT and added using an UPL file

#jira UE-162598
#review @Sam.Zamani, @Bertrand.Carre, @Chris.Varnsverry
#preflight

[CL 23133825 by Rafa Lecina in ue5-main branch]
2022-11-15 06:03:38 -05:00
Rafa Lecina
df001c1d21 Support enable ARC in modules
#jira UE-107891
#review @Sam.Zamani @Bertrand.Carre @Chris.Varnsverry @Roman.Dzieciol @Josh.Adams  @Jack.Porter
#preflight

[CL 23133821 by Rafa Lecina in ue5-main branch]
2022-11-15 06:02:36 -05:00
Rafa Lecina
4e08b2ba53 Add support for XCFramework to UBT on iOS
#jira UE-168983
#review-23009903 @Sam.Zamani @Bertrand.Carre @Chris.Varnsverry @Roman.Dzieciol @Josh.Adams @Jack.Porter
#preflight

[CL 23133403 by Rafa Lecina in ue5-main branch]
2022-11-15 04:20:41 -05:00
joe kirchoff
7ec6d6154f FixIncludePaths: Add -IncludeFilter to limit the #includes that are modified
Add progress printing
Disallow relative parent directory pathing, currently breaks some #includes

#rnx
#rb Bryan.Sefcik
#preflight none

[CL 23129418 by joe kirchoff in ue5-main branch]
2022-11-14 18:26:52 -05:00
Wojciech Krywult
c33e67d6dc UBT: Added a log message confirming that a .json file with build actions has been created when using -WriteOutdatedActions command-line argument.
#preflight 63729c77b6636838287c5ec9
#rb none
#rnx

[CL 23124452 by Wojciech Krywult in ue5-main branch]
2022-11-14 15:45:31 -05:00
bryan sefcik
d464a46b31 Reorganized the unity logic to take into account the generated cpp files when determining whether to use unity files. Previously the logic wouldn't take into account the number of generated files which meant that modules that had just generated cpp files wouldn't use unity files.
Before:
Unity Files: 6759
Total CPU Time: 77035.734375 s
Total time in Parallel executor: 2062.95 seconds

After:
Unity Files: 6656
Total CPU Time: 76182.40625 s
Total time in Parallel executor: 2047.47 seconds

#jira
[FYI] joe.kirchoff
#preflight 637273a1ee4d25f90acc3712

[CL 23123139 by bryan sefcik in ue5-main branch]
2022-11-14 14:15:09 -05:00
bryan sefcik
4d44e233d7 Added a mode that profiles different unity sizes and returns the best size for each module.
#jira
[FYI] joe.kirchoff

[CL 23123092 by bryan sefcik in ue5-main branch]
2022-11-14 14:14:05 -05:00
Wojciech Krywult
5b7ef50b76 UBT: Edit and Continue: Unified the property names used to enable edit and continue.
On some platforms we used bUseLiveCodeEdit, which was expected to be present in the per-platform configuration block. At the same time, on Windows we rely on bSupportEditAndContinue from BuildConfiguration.

Modified the console platforms to use BuildConfiguration.bSupportEditAndContinue for consistency. However, there is some value in being able to control this setting per-platform, so I've left the existing properties and just renamed them bUseLiveCodeEdit -> bSupportEditAndContinue.

As a result, all platforms that support Edit and Continue are affected by BuildConfiguration.bSupportEditAndContinue. However, if XXPlatform.bSupportEditAndContinue is presetnt, it overrides the global.

Removed ClangToolChainOptions.EnableLiveCodeEditing and related code as it turns out it wasn't really used.

#preflight 637274a99e3bea8079f98af5
#rb Joe.Kirchoff

[CL 23120407 by Wojciech Krywult in ue5-main branch]
2022-11-14 12:15:28 -05:00
Wojciech Krywult
3f2f9f9376 UBT: XmlConfigFile: Fixed potential exceptions handling deprecated properties and improved diagnostic messages when using renamed members (NewAttributeName).
#preflight 637272865368a3230a54cb81
#rb Joe.Kirchoff
#rnx

[CL 23120016 by Wojciech Krywult in ue5-main branch]
2022-11-14 12:04:09 -05:00
Josh Adams
7a9968a030 - Fix for bad bundle id for editor builds in installed build projects, related to the plist changes needed for Xcode14
#jira UE-169934
#preflight 6372664db6636838286afa32

[CL 23119760 by Josh Adams in ue5-main branch]
2022-11-14 11:49:56 -05:00
joe kirchoff
2ab5d76359 UnrealBuildTool: Update preferred vs2022 msvc version to 17.4-14.34
#rnx
#rb trivial
#preflight 636c3a3da550a2a7591d0f18

[CL 23071986 by joe kirchoff in ue5-main branch]
2022-11-10 01:16:15 -05:00
henrik karlsson
de95efbdff [UnrealBuildTool]
* Enabled _cplusplus preprocessor define representing correct number

Thanks michel.champoux for the fixes in date.h that solves older msvc compiler compile errors

#preflight 636bfebc7c2b5051901ce8c2
#rb joe.kirchoff

[CL 23071825 by henrik karlsson in ue5-main branch]
2022-11-10 01:08:40 -05:00
henrik karlsson
674b89117c Undo changelist 23056435
Will fix a file first and then resubmit

#rb none
#preflight skipped

[CL 23071601 by henrik karlsson in ue5-main branch]
2022-11-10 00:23:13 -05:00
henrik karlsson
28addd42f0 [UnrealBuildTool]
* Enabled _cplusplus preprocessor define representing correct number

#rb joe.kirchoff
#preflight skipped

[CL 23069785 by henrik karlsson in ue5-main branch]
2022-11-09 21:03:20 -05:00
Josh Adams
34acbcc46f - If CommandLineTools is detected as the build tools location (xcode-select -p), throw an exception with instructions on how to fix
- Stop logging out the xcode-select output every run
#rb bertrand.carre,roman.dzieciol
#preflight 636c0fbedc30a4ce961ca520

[CL 23062131 by Josh Adams in ue5-main branch]
2022-11-09 15:50:03 -05:00
robert millar
2e4dda24f8 Fixing UnrealBuildTool deprecation warnings.
#preflight 63633cc4af536047f4148aeb

[CL 23049856 by robert millar in ue5-main branch]
2022-11-09 04:11:36 -05:00