public D3D12RHIModule(TargetRules Rules) : base(Rules) { ModuleName = "D3D12RHI"; SourceFileSearchDir = "D3D12RHI"; ModuleOutputType = ModuleDef.ModuleType.LIB; IncludeDirectories.Add("Source/Core"); SolutionFolderPath = "Engine/Modules/RHI"; UseCorePCH = false; PCH = "D3D12RHIPCH"; ModuleOutputType = ModuleDef.ModuleType.ModuleDLL; UseUnity = true; ThirdPartyModules.Add("Dx12Build"); ThirdPartyModules.Add("OpenVRBuild"); ThirdPartyModules.Add("PixBuild"); ThirdPartyModules.Add("nvapiBuild"); NuGetPackages.Add("WinPixEventRuntime"); UnsupportedPlatforms.Add("Win64_VK"); UnsupportedPlatforms.Add("Linux"); UnsupportedPlatforms.Add("Android"); string Win64 = "win64"; StaticLibraries.Add(new LibDependency("d3d12.lib", Win64)); StaticLibraries.Add(new LibDependency("dxguid.lib", Win64)); StaticLibraries.Add(new LibDependency("dxgi.lib", Win64)); StaticLibraries.Add(new LibDependency("d3dcompiler.lib", Win64)); if (Rules.Win_SupportsRT()) { StaticLibraries.Add(new LibDependency("dxcompiler.lib", Win64)); } }
public freetypeBuild() { ModuleRoot = "\\freetype2\\"; AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, false); AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, true); LibDirs.Add("../source/ThirdParty/freetype2/"); StaticLibraries.Add(new LibDependency("freetype.lib", "all")); Defines.Add("SUPPORT_FREETYPE"); }
public PixBuild() { ModuleRoot = "\\Pix\\"; AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, false); AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, true); DLLs.Add("WinPixEventRuntime.dll"); LibDirs.Add("../source/ThirdParty/Pix/"); StaticLibraries.Add(new LibDependency("WinPixEventRuntime.lib", "win64")); UnsupportedPlatforms.Add("X*"); IncludeDir = "\\Pix\\Include\\WinPixEventRuntime\\"; }
public assimpBuild() { ModuleRoot = "\\assimp\\"; AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, false); AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, true); StaticLibraries.Add(new LibDependency("assimp.lib", "win64")); DLLs.Add("assimp-vc140-mt.dll"); UnsupportedPlatforms.Add("X*"); Defines.Add("BUILD_ASSIMP"); LibDirs.Add("../source/ThirdParty/assimp/"); }
public OpenVRBuild() { ModuleRoot = "\\OpenVR\\"; AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, false); AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, true); DLLs.Add("openvr_api.dll"); UnsupportedPlatforms.Add("X*"); Defines.Add("SUPPORT_OPENVR"); StaticLibraries.Add(new LibDependency("openvr_api.lib", "win64")); LibDirs.Add("../source/ThirdParty/OpenVR/"); }
public nvapiBuild() { ModuleRoot = "\\nvapi\\"; AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, false); AddLibSearch(ref LibrarySearchPaths, "", LibBuildConfig.General, true); if (File.Exists(ModuleDefManager.GetRootPath() + "\\Source\\ThirdParty\\nvapi\\Include\\nvapi.h")) { StaticLibraries.Add(new LibDependency("nvapi64.lib", "win64")); UnsupportedPlatforms.Add("X*"); LibDirs.Add("../source/ThirdParty/nvapi/"); } }