Files
UnrealEngineUWP/Engine/Source/ThirdParty/GoogleInstantPreview/GoogleInstantPreview.Build.cs
Josh Adams b0e4357576 - UBT Code changes to remove 32-bit Windows support (C++ code for 32-bit still exists)
#rb marc.audy (concept, not each file)

[CL 15265424 by Josh Adams in ue5-main branch]
2021-01-31 15:09:58 -04:00

61 lines
2.3 KiB
C#

// Copyright 2017 Google Inc.
using System.IO;
using UnrealBuildTool;
public class GoogleInstantPreview : ModuleRules
{
public GoogleInstantPreview(ReadOnlyTargetRules Target)
: base (Target)
{
Type = ModuleType.External;
string GoogleInstantPreviewTargetDir = Path.Combine(Target.UEThirdPartyBinariesDirectory, "GoogleInstantPreview");
string GoogleInstantPreviewSourceDir = Path.Combine(Target.UEThirdPartySourceDirectory, "GoogleInstantPreview");
PublicIncludePaths.Add(GoogleInstantPreviewSourceDir);
// Instant preview only supported by Editor
if (Target.Type == TargetType.Editor)
{
if (Target.Platform == UnrealTargetPlatform.Win64)
{
string IpSharedPlatform = "x64";
string IpSharedLibSourceDir = Path.Combine(GoogleInstantPreviewSourceDir, IpSharedPlatform, "Release");
PublicAdditionalLibraries.Add(Path.Combine(IpSharedLibSourceDir, "ip_shared.lib"));
string[] dllDeps = {
"ip_shared.dll",
"libeay32.dll",
"ssleay32.dll",
"zlib.dll",
};
string IpSharedLibTargetDir = Path.Combine(GoogleInstantPreviewTargetDir, IpSharedPlatform, "Release");
foreach (string dll in dllDeps)
{
PublicDelayLoadDLLs.Add(dll);
string dllPath = Path.Combine(IpSharedLibTargetDir, dll);
RuntimeDependencies.Add(dllPath);
}
}
else if (Target.Platform == UnrealTargetPlatform.Mac)
{
string[] dylibDeps = {
"libip_shared.dylib",
"libgrpc++.dylib",
"libgpr.dylib",
"libgrpc.dylib",
};
string IpSharedLibTargetDir = Path.Combine(GoogleInstantPreviewTargetDir, "Mac", "Release");
foreach (string dylib in dylibDeps)
{
string dylibPath = Path.Combine(IpSharedLibTargetDir, dylib);
PublicDelayLoadDLLs.Add(dylibPath);
RuntimeDependencies.Add(dylibPath);
}
}
}
}
}