? ,,

亚洲午夜精品视频_国产黄大片_网站av_99亚洲伊人久久精品影院红桃_91av入口_永久免费av片在线观看全网站

聯(lián)系我們

給我們留言

聯(lián)系我們

地址:福建省晉江市青陽街道洪山路國際工業(yè)設(shè)計(jì)園納金網(wǎng)

郵箱:info@narkii.com

電話:0595-82682267

(周一到周五, 周六周日休息)

當(dāng)前位置:主頁 > 3D教程 > 圖文教程

UE4 Project.Build.cs配置示例(UE4引用libuv靜態(tài)鏈接庫

來源: 52vr | 責(zé)任編輯:傳說的落葉 | 發(fā)布時(shí)間: 2019-06-06 08:27 | 瀏覽量:

[UE4]Project.Build.cs配置示例(UE4引用libuv靜態(tài)鏈接庫)

 

這個(gè)例子演示了如何鏈接libuv靜態(tài)庫相關(guān)的配置。

libuv版本是v1.8

 
  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 HuaiKXSrv : ModuleRules  
  7. {  
  8.     private string ModulePath  
  9.     {  
  10.         get { return Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)); }  
  11.     }  
  12.   
  13.     private string ThirdPartyPath  
  14.     {  
  15.         get { return Path.GetFullPath(Path.Combine(ModulePath, "../../ThirdParty/")); }  
  16.     }  
  17.   
  18.   
  19.     public HuaiKXSrv(TargetInfo Target)  
  20.     {  
  21.         PublicDependencyModuleNames.AddRange(new string[] { "Core""CoreUObject""Engine""InputCore" });  
  22.   
  23.         PrivateDependencyModuleNames.AddRange(new string[] {  });  
  24.   
  25.         // Uncomment if you are using Slate UI  
  26.         // PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });  
  27.   
  28.         // Uncomment if you are using online features  
  29.         // PrivateDependencyModuleNames.Add("OnlineSubsystem");  
  30.         // if ((Target.Platform == UnrealTargetPlatform.Win32) || (Target.Platform == UnrealTargetPlatform.Win64))  
  31.         // {  
  32.         //      if (UEBuildConfiguration.bCompileSteamOSS == true)  
  33.         //      {  
  34.         //          DynamicallyLoadedModuleNames.Add("OnlineSubsystemSteam");  
  35.         //      }  
  36.         // }  
  37.   
  38.         AddDefines(Target);  
  39.   
  40.         LoadLibuv(Target);  
  41.     }  
  42.   
  43.     public void AddDefines(TargetInfo Target)  
  44.     {  
  45.         if ((Target.Platform == UnrealTargetPlatform.Win32) || (Target.Platform == UnrealTargetPlatform.Win64))  
  46.         {  
  47.             Definitions.Add("_IS_WINDOWS_");  
  48.         }  
  49.         else  
  50.         {  
  51.             Definitions.Add("_IS_LINUX_");  
  52.         }  
  53.     }  
  54.   
  55.     //鏈接libuv  
  56.     public bool LoadLibuv(TargetInfo Target)  
  57.     {  
  58.         bool isLibrarySupported = false;  
  59.   
  60.         //libuv需要的系統(tǒng)lib  
  61.         PublicAdditionalLibraries.Add("IPHLPAPI.lib");  
  62.         PublicAdditionalLibraries.Add("Psapi.lib");  
  63.         PublicAdditionalLibraries.Add("userenv.lib");  
  64.         PublicAdditionalLibraries.Add("msvcrtd.lib");  
  65.   
  66.         if (Target.Configuration == UnrealTargetConfiguration.Debug || Target.Configuration == UnrealTargetConfiguration.DebugGame)  
  67.         {  
  68.             if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))  
  69.             {  
  70.                 isLibrarySupported = true;  
  71.   
  72.                 string PlatformString = (Target.Platform == UnrealTargetPlatform.Win64) ? "D.x64" : "D.x86";  
  73.                 string LibrariesPath = Path.Combine(ThirdPartyPath, "Libuv""Libraries");  
  74.   
  75.                 string LibuvLibPath = Path.Combine(LibrariesPath, "libuv" + PlatformString + ".lib");  
  76.                 PublicAdditionalLibraries.Add(LibuvLibPath);  
  77.                 System.Console.WriteLine("#### Set Debug Libuv Libraries ####:" + LibuvLibPath);  
  78.             }  
  79.         }  
  80.         else if (Target.Configuration == UnrealTargetConfiguration.Shipping || Target.Configuration == UnrealTargetConfiguration.Development)  
  81.         {  
  82.             if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))  
  83.             {  
  84.                 isLibrarySupported = true;  
  85.   
  86.                 string PlatformString = (Target.Platform == UnrealTargetPlatform.Win64) ? "x64" : "x86";  
  87.                 string LibrariesPath = Path.Combine(ThirdPartyPath, "Libuv""Libraries");  
  88.   
  89.                 string LibuvLibPath = Path.Combine(LibrariesPath, "libuv." + PlatformString + ".lib");  
  90.                 PublicAdditionalLibraries.Add(LibuvLibPath);  
  91.                 System.Console.WriteLine("#### Set Shipping Libuv Libraries ####:" + LibuvLibPath);  
  92.             }  
  93.         }  
  94.   
  95.         if (isLibrarySupported)  
  96.         {  
  97.             System.Console.WriteLine("#### Set Libuv Includes ####:" + Path.Combine(ThirdPartyPath, "Libuv""Includes"));  
  98.             // Include path  
  99.             PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "Libuv""Includes"));  
  100.         }  
  101.   
  102.         //Definitions.Add(string.Format("WITH_BOBS_MAGIC_BINDING={0}", isLibrarySupported ? 1 : 0));  
  103.   
  104.         return isLibrarySupported;  
  105.     }  
  106. }  

 


相關(guān)文章
網(wǎng)友評論

您需要登錄后才可以發(fā)帖 登錄 | 立即注冊

關(guān)閉

全部評論:0條

推薦
熱門
主站蜘蛛池模板: 精品人妻伦一二三区久久 | 夜夜躁狠狠躁日日躁2022 | 亚洲人成在线影院 | 韩国免费高清一级 | 久久大香伊蕉在人线国产联合 | 欧美性一区二区三区五区 | 久久香 | 91网站入口最新 | 91久久99 | 又粗又硬又黄a级毛片 | 少妇性l交大片 | 黄www片| 天天色天天操天天射 | 欧美日韩精品在线播放 | 欧美一级视频免费看 | 久久综合亚洲 | 在线精品国产 | 免费裸体无遮挡黄网站免费看 | 婷婷开心色四房播播 | 亚洲国产精品特色大片观看完整版 | 中文毛片无遮挡高潮免费 | 久久人人爽人人人人爽av | 久久精品只有这里有 | 日韩精品在线一区二区 | 国产中日韩一区二区三区 | 中文字幕一区在线播放 | 九九国产在线视频 | 国产在线观看一区二区三区 | 中文字幕在线网 | 99精品国产一区二区 | 久久久久亚洲精品 | 欧美日韩一区二区高清免费视频 | 公与淑婷厨房猛烈进出 | 伦埋琪琪电影院久久 | 亚洲在线精品视频 | 夜色阁亚洲一区二区三区 | 亚洲精品国产一区二区精华 | 老太婆性杂交欧美肥老太 | 无码人妻精品一区二区三 | 日本欧美一区二区三区不卡视频 | 宝贝把腿张开我要添你下边动态图 |