An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
Windows build: a debug RakNet library, or the release one for both
Alan Saunders3083beb6e93e
diff --git a/cmake/FindRakNet.cmake b/cmake/FindRakNet.cmakeindex a1d4c8f..00f9681 100644--- a/cmake/FindRakNet.cmake+++ b/cmake/FindRakNet.cmake@@ -32,6 +32,12 @@ FIND_LIBRARY (RakNet_LIBRARY_DEBUG NAMES RakNetLibStaticd+# Isowind: with no debug build of the library, the release one serves debug configurations too (as the Linux+# build passes it), rather than the generate step failing on RakNet_LIBRARY_DEBUG-NOTFOUND+IF(NOT RakNet_LIBRARY_DEBUG AND RakNet_LIBRARY_RELEASE)+ SET(RakNet_LIBRARY_DEBUG ${RakNet_LIBRARY_RELEASE})+ENDIF()+FIND_PATH (RakNet_INCLUDES raknet/RakPeer.hENV CPATH/usr/includediff --git a/isowind/windows/build.ps1 b/isowind/windows/build.ps1index 68b21e4..a7da122 100644--- a/isowind/windows/build.ps1+++ b/isowind/windows/build.ps1@@ -92,6 +92,11 @@ if (-not $rakLib) {$rakLib = Get-ChildItem (Join-Path $crabnet 'build') -Recurse -Filter 'RakNetLibStatic.lib' |Where-Object { $_.FullName -match "\\$Configuration\\" } | Select-Object -First 1if (-not $rakLib) { throw 'CrabNet built but RakNetLibStatic.lib is nowhere under crabnet\build' }+ # A Debug build too, so a Debug engine links a matching library (the engine's solution has both configurations)+ if ($Configuration -ne 'Debug') {+ try { Run cmake @('--build', (Join-Path $crabnet 'build'), '--config', 'Debug', '--parallel') }+ catch { Write-Warning "CrabNet's Debug build failed; Debug builds of the engine will link the $Configuration library" }+ }}Write-Host "RakNet: $($rakLib.FullName)"# The dependency script runs the engine's CMake configure itself, and that needs RakNet; cmake\FindRakNet.cmake@@ -102,7 +107,8 @@ Copy-Item (Join-Path $crabnet 'include\*') (Join-Path $rakRoot 'include') -RecurCopy-Item $rakLib.FullName (Join-Path $rakRoot 'lib\RakNetLibStatic.lib') -Force$rakDebug = Get-ChildItem (Join-Path $crabnet 'build') -Recurse -Filter 'RakNetLibStatic.lib' |Where-Object { $_.FullName -match '\\Debug\\' } | Select-Object -First 1-if ($rakDebug) { Copy-Item $rakDebug.FullName (Join-Path $rakRoot 'lib\RakNetLibStaticd.lib') -Force }+# (the find module wants RakNetLibStaticd.lib for debug configurations; without a Debug build the release one does)+Copy-Item ($(if ($rakDebug) { $rakDebug.FullName } else { $rakLib.FullName })) (Join-Path $rakRoot 'lib\RakNetLibStaticd.lib') -Force$env:RAKNET_ROOT = $rakRoot.Replace('\', '/')Write-Host "RAKNET_ROOT: $env:RAKNET_ROOT"