Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity(JUMBO) build support #305

Closed
wants to merge 7 commits into from
Closed

Unity(JUMBO) build support #305

wants to merge 7 commits into from

Conversation

Say-Y
Copy link
Contributor

@Say-Y Say-Y commented Oct 19, 2023

Only Unity (JUMBO) build was added.
reference: #234

# Conflicts:
#	Sharpmake.Platforms/Sharpmake.CommonPlatforms/BasePlatform.Vcxproj.Template.cs
@jspelletier
Copy link
Collaborator

Have you ever checked the Blob feature in sharpmake? It is similar to jumbo builds but is not specific to msbuild.
Not that I am against adding support for jumbo builds.

@@ -1605,6 +1605,9 @@ public string FastBuildUnityPath
/// </remarks>
public bool DoNotGenerateFastBuild = false;

// Unity builds support
public int MaxFilesPerUnityFile = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could maybe reuse the BlobCount

Suggested change
public int MaxFilesPerUnityFile = 0;
public int MaxFilesPerJumboFile = 0;

@@ -2476,11 +2479,13 @@ public bool DefaultAddFastBuildProjectToSolution()
private Dictionary<ValueTuple<Type, ITarget>, DependencySetting> _dependenciesSetting = new Dictionary<ValueTuple<Type, ITarget>, DependencySetting>();

// These dependencies will not be propagated to other projects that depend on us
internal IDictionary<Type, ITarget> UnResolvedPrivateDependencies { get; } = new Dictionary<Type, ITarget>();
//internal IDictionary<Type, ITarget> UnResolvedPrivateDependencies { get; } = new Dictionary<Type, ITarget>(); // hbkim
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these changes ?

@@ -7,6 +7,8 @@
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using static Sharpmake.EngineTarget;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this do not belong in sharpmake codebase.
Define your own Target and fragments in your sharpmake scripts.

@@ -35,5 +35,13 @@
<DisableFastUpToDateCheck>True</DisableFastUpToDateCheck>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert these

@@ -1,164 +1,157 @@
{
"profiles": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert this file.

@Say-Y
Copy link
Contributor Author

Say-Y commented Nov 1, 2023

Personal codes was push as my mistake. I've reverted that code.
I will write another pull request reflecting the changes.

@Say-Y Say-Y closed this Nov 1, 2023
@Say-Y Say-Y mentioned this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants