Extend Linux dllmap to other systems
- Drop `os` in Eluant config as it's only used on Linux - Make generic to help BSDs and Solaris - Update OpenAL-CS and SDL2-CS to get the same Exception of type `System.DllNotFoundException`: lua51.dll TypeName=`` at (wrapper managed-to-native) Eluant.LuaApi.lua_newstate(Eluant.LuaRuntime/LuaAllocator,intptr) at Eluant.LuaRuntime..ctor () at Eluant.MemoryConstrainedLuaRuntime..ctor () at OpenRA.Scripting.ScriptContext..ctor (OpenRA.World world, OpenRA.Graphics.WorldRenderer worldRenderer, System.Collections.Generic.IEnumerable`1[T] scripts) at OpenRA.Mods.Common.Scripting.LuaScript.OpenRA.Traits.IWorldLoaded.WorldLoaded (OpenRA.World world, OpenRA.Graphics.WorldRenderer worldRenderer) at OpenRA.World.LoadComplete (OpenRA.Graphics.WorldRenderer wr) at OpenRA.Game.StartGame (System.String mapUID, OpenRA.WorldType type) at OpenRA.Game.LoadShellMap () at OpenRA.Mods.Common.LoadScreens.BlankLoadScreen.StartGame (OpenRA.Arguments args) at OpenRA.Game.InitializeMod (System.String mod, OpenRA.Arguments args) at OpenRA.Game.Initialize (OpenRA.Arguments args) at OpenRA.Game.InitializeAndRun (System.String[] args) at OpenRA.Program.Main (System.String[] args)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<dllmap dll="freetype6" os="linux" target="libfreetype.so.6" />
|
||||
<dllmap dll="freetype6" os="!windows" target="libfreetype.so.6" />
|
||||
<dllmap dll="freetype6" os="openbsd" target="libfreetype.so" />
|
||||
<dllmap dll="freetype6" os="osx" target="libfreetype.6.dylib" />
|
||||
<dllmap dll="freetype6" os="freebsd" target="libfreetype.so.6" />
|
||||
</configuration>
|
||||
|
||||
2
thirdparty/Eluant.dll.config.in
vendored
2
thirdparty/Eluant.dll.config.in
vendored
@@ -1,3 +1,3 @@
|
||||
<configuration>
|
||||
<dllmap os="linux" dll="lua51.dll" target="@LIBLUA51@" />
|
||||
<dllmap dll="lua51.dll" target="@LIBLUA51@" />
|
||||
</configuration>
|
||||
|
||||
4
thirdparty/fetch-thirdparty-deps.ps1
vendored
4
thirdparty/fetch-thirdparty-deps.ps1
vendored
@@ -117,14 +117,14 @@ if (!(Test-Path "SDL2-CS.dll"))
|
||||
{
|
||||
echo "Fetching SDL2-CS from GitHub."
|
||||
$target = Join-Path $pwd.ToString() "SDL2-CS.dll"
|
||||
(New-Object System.Net.WebClient).DownloadFile("https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll", $target)
|
||||
(New-Object System.Net.WebClient).DownloadFile("https://github.com/OpenRA/SDL2-CS/releases/download/20190907/SDL2-CS.dll", $target)
|
||||
}
|
||||
|
||||
if (!(Test-Path "OpenAL-CS.dll"))
|
||||
{
|
||||
echo "Fetching OpenAL-CS from GitHub."
|
||||
$target = Join-Path $pwd.ToString() "OpenAL-CS.dll"
|
||||
(New-Object System.Net.WebClient).DownloadFile("https://github.com/OpenRA/OpenAL-CS/releases/download/20180106/OpenAL-CS.dll", $target)
|
||||
(New-Object System.Net.WebClient).DownloadFile("https://github.com/OpenRA/OpenAL-CS/releases/download/20190907/OpenAL-CS.dll", $target)
|
||||
}
|
||||
|
||||
if (!(Test-Path "Eluant.dll"))
|
||||
|
||||
16
thirdparty/fetch-thirdparty-deps.sh
vendored
16
thirdparty/fetch-thirdparty-deps.sh
vendored
@@ -60,22 +60,22 @@ fi
|
||||
if [ ! -f SDL2-CS.dll ] || [ ! -f SDL2-CS.dll.config ]; then
|
||||
echo "Fetching SDL2-CS from GitHub."
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -s -L -O https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll
|
||||
curl -s -L -O https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll.config
|
||||
curl -s -L -O https://github.com/OpenRA/SDL2-CS/releases/download/20190907/SDL2-CS.dll
|
||||
curl -s -L -O https://github.com/OpenRA/SDL2-CS/releases/download/20190907/SDL2-CS.dll.config
|
||||
else
|
||||
wget -cq https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll
|
||||
wget -cq https://github.com/OpenRA/SDL2-CS/releases/download/20161223/SDL2-CS.dll.config
|
||||
wget -cq https://github.com/OpenRA/SDL2-CS/releases/download/20190907/SDL2-CS.dll
|
||||
wget -cq https://github.com/OpenRA/SDL2-CS/releases/download/20190907/SDL2-CS.dll.config
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f OpenAL-CS.dll ] || [ ! -f OpenAL-CS.dll.config ]; then
|
||||
echo "Fetching OpenAL-CS from GitHub."
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20180106/OpenAL-CS.dll
|
||||
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20180106/OpenAL-CS.dll.config
|
||||
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20190907/OpenAL-CS.dll
|
||||
curl -s -L -O https://github.com/OpenRA/OpenAL-CS/releases/download/20190907/OpenAL-CS.dll.config
|
||||
else
|
||||
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20180106/OpenAL-CS.dll
|
||||
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20180106/OpenAL-CS.dll.config
|
||||
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20190907/OpenAL-CS.dll
|
||||
wget -cq https://github.com/OpenRA/OpenAL-CS/releases/download/20190907/OpenAL-CS.dll.config
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user