Commit Graph

670 Commits

Author SHA1 Message Date
jeff fisher
d5fbfa08db UE-189611 ARImageDetection Fails to Launch on Android - Error: Unable to load plugin 'XRBase'
-The logic in NativeProjects.cs IsHybridContentOnlyProject which decides whether we need to build an executable for a project was always using the buildhost platform (usually win64) to decide which plugins were active.  This caused it to miss enabled code plugins that build for the actual target platform but not the host platform and potentially not do an executible build when one is required.
-Now we pass the TargetPlatforms for the current build into ConditionalMakeTempTargetForHybridProject so that we can test against them.  If any project in this list needs code built we will make a temp target.
#jira UE-189611 UE-192833
#rb Josh.Adams

[CL 27101769 by jeff fisher in ue5-main branch]
2023-08-15 10:07:26 -04:00
bryan sefcik
53cbe526bb Updated the debugger and cmdline arguments to be local or remote based on the host architecture.
#jira
[FYI] joe.kirchoff and josh.adams
#rnx

[CL 27078667 by bryan sefcik in ue5-main branch]
2023-08-14 14:20:12 -04:00
bryan sefcik
01b619ae9c Readded splitting up the architectures in VS. In the case of Win64, the name in VS stays the same(i.e. not Win64-x64) but the other architectures have the -<architecture> suffix. This gets around an issue where VS would reset the selected config/platform because the name changed.
#jira
#rb joe.kirchoff

[CL 27032388 by bryan sefcik in ue5-main branch]
2023-08-11 12:50:25 -04:00
adam kinge
06a3585301 Required Metal shader compiler changes to support iOS Simulator. Set to disabled by default via "bEnableSimulatorSupport" in IOSRuntimeSettings.
#jira UE-168571
#rnx
#rb carl.lloyd, jack.porter
#lockdown jack.porter

[CL 27022463 by adam kinge in ue5-main branch]
2023-08-11 01:01:38 -04:00
bryan sefcik
ca12a1a2e0 Cleaned up the project generator API by passing a struct of commonly used arguments. This makes it easier for us to add/remove arguments.
#rb joe.kirchoff
#jira

[CL 26854215 by bryan sefcik in ue5-main branch]
2023-08-04 14:18:11 -04:00
josh adams
fafd488a40 - Fixed making .apps using a StagingDirectory override with code-based projects
#jira UE-189819, UE-189368
#rb trivial

[CL 26848281 by josh adams in ue5-main branch]
2023-08-04 11:34:16 -04:00
josh adams
65fbd954e5 - Changed how .dylibs in the Contents/MacOS directory are copied into Mac .apps (done directly instead of needing to be staged first)
#jira UE-191538
#rb calvin.zheng

[CL 26832937 by josh adams in ue5-main branch]
2023-08-03 19:21:32 -04:00
bryan sefcik
dd629c9b68 Turned off the creation of the additional platform/architectures options until I figure out a way to not have VS reset what current config/platform was previously selected.
[FYI] joe.kirchoff
#jira

[CL 26825507 by bryan sefcik in ue5-main branch]
2023-08-03 16:24:09 -04:00
bryan sefcik
33c066c2cc Updated the exe name logic to take into account the project/platform architecture when it is set.
#jira
#fyi joe.kirchoff

[CL 26821373 by bryan sefcik in ue5-main branch]
2023-08-03 14:51:09 -04:00
bryan sefcik
9a81ca5c26 Added support to have multiple architectures per platform in the VS sln/projects.
Updated the project generators to search the VS platform directory when HasVisualStudioSupport is called to find out whether a platform is supported. This fixes several issues where platforms were being generated like they were supported by the host machine but actually weren't.

#rb joe.kirchoff
#jira

[CL 26795017 by bryan sefcik in ue5-main branch]
2023-08-02 20:27:20 -04:00
Josh Adams
574dc31ccb - Very very early support for UE running as a SwiftUI app:
- .ini settings for using SwiftUI main function
  - this will eanble #defines, etc, to enable some embedded style functionality in UE, where SwiftUI will trigger when to create the engine/view/etc
  - assume fully immersive mode, which uses CompositorServices to get drawables from SwiftUI land
  - Added some code to FMetalViewport for using Composotir layer/drawable instead of CoreAnimation layer/drawable
  - If the .ini setting is false, then it will use the original VIsionOS support which works generally in the simulator

- Also removed -lc++ commandline which was causing "duplicate -lc++" warning when building in recent Xcode

#rb adam.kinge

[CL 26769312 by Josh Adams in ue5-main branch]
2023-08-02 09:09:16 -04:00
robert millar
a1f3e3d073 Allow bGatherThirdPartySource to be set from UBT xml config.
#rb joe.kirchoff
#jira none

