Last active
December 4, 2019 13:01
-
-
Save Pranavpaharia/e2741954ac5ca6ce4fc08c9d3ee4c2f1 to your computer and use it in GitHub Desktop.
Build.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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