add configure script to workaround library naming differences
This commit is contained in:
17
configure
vendored
Executable file
17
configure
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# Use Linux system dependencies where possible, but take into account different .so names.
|
||||
|
||||
os=`uname`
|
||||
if [ $os == 'Linux' ]; then
|
||||
locations=(/usr/lib /usr/lib64)
|
||||
sonames=(liblua5.1.so.5.1 liblua5.1.so.0 liblua.so.5.1 liblua-5.1.so liblua5.1.so)
|
||||
for location in "${locations[@]}" ; do
|
||||
for soname in ${sonames[@]} ; do
|
||||
if [ -f $location/$soname ]; then
|
||||
liblua51=$soname
|
||||
break
|
||||
fi
|
||||
done
|
||||
done
|
||||
sed "s/@LIBLUA51@/${liblua51}/" thirdparty/Eluant.dll.config.in > Eluant.dll.config
|
||||
fi
|
||||
4
thirdparty/Eluant.dll.config.in
vendored
Normal file
4
thirdparty/Eluant.dll.config.in
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<configuration>
|
||||
<dllmap os="linux" dll="lua51.dll" target="@LIBLUA51@" />
|
||||
<dllmap os="osx" dll="lua51.dll" target="liblua.5.1.dylib" />
|
||||
</configuration>
|
||||
3
thirdparty/SDL2-CS.dll.config
vendored
3
thirdparty/SDL2-CS.dll.config
vendored
@@ -1,8 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<dllmap os="osx" dll="SDL2.dll" target="libSDL2.dylib"/>
|
||||
<dllmap os="linux" dll="SDL2.dll" cpu="x86" target="libSDL232.2.0.2.so" />
|
||||
<dllmap os="linux" dll="SDL2.dll" cpu="x86-64" target="libSDL264.2.0.2.so" />
|
||||
<dllmap os="linux" dll="SDL2.dll" target="libSDL2-2.0.so.0" />
|
||||
|
||||
<dllmap dll="soft_oal.dll" os="osx" target="/System/Library/Frameworks/OpenAL.framework/OpenAL"/>
|
||||
<dllmap dll="soft_oal.dll" os="linux" target="libopenal.so.1"/>
|
||||
|
||||
21
thirdparty/linux/SDL2-CS.dll.config
vendored
Normal file
21
thirdparty/linux/SDL2-CS.dll.config
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<dllmap os="osx" dll="SDL2.dll" target="libSDL2.dylib"/>
|
||||
<dllmap os="linux" dll="SDL2.dll" cpu="x86" target="libSDL232.2.0.2.so" />
|
||||
<dllmap os="linux" dll="SDL2.dll" cpu="x86-64" target="libSDL264.2.0.2.so" />
|
||||
|
||||
<dllmap dll="soft_oal.dll" os="osx" target="/System/Library/Frameworks/OpenAL.framework/OpenAL"/>
|
||||
<dllmap dll="soft_oal.dll" os="linux" target="libopenal.so.1"/>
|
||||
|
||||
<dllmap dll="opengl32.dll">
|
||||
<dllentry os="linux" dll="libGL.so.1" />
|
||||
<dllentry os="windows" dll="opengl32.dll" />
|
||||
<dllentry os="osx" dll="/System/Library/Frameworks/OpenGL.framework/OpenGL" />
|
||||
</dllmap>
|
||||
|
||||
<dllmap dll="glu32.dll">
|
||||
<dllentry os="linux" dll="libGLU.so.1" />
|
||||
<dllentry os="windows" dll="opengl32.dll" />
|
||||
<dllentry os="osx" dll="/System/Library/Frameworks/OpenGL.framework/Libraries/libGLU.dylib" />
|
||||
</dllmap>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user