Commit Graph

599 Commits

Author SHA1 Message Date
joe kirchoff
2fce65608d UnrealBuildTool: Add msvc conformance flags to generated projects for intellisense
#rnx
#rb trivial

[CL 25345886 by joe kirchoff in ue5-main branch]
2023-05-04 19:40:36 -04:00
Josh Adams
703f9af2a7 - Error out when building Mac/IOS modern .app if no cooked&staged data is found (for non-editor, non-program projects)
- Fixed an issue where it would skip running the PostBuild stuff if it fails during the pulling in staged directory step
#preflight 6451033b0722d4f6a28bf138

[CL 25300116 by Josh Adams in ue5-main branch]
2023-05-02 08:43:19 -04:00
Josh Adams
c3d20c01c5 - Workaround to get engine source code in IOS projects (force the UnrealEditor project in the worksapce, but as a "stub" project)
#rb adam.kinge
#preflight 644ac0c71150e908d041eb67

[CL 25220918 by Josh Adams in ue5-main branch]
2023-04-27 14:55:24 -04:00
Josh Adams
8b1d9615f8 - Packaging and archiving for modern IOS/Mac:
- When doing standard BuildCookRun, package will simply finalize the (likely already finalize) .app in Binaries/<platform>
  - When using Distribution mode, packge will create a .xcarchive in the Xcode Library (as seen in Organizer) to be able to distribute in various modes
  - Archiving will copy either the .app or .xcarchive made above to the archive directory (it will always copy the most recent .xcarchive, since we don't create the directory name, we can't know which archive to copy, so the most recent one wins - not an issue when using -package, because it always makes a new .xcarchive)
- A few code cleanup/refactors in related
#preflight 644ab91fb208f61af82d8f76

[CL 25220287 by Josh Adams in ue5-main branch]
2023-04-27 14:22:37 -04:00
Joe Kirchoff
d0a2767ece UnrealBuildTool: Fix failure to open/browse to source file in Visual Studio
* Always update PrimaryProjectName.txt when a project specific solution is generated
* -Game solution is always placed under the project directory, update SourceCodeAccessor according, this code was out of date

#rnx
#jira UE-114382
#preflight 6449c0c4401d328ad93a635b

[CL 25209946 by Joe Kirchoff in ue5-main branch]
2023-04-26 20:42:54 -04:00
Josh Adams
97fae42953 - Fixed QuickLaunch for IOS working with Modern xcode
- No longer try to grab the output from IOS with QuickLaunch as idevicedebug is killing the app too quickly
- The modern Staged directory can now be shared between Development/Shipping/etc, for grabbing any non-Framework .dylibs (like steam)
- Removed the extra --generate-entitlements-der option now that Xcode also always adds it
#preflight 6447d49a024bc608e64072f9
#rb adam.kinge
#preflight 6447d6643d1be392df890776

[CL 25179459 by Josh Adams in ue5-main branch]
2023-04-25 09:51:37 -04:00
Josh Adams
39fe150f8f - Fixed FilePath properties with new XcodeProjectSettings class
#fyi calvin.zheng
#rb trivial
#preflight skip
#preflight 644737cbc632d1e89b7cd072

[CL 25174859 by Josh Adams in ue5-main branch]
2023-04-24 22:29:57 -04:00
calvin zheng
d615e69004 Exposing xcode settings to UE settings UI (more work about dynamic disabling etc will follow)
#jira N/A
#rb Josh.Adams
#preflight 6446ae7a7368de8c98fc84d2

[CL 25169123 by calvin zheng in ue5-main branch]
2023-04-24 15:15:00 -04:00
Josh Adams
cb2b0999c1 - Allow modern xcode indexing of files in modules that are fully under another platform (like /IOS/IOSTargetPlatform), but disallow platform files in a shared module (Core/Private/IOS/IOSPlatformFile.cpp)
#rb adam.kinge
#preflight skip

[CL 25150056 by Josh Adams in ue5-main branch]
2023-04-21 14:24:44 -04:00
Josh Adams
a725affbd8 - Fixed a crash with parallel file writing in modern xcode
#rb calvin.zheng
#preflight skip

[CL 25150024 by Josh Adams in ue5-main branch]
2023-04-21 14:23:47 -04:00
AfterThunk
574803c791 PR #10354: Allow AdditionalPlugins use in multiple projects (Contributed by AfterThunk)
#preflight 6441619ba35280ed4f4383e1

