-
-
Save anonymous/3fad53d3ea807d8d74ae to your computer and use it in GitHub Desktop.
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-2015 Epic Games, Inc. All Rights Reserved. | |
using UnrealBuildTool; | |
using System.IO; | |
public class CompuTrainerModule : ModuleRules | |
{ | |
private string ThirdPartyPath | |
{ | |
get { return Path.GetFullPath(Path.Combine(ModulePath, "ThirdParty/")); } | |
} | |
private string ModulePath | |
{ | |
get { return Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)); } | |
} | |
public CompuTrainerModule(TargetInfo Target) | |
{ | |
// ... add public include paths required here ... | |
PublicIncludePaths.AddRange(new string[] {"CompuTrainerModule/Public"}); | |
// ... add other private include paths required here ... | |
PrivateIncludePaths.AddRange(new string[] { | |
"CompuTrainerModule/Private", | |
Path.Combine(ThirdPartyPath, "RacerMate", "Include") | |
}); | |
for(int i = 0; i < PrivateIncludePaths.Count; i++) | |
{ | |
System.Console.WriteLine(PrivateIncludePaths[i]); | |
} | |
// ... add other public dependencies that you statically link with here ... | |
PublicDependencyModuleNames.AddRange(new string[] { | |
"Core", | |
"CoreUObject", | |
"Engine", | |
"InputCore", | |
"Slate", | |
"SlateCore" | |
}); | |
// ... add private dependencies that you statically link with here ... | |
PrivateDependencyModuleNames.AddRange(new string[]{}); | |
// ... add any modules that your module loads dynamically here ... | |
DynamicallyLoadedModuleNames.AddRange(new string[]{}); | |
//AddThirdPartyPrivateStaticDependencies(Target, | |
// "CompuTrainerLibrary" | |
// // ... add any third party modules that your module depends on here ... | |
// ); | |
bool isLibrarySupported = false; | |
if (Target.Platform == UnrealTargetPlatform.Win32) | |
{ | |
string LibrariesPath = Path.Combine(ThirdPartyPath, "RacerMate", "Lib"); | |
PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "racermate.lib")); | |
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "RacerMate", "Include")); | |
RuntimeDependencies.Add(new RuntimeDependency(Path.Combine(LibrariesPath, "zlib1.dll"))); | |
RuntimeDependencies.Add(new RuntimeDependency(Path.Combine(LibrariesPath, "freetype6.dll"))); | |
RuntimeDependencies.Add(new RuntimeDependency(Path.Combine(LibrariesPath, "pcre3.dll"))); | |
RuntimeDependencies.Add(new RuntimeDependency(Path.Combine(LibrariesPath, "racermate.dll"))); | |
isLibrarySupported = true; | |
} | |
Definitions.Add(string.Format("WITH_COMPUTRAINER_BINDING={0}", isLibrarySupported ? 1 : 0)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment