Files
UnrealEngineUWP/Engine/Source/ThirdParty/GoogleInstantPreview/GoogleInstantPreview.Build.cs
Joe Conley 8e347875f9 Rollback //UE4/Dev-VR/Engine/Source/ThirdParty/GoogleInstantPreview/GoogleInstantPreview.Build.cs to revision 10
Don't think we need to change copyright on source files in ThirdParty directory (at least CIS doesn't seem to check them).

#rb trivial

[CL 4758185 by Joe Conley in Dev-VR branch]
2019-01-18 21:48:48 -05:00

62 lines
2.4 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 || Target.Platform == UnrealTargetPlatform.Win32)
{
string IpSharedPlatform = Target.Platform == UnrealTargetPlatform.Win64 ? "x64" : "Win32";
string IpSharedLibSourceDir = Path.Combine(GoogleInstantPreviewSourceDir, IpSharedPlatform, "Release");
PublicLibraryPaths.Add(IpSharedLibSourceDir);
PublicAdditionalLibraries.Add("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);
}
}
}
}
}