[CL 25129223 by AfterThunk in ue5-main branch]
2023-04-20 12:06:13 -04:00
Josh Adams
4323a4108a - QAGame Mac passes validation for App Store (and can upload)
- Thin the dylibs in a .app when archiving, and warn that the dylibs have all needed architectures
- Added some default entitilements files for Mac, for Sandbox, and set Sandbox entiitlements as Shipping default
- Added some Modern ini options (ModernBundleIdentifie, AppCategory
- Updated CEF3 to have a single universal framework, which gets Thinned down if making a single architecture app
#rb calvin.zheng,roman.dzieciol
#preflight 64405af7a9720904a6c3eb4f

[CL 25117174 by Josh Adams in ue5-main branch]
2023-04-19 17:42:52 -04:00
bryan sefcik
dc02f727ea Small opts in the project generation code.
#p4v-preflight-copy 25094409
#preflight 643f034e0a5a4b944e9bce2c

[CL 25095304 by bryan sefcik in ue5-main branch]
2023-04-18 17:19:15 -04:00
bryan sefcik
2797e3e4e9 Optimized the ItemGroup values in VCProject by moving values to properties so can be shared across ClCompile items.
This change drastically cut down on the generated project folder size:
Before: 641 MB
After: 77.1 MB

#preflight 643994e80a5a4b944e6308a1
#fyi joe.kirchoff

[CL 25047199 by bryan sefcik in ue5-main branch]
2023-04-14 15:08:08 -04:00
Josh Adams
cf110e2444 - Fixed codesigning of Content only projects
#jira UE-182870
#rb calvin.zheng
#preflight 643499034c3ccbbdf190f66b

[CL 24986156 by Josh Adams in ue5-main branch]
2023-04-10 19:24:00 -04:00
Josh Adams
1e6ed89565 - Frameworks working on Mac with Modern Xcode just like IOS frameworks
- Update frameworks with a Framework mode to differentiate between linking with it and copying to .app (in case of a static lib framework, or load-only dylib
- Updated CEF3 to work as a normal framework (if we have a universal framework binary, it would be simpler, because LoadInMain() would work without any paths)
#rb roman.dzieciol
#preflight 643484117536ac6b78ae7ce3

[CL 24985043 by Josh Adams in ue5-main branch]
2023-04-10 18:08:40 -04:00
Josh Adams
4c3471b8a7 - After staging, Modern xcode projects will build with stub xcode project to generate a complete .app in the root of the staging directory (tested Mac and IOS)
- Fixed up scripts for copying files into mac .app with modern xcode
- Changed bIncludeEngineSource being false to not remove game/samples/mods/etc from projects (only stub xcode projects set it to false, afaict)
#rb zack.neyland
#preflight 642cc4c21d19c0312af476c0

[CL 24922909 by Josh Adams in ue5-main branch]
2023-04-04 20:54:06 -04:00
zack neyland
4a4cb1e663 - Fixed an issue with Xcode having stale bundle identifiers when codesigning BP projects (something old was being cached in Xcode's build cache, this change will force the bundle ID to be there so the cache won't cause problems)
#jira UE-174034
#rb adam.kinge
#preflight https://horde.devtools.epicgames.com/job/642ca39ef376ab43d2979d6c

[CL 24922333 by zack neyland in ue5-main branch]
2023-04-04 20:08:36 -04:00
bryan sefcik
cc312680a6 Moved some of the VS project properties to the common section.
#fyi joe.kirchoff
#preflight 642619469621ba9cb4712518

[CL 24862972 by bryan sefcik in ue5-main branch]
2023-03-30 19:45:03 -04:00
Joe Kirchoff
60234ab3bb UnrealBuildTool: Update support for minimum cpu arch for x64 platforms. Replaces ModuleRules.bUseAVX
* Add MinimumCpuArchitectureX64 enum, valid values are None, AVX, AVX2, & AVX512. Default value is None
* Obsolete boolean bUseAVX in favor of MinCpuArchX64
* Add MinCpuArchX64 setting to TargetRules
* Add Optional MinCpuArchX64 to ModuleRules, will override any target setting if not null
* Only pass this /arch for x64 platforms
* Can be controlled on the command line with -MinCpuArchX64=

#jira UE-181851
#rb Bryan.Sefcik
#preflight 6425fc7f91589478cdc7867c

[CL 24861220 by Joe Kirchoff in ue5-main branch]
2023-03-30 17:52:50 -04:00
bryan sefcik
27af9dd7cb Updated to write out the PrimaryProjectName.txt only once even if the contents need to change. This fixes an issue where a certain platform was writing it twice and UBT would throw an warning about the file being written multiple times.
#jira UE-181790
#fyi joe.kirchoff
#preflight 6425bc9c50546ea33649da6f

[CL 24856495 by bryan sefcik in ue5-main branch]
2023-03-30 13:13:51 -04:00
calvin zheng
ee46c2c210 Fix Xcode build on Development config, VALID_ARCHS was not using the correct apple name
#jira UE-181647
#rb Josh.Adams. Zack.Neyland
#preflight 642471b6e11ce5214fa27791
#lockdown Rolando.Caloca

[CL 24849439 by calvin zheng in ue5-main branch]
2023-03-29 21:29:42 -04:00
calvin zheng
10eb3b947a Revert the change of c++11 narrowing warning, it was still erroring
#rb Zack.Neyland
#preflight n/a

[CL 24827082 by calvin zheng in ue5-main branch]
2023-03-28 17:20:47 -04:00
bryan sefcik
87412acf5e Updated the intellisense data to be created in parallel.
#fyi joe.kirchoff
#preflight 6423506d051bec41cdbdfbfb

[CL 24826596 by bryan sefcik in ue5-main branch]
2023-03-28 17:05:50 -04:00
bryan sefcik
46e8628604 Updated the vc projects to be created in parallel.
#fyi joe.kirchoff
#preflight 64220ba5974dfaa53cb64402

[CL 24810549 by bryan sefcik in ue5-main branch]
2023-03-27 17:59:01 -04:00