Skip to content

Instantly share code, notes, and snippets.

@Pranavpaharia
Last active December 4, 2019 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pranavpaharia/e2741954ac5ca6ce4fc08c9d3ee4c2f1 to your computer and use it in GitHub Desktop.
Save Pranavpaharia/e2741954ac5ca6ce4fc08c9d3ee4c2f1 to your computer and use it in GitHub Desktop.
Build.cs
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
using System.IO;
using UnrealBuildTool;
public class SmartWorldPro : ModuleRules
{
private string ModulePath
{
get { return ModuleDirectory; }
}
private string ThirdPartyPath
{
get { return Path.GetFullPath(Path.Combine(ModulePath, "../../Source/ThirdParty/libprotobuf")); }
}
public SmartWorldPro(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(
new string[] {
"Core",
"CoreUObject",
"Engine",
"InputCore",
"HeadMountedDisplay",
"NavigationSystem",
"AIModule",
"Http",
"Json",
"JsonUtilities",
"Slate",
"UMG",
"SlateCore",
"ImageWriteQueue",
"DatabaseSupport",
"AssetRegistry",
"libprotobuf"
}
);
PrivateDependencyModuleNames.AddRange(new string[] { "ImageWrapper" , "RenderCore", "Slate",
"SlateCore"});
bool isLibrarySupported = false;
if (Target.Platform == UnrealTargetPlatform.Win64 || Target.Platform == UnrealTargetPlatform.Win32)
{
isLibrarySupported = true;
string PlatformString = (Target.Platform == UnrealTargetPlatform.Win64) ? "" : "";
string LibrariesPath = Path.Combine(ThirdPartyPath, "lib", "win64");
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "libprotobuf" + PlatformString + ".lib"));
}
if (isLibrarySupported)
{
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "ProtoBuf", "include"));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment