Skip to content

Commit

Permalink
Update Blu.Build.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
getnamo committed May 20, 2020
1 parent adef631 commit bd1a771
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Source/Blu/Blu.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ private string ThirdPartyPath
get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "../../ThirdParty/")); }
}

private void stageFiles(String[] filesToStage)
private void stageFiles(String[] FilesToStage)
{
foreach (var f in filesToStage)
foreach (var File in FilesToStage)
{
RuntimeDependencies.Add(f);
RuntimeDependencies.Add(File);
}
}

Expand Down Expand Up @@ -59,8 +59,8 @@ public Blu(ReadOnlyTargetRules Target) : base(Target)
});

// Add our runtime dependencies
var filesToStage = Directory.GetFiles(Path.Combine(ThirdPartyPath, "cef/Win/shipping"), "*", SearchOption.AllDirectories);
stageFiles(filesToStage);
var FilesToStage = Directory.GetFiles(Path.Combine(ThirdPartyPath, "cef/Win/shipping"), "*", SearchOption.AllDirectories);
stageFiles(FilesToStage);

} else if(Target.Platform == UnrealTargetPlatform.Linux)
{
Expand All @@ -76,25 +76,25 @@ public Blu(ReadOnlyTargetRules Target) : base(Target)
} else if(Target.Platform == UnrealTargetPlatform.Mac)
{

var frameworkPath = Path.Combine(ThirdPartyPath, "cef/Mac/lib", "Chromium Embedded Framework.framework");
var FrameworkPath = Path.Combine(ThirdPartyPath, "cef/Mac/lib", "Chromium Embedded Framework.framework");

PublicFrameworks.Add(frameworkPath);
PublicFrameworks.Add(FrameworkPath);
PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "cef/Mac/lib", "libcef_dll_wrapper.a"));

PublicIncludePaths.AddRange(
new string[] {
Path.Combine(ThirdPartyPath, "cef", "Mac")
});

var filesToStage = Directory.GetFiles(Path.Combine(ThirdPartyPath, "cef/Mac/shipping"), "*", SearchOption.AllDirectories);
stageFiles(filesToStage);
var FilesToStage = Directory.GetFiles(Path.Combine(ThirdPartyPath, "cef/Mac/shipping"), "*", SearchOption.AllDirectories);
stageFiles(FilesToStage);

filesToStage = Directory.GetFiles(Path.Combine(ThirdPartyPath, "cef/Mac/lib"), "*", SearchOption.AllDirectories);
stageFiles(filesToStage);
FilesToStage = Directory.GetFiles(Path.Combine(ThirdPartyPath, "cef/Mac/lib"), "*", SearchOption.AllDirectories);
stageFiles(FilesToStage);

if(!Target.bBuildEditor)
{
AdditionalBundleResources.Add(new BundleResource(Path.Combine(frameworkPath, "Chromium Embedded Framework"), "MacOS", false));
AdditionalBundleResources.Add(new BundleResource(Path.Combine(FrameworkPath, "Chromium Embedded Framework"), "MacOS", false));
}
}
else
Expand Down

0 comments on commit bd1a771

Please sign in to comment.