Advertisement
Guest User

build.cs

a guest
Aug 3rd, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.44 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. using System.IO;
  4. using UnrealBuildTool;
  5.  
  6. public class Usens0729 : ModuleRules
  7. {
  8.     private string ModulePath
  9.     {
  10.         get { return ModuleDirectory; }
  11.     }
  12.  
  13.     private string ThirdPartyPath
  14.     {
  15.         get { return Path.GetFullPath(Path.Combine(ModulePath, "../../ThirdParty/")); }
  16.     }
  17.  
  18.     public Usens0729(TargetInfo Target)
  19.     {
  20.         PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
  21.  
  22.         PrivateDependencyModuleNames.AddRange(new string[] {  });
  23.  
  24.         // Uncomment if you are using Slate UI
  25.         // PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
  26.  
  27.         // Uncomment if you are using online features
  28.         // PrivateDependencyModuleNames.Add("OnlineSubsystem");
  29.         // if ((Target.Platform == UnrealTargetPlatform.Win32) || (Target.Platform == UnrealTargetPlatform.Win64))
  30.         // {
  31.         //      if (UEBuildConfiguration.bCompileSteamOSS == true)
  32.         //      {
  33.         //          DynamicallyLoadedModuleNames.Add("OnlineSubsystemSteam");
  34.         //      }
  35.         // }
  36.         LoadUsens(Target);
  37.     }
  38.     bool LoadUsens(TargetInfo target)
  39.     {
  40.         string LibrariesPath = Path.Combine(ThirdPartyPath, "Usens", "lib");
  41.         PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "Fingo64.lib"));
  42.         PublicAdditionalLibraries.Add(Path.Combine(LibrariesPath, "Fingo64d.lib"));
  43.         string BinariesPath = Path.Combine(ThirdPartyPath, "Usens", "bin");
  44.         //PublicAdditionalLibraries.Add(Path.Combine(BinariesPath, "Fingo64.dll"));
  45.         //PublicAdditionalLibraries.Add(Path.Combine(BinariesPath, "Fingo64d.dll"));
  46.         //PublicAdditionalLibraries.Add(Path.Combine(BinariesPath, "libzmq.dll"));
  47.         //PublicAdditionalLibraries.Add(Path.Combine(BinariesPath, "pthreadVC2.dll"));
  48.         PublicDelayLoadDLLs.Add(Path.Combine(BinariesPath, "Fingo64.dll"));
  49.         PublicDelayLoadDLLs.Add(Path.Combine(BinariesPath, "Fingo64d.dll"));
  50.         PublicDelayLoadDLLs.Add(Path.Combine(BinariesPath, "libzmq.dll"));
  51.         PublicDelayLoadDLLs.Add(Path.Combine(BinariesPath, "pthreadVC2.dll"));
  52.         PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "Usens", "lib"));
  53.         PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "Usens", "include"));
  54.         Definitions.Add(string.Format("WITH_USENS_BINDING={0}", 1));
  55.         return true;
  56.     }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement