Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.IO;
- using UnrealBuildTool;
- public class Vicon : ModuleRules
- {
- private string ModulePath
- {
- get { return Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)); }
- }
- public Vicon(TargetInfo Target)
- {
- LoadVicon(Target);
- }
- public bool LoadVicon(TargetInfo Target)
- {
- bool isLibrarySupported = false;
- if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
- {
- isLibrarySupported = true;
- string PlatformString = (Target.Platform == UnrealTargetPlatform.Win64) ? "x64" : "x86";
- string LibrariesPath = Path.Combine( ModulePath, "Libraries");
- PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "ViconDataStreamSDK_CPP." + PlatformString + ".lib"));
- }
- if (isLibrarySupported)
- {
- // Include path
- PublicIncludePaths.Add( Path.Combine( ModulePath, "Includes" ) );
- }
- Definitions.Add(string.Format( "WITH_VICON_BINDING={0}", isLibrarySupported ? 1 : 0 ) );
- return isLibrarySupported;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement