Package Lua 5.1.5 for all platforms.

This commit is contained in:
Paul Chote
2014-04-30 23:05:43 +12:00
parent af83a1b341
commit 18af74f745
10 changed files with 32 additions and 14 deletions

View File

@@ -318,9 +318,11 @@ install-core: default
@$(CP_R) glsl "$(DATA_INSTALL_DIR)" @$(CP_R) glsl "$(DATA_INSTALL_DIR)"
@$(CP_R) cg "$(DATA_INSTALL_DIR)" @$(CP_R) cg "$(DATA_INSTALL_DIR)"
@$(CP_R) lua "$(DATA_INSTALL_DIR)"
@$(CP) *.ttf "$(DATA_INSTALL_DIR)" @$(CP) *.ttf "$(DATA_INSTALL_DIR)"
@$(CP) thirdparty/Tao/* "$(DATA_INSTALL_DIR)" @$(CP) thirdparty/Tao/* "$(DATA_INSTALL_DIR)"
@$(CP) thirdparty/SDL2-CS* "$(DATA_INSTALL_DIR)" @$(CP) thirdparty/SDL2-CS* "$(DATA_INSTALL_DIR)"
@$(CP) thirdparty/Eluant* "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) thirdparty/ICSharpCode.SharpZipLib.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) thirdparty/ICSharpCode.SharpZipLib.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) thirdparty/FuzzyLogicLibrary.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) thirdparty/FuzzyLogicLibrary.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) thirdparty/SharpFont.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) thirdparty/SharpFont.dll "$(DATA_INSTALL_DIR)"

11
packaging/linux/buildpackage.sh Normal file → Executable file
View File

@@ -1,24 +1,29 @@
#!/bin/bash #!/bin/bash
# OpenRA packaging master script for linux packages # OpenRA packaging master script for linux packages
if [ $# -ne "3" ]; then if [ $# -ne "4" ]; then
echo "Usage: `basename $0` version files-dir outputdir" echo "Usage: `basename $0` tag files-dir platform-files-dir outputdir"
exit 1 exit 1
fi fi
TAG=$1 TAG=$1
VERSION=`echo $TAG | grep -o "[0-9]\\+-\\?[0-9]\\?"` VERSION=`echo $TAG | grep -o "[0-9]\\+-\\?[0-9]\\?"`
BUILTDIR=$2 BUILTDIR=$2
PACKAGEDIR=$3 DEPSDIR=$3
PACKAGEDIR=$4
ROOTDIR=root ROOTDIR=root
# Clean up # Clean up
rm -rf $ROOTDIR rm -rf $ROOTDIR
cd ../.. cd ../..
# Copy files for OpenRA.Game.exe and OpenRA.Editor.exe as well as all dependencies. # Copy files for OpenRA.Game.exe and OpenRA.Editor.exe as well as all dependencies.
make install-all prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR" make install-all prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
# Native library dependencies
cp "$DEPSDIR"/* "$PWD/packaging/linux/$ROOTDIR/usr/lib/openra/" || exit 3
# Launch scripts (executed by Desura) # Launch scripts (executed by Desura)
cp *.sh "$PWD/packaging/linux/$ROOTDIR/usr/lib/openra/" || exit 3 cp *.sh "$PWD/packaging/linux/$ROOTDIR/usr/lib/openra/" || exit 3

View File

@@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
# OpenRA packaging script for Mac OSX # OpenRA packaging script for Mac OSX
if [ $# -ne "3" ]; then if [ $# -ne "4" ]; then
echo "Usage: `basename $0` tag files-dir outputdir" echo "Usage: `basename $0` tag files-dir platform-files-dir outputdir"
exit 1 exit 1
fi fi
@@ -13,9 +13,8 @@ if [ -e "OpenRA.app" ]; then
fi fi
# Copy the template to build the game package # Copy the template to build the game package
# Assumes it is layed out with the correct directory structure
cp -rv template.app OpenRA.app cp -rv template.app OpenRA.app
cp -rv $2/* "OpenRA.app/Contents/Resources/" || exit 3 cp -rv $2/* $3/* "OpenRA.app/Contents/Resources/" || exit 3
# Icon isn't used, and editor doesn't work. # Icon isn't used, and editor doesn't work.
rm OpenRA.app/Contents/Resources/OpenRA.ico rm OpenRA.app/Contents/Resources/OpenRA.ico
@@ -34,5 +33,5 @@ rm temp
# Package app bundle into a zip and clean up # Package app bundle into a zip and clean up
zip OpenRA-$1 -r -9 OpenRA.app zip OpenRA-$1 -r -9 OpenRA.app
mv OpenRA-$1.zip $3 mv OpenRA-$1.zip $4
rm -rf OpenRA.app rm -rf OpenRA.app

View File

@@ -30,7 +30,7 @@ markdown DOCUMENTATION.md > DOCUMENTATION.html
# List of files that are packaged on all platforms # List of files that are packaged on all platforms
FILES=('OpenRA.Game.exe' 'OpenRA.Editor.exe' 'OpenRA.Utility.exe' \ FILES=('OpenRA.Game.exe' 'OpenRA.Editor.exe' 'OpenRA.Utility.exe' \
'OpenRA.Renderer.SdlCommon.dll' 'OpenRA.Renderer.Sdl2.dll' 'OpenRA.Renderer.Cg.dll' 'OpenRA.Renderer.Gl.dll' 'OpenRA.Renderer.Null.dll' 'OpenRA.Irc.dll' \ 'OpenRA.Renderer.SdlCommon.dll' 'OpenRA.Renderer.Sdl2.dll' 'OpenRA.Renderer.Cg.dll' 'OpenRA.Renderer.Gl.dll' 'OpenRA.Renderer.Null.dll' 'OpenRA.Irc.dll' \
'FreeSans.ttf' 'FreeSansBold.ttf' \ 'FreeSans.ttf' 'FreeSansBold.ttf' 'lua' \
'cg' 'glsl' 'mods/common' 'mods/ra' 'mods/cnc' 'mods/d2k' 'mods/modchooser' \ 'cg' 'glsl' 'mods/common' 'mods/ra' 'mods/cnc' 'mods/d2k' 'mods/modchooser' \
'AUTHORS' 'COPYING' \ 'AUTHORS' 'COPYING' \
'README.html' 'CONTRIBUTING.html' 'DOCUMENTATION.html' 'CHANGELOG.html' \ 'README.html' 'CONTRIBUTING.html' 'DOCUMENTATION.html' 'CHANGELOG.html' \
@@ -59,10 +59,13 @@ cp thirdparty/SDL2-CS* packaging/built
# Mono.NAT for UPnP support # Mono.NAT for UPnP support
cp thirdparty/Mono.Nat.dll packaging/built cp thirdparty/Mono.Nat.dll packaging/built
# Lua # (legacy) Lua
cp thirdparty/KopiLua.dll packaging/built cp thirdparty/KopiLua.dll packaging/built
cp thirdparty/NLua.dll packaging/built cp thirdparty/NLua.dll packaging/built
# Eluant (new lua)
cp thirdparty/Eluant* packaging/built
# GeoIP database access # GeoIP database access
cp thirdparty/MaxMind.Db.dll packaging/built cp thirdparty/MaxMind.Db.dll packaging/built
cp thirdparty/MaxMind.GeoIP2.dll packaging/built cp thirdparty/MaxMind.GeoIP2.dll packaging/built
@@ -81,7 +84,7 @@ echo "Creating packages..."
( (
cd windows cd windows
makensis -DSRCDIR="$BUILTDIR" OpenRA.nsi &> package.log makensis -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/windows" OpenRA.nsi &> package.log
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
mv OpenRA.exe "$OUTPUTDIR"/OpenRA-$TAG.exe mv OpenRA.exe "$OUTPUTDIR"/OpenRA-$TAG.exe
else else
@@ -91,7 +94,7 @@ echo "Creating packages..."
( (
cd osx cd osx
sh buildpackage.sh "$TAG" "$BUILTDIR" "$OUTPUTDIR" &> package.log sh buildpackage.sh "$TAG" "$BUILTDIR" "${SRCDIR}/thirdparty/osx" "$OUTPUTDIR" &> package.log
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "OS X package build failed, refer to osx/package.log." echo "OS X package build failed, refer to osx/package.log."
fi fi
@@ -99,7 +102,7 @@ echo "Creating packages..."
( (
cd linux cd linux
sh buildpackage.sh "$TAG" "$BUILTDIR" "$OUTPUTDIR" &> package.log sh buildpackage.sh "$TAG" "$BUILTDIR" "${SRCDIR}/thirdparty/linux" "$OUTPUTDIR" &> package.log
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Linux package build failed, refer to linux/package.log." echo "Linux package build failed, refer to linux/package.log."
fi fi

View File

@@ -92,11 +92,16 @@ Section "Game" GAME
File "${SRCDIR}\GeoLite2-Country.mmdb" File "${SRCDIR}\GeoLite2-Country.mmdb"
File "${SRCDIR}\KopiLua.dll" File "${SRCDIR}\KopiLua.dll"
File "${SRCDIR}\NLua.dll" File "${SRCDIR}\NLua.dll"
File "${SRCDIR}\eluant.dll"
File OpenAL32.dll File OpenAL32.dll
File SDL.dll File SDL.dll
File freetype6.dll File freetype6.dll
File zlib1.dll File zlib1.dll
File "${DEPSDIR}\lua51.dll"
SetOutPath "$INSTDIR\lua"
File "${SRCDIR}\lua\*.lua"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$StartMenuFolder" CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA.lnk" $OUTDIR\OpenRA.Game.exe "" \ CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA.lnk" $OUTDIR\OpenRA.Game.exe "" \
@@ -182,6 +187,7 @@ Function ${UN}Clean
RMDir /r $INSTDIR\maps RMDir /r $INSTDIR\maps
RMDir /r $INSTDIR\cg RMDir /r $INSTDIR\cg
RMDir /r $INSTDIR\glsl RMDir /r $INSTDIR\glsl
RMDir /r $INSTDIR\lua
Delete $INSTDIR\OpenRA.Launcher.exe Delete $INSTDIR\OpenRA.Launcher.exe
Delete $INSTDIR\OpenRA.Game.exe Delete $INSTDIR\OpenRA.Game.exe
Delete $INSTDIR\OpenRA.Utility.exe Delete $INSTDIR\OpenRA.Utility.exe
@@ -214,6 +220,8 @@ Function ${UN}Clean
Delete $INSTDIR\NLua.dll Delete $INSTDIR\NLua.dll
Delete $INSTDIR\OpenAL32.dll Delete $INSTDIR\OpenAL32.dll
Delete $INSTDIR\SDL.dll Delete $INSTDIR\SDL.dll
Delete $INSTDIR\lua51.dll
Delete $INSTDIR\eluant.dll
Delete $INSTDIR\freetype6.dll Delete $INSTDIR\freetype6.dll
Delete $INSTDIR\zlib1.dll Delete $INSTDIR\zlib1.dll
RMDir /r $INSTDIR\Support RMDir /r $INSTDIR\Support

View File

@@ -1,4 +1,5 @@
<configuration> <configuration>
<dllmap os="linux" dll="lua51.dll" target="liblua5.1.so" /> <dllmap os="linux" dll="lua51.dll" cpu="x86" target="liblua32.5.1.5.so" />
<dllmap os="linux" dll="lua51.dll" cpu="x86-64" target="liblua64.5.1.5.so" />
<dllmap os="osx" dll="lua51.dll" target="liblua.5.1.dylib" /> <dllmap os="osx" dll="lua51.dll" target="liblua.5.1.dylib" />
</configuration> </configuration>

BIN
thirdparty/linux/liblua32.5.1.5.so vendored Normal file

Binary file not shown.

BIN
thirdparty/linux/liblua64.5.1.5.so vendored Normal file

Binary file not shown.

BIN
thirdparty/osx/liblua.5.1.dylib vendored Normal file

Binary file not shown.

BIN
thirdparty/windows/lua51.dll vendored Normal file

Binary file not shown.