[CL 26761842 by robert millar in ue5-main branch]
2023-08-01 19:52:59 -04:00
Ryan Hummer
3ebc0e1bcf Removing mono/xbuild part 1
* Updating references to use dotnet
* Add new RunDotnet scripts
* Removing Mono sh scripts and references to them

#rnx
#jira UE-153293
#rb josh.adams, zack.neyland, brandon.schaefer

[CL 26737744 by Ryan Hummer in ue5-main branch]
2023-08-01 10:02:58 -04:00
joe kirchoff
da089d0875 Support for .natstepfilter
#rnx
#jira UE-190863
#jira UE-191341

#ushell-cherrypick of 26715542 by Joe.Kirchoff

[CL 26723680 by joe kirchoff in ue5-main branch]
2023-07-31 18:02:16 -04:00
chris constantinescu
c45d474014 UnrealVS - do not project prepend project path for Editor configuration in the case of test targets
- Project generation will add a new IsTestTarget property in the "Globals" property group section of the project file for explicit test target projects
- UnrealVS checks for this property and does not change the command line for test targets
- TestRunner removes all project argument logic - that can be passed after --extra-args using -project="Path/To/*.uproject" and/or -projectdir="Path/To/Project"
- OSS and Online global handlers, which occur during the Catch2 session, will read project name and/or directory using SetProjectNameAndDirectory from TestCommon/Initialization.h
#jira UE-189840

[CL 26688348 by chris constantinescu in ue5-main branch]
2023-07-28 17:20:05 -04:00
adam kinge
c45436c5e5 Temporarily disable ios simulator root due to Horde issue.
#jira UE-168571
#rnx

[CL 26598828 by adam kinge in ue5-main branch]
2023-07-26 02:12:06 -04:00
adam kinge
e56126723a Additional UBT changes to support iOS Simulator:
- update Xcode build script to set correct arch when compiling within Xcode
 - set correct SDKRoot depending on sim vs device

#jira UE-168571

[CL 26597711 by adam kinge in ue5-main branch]
2023-07-26 01:01:43 -04:00
bryan sefcik
ecec5d7fac Added the system include paths to the common include path logic to propagate the heavily used system include paths up to the common list.
Removed some redundant common path logic that didn't take into account env value limits.

#jira UE-190877

[CL 26594955 by bryan sefcik in ue5-main branch]
2023-07-25 20:28:42 -04:00
Josh Adams
45eee4b07c - Programs now no longer use Game/Client entitlements, but can set bUseEntitlementsForPrograms to true in the .ini if really needed
- Added an Unrestricted.entitlements, an empty entitlements file
- Changed Programs to find the .ini for codesigning, without needing a .uproject

[CL 26527971 by Josh Adams in ue5-main branch]
2023-07-21 18:02:08 -04:00
christopher waters
47426db352 Adding UnrealIntermediateEnvironment to allow different intermediate paths based on build settings.
This removes the old hack that renames the target based on nonunity being set while also adding a new intermediates folder for IWYU.

#jira UE-190274
#rb joe.kirchoff

[CL 26514944 by christopher waters in ue5-main branch]
2023-07-21 12:08:09 -04:00
joe kirchoff
01a82374aa UnrealBuildTool: Allow configuring toolchain and toolchain version to control what msvc version is used when clang is used to compile
#rb Tim.Smith

[CL 26449366 by joe kirchoff in ue5-main branch]
2023-07-18 17:55:15 -04:00
bryan sefcik
7949d94c62 Removed the redundant writing of the additional options.
#jira

[CL 26376338 by bryan sefcik in ue5-main branch]
2023-07-07 13:16:48 -04:00
bryan sefcik
2b6aa1b68a Updated the VS project generator code to check to see if there are common settings that should apply to all of the source files.
#jira

[CL 26369995 by bryan sefcik in ue5-main branch]
2023-07-05 15:18:51 -04:00
Josh Adams
b0e29c9e75 - Added basic support for compiling Swift code (not general purpose yet, only the UESwift.swift file in this CL will work for now)
- Added an example SwiftUI view shown on VisionOS, using UIHostingViewController (must be created in Swift, not Obj-C)
- Refactored AppleToolChainSettings and children so AppleToolChain can have a single Swift compile function, and still target the proper toolchain (more cleaning up and pulling into AppleToolChain should now be possible)
#rb joe.kirchoff

[CL 26346396 by Josh Adams in ue5-main branch]
2023-06-30 12:08:50 -04:00
Josh Adams
5e92811c9e - Removed some hard references to VisionOS from XcodeProject.cs and UEBuildIOS.cs, since it's a Plaform Extension it may not exist
- Refactored some general IOS code to be more programmatic

[CL 26251171 by Josh Adams in ue5-main branch]
2023-06-26 21:37:57 -04:00