include:
- name: linux-xenial-gcc-win-all
os: linux
- env: HINTS=linux.2020 LUA_VERSION=5.4.0
+ env: HINTS=linux.2020 LUA_VERSION=5.4.1
compiler: gcc
addons:
apt:
- make LUA_VERSION=$LUA_VERSION WANT_WIN_ALL=1 QT_SELECT=5 MOC=moc install
- name: linux-bionic-gcc-win-all
os: linux
- env: HINTS=linux.2020 LUA_VERSION=5.4.0
+ env: HINTS=linux.2020 LUA_VERSION=5.4.1
dist: bionic
compiler: gcc
addons:
- make LUA_VERSION=$LUA_VERSION WANT_WIN_ALL=1 QT_SELECT=5 MOC=moc install
- name: linux-focal-clang-win-all
os: linux
- env: HINTS=linux.2020 LUA_VERSION=5.4.0
+ env: HINTS=linux.2020 LUA_VERSION=5.4.1
dist: focal
compiler: clang
addons:
- make LUA_VERSION=$LUA_VERSION WANT_WIN_ALL=1 QT_SELECT=5 MOC=moc install
- name: linux-xenial-gcc-nocommon
os: linux
- env: HINTS=linux.2020 LUA_VERSION=5.4.0
+ env: HINTS=linux.2020 LUA_VERSION=5.4.1
dist: xenial
compiler: gcc
script:
- make install
- name: linux-focal-gcc9-win-all
os: linux
- env: HINTS=linux.2020 LUA_VERSION=5.4.0
+ env: HINTS=linux.2020 LUA_VERSION=5.4.1
dist: focal
compiler: gcc
addons:
- make LUA_VERSION=$LUA_VERSION WANT_WIN_ALL=1 QT_SELECT=5 MOC=moc install
- name: linux-xenial-gcc-minimal
os: linux
- env: HINTS=linux-minimal LUA_VERSION=5.4.0
+ env: HINTS=linux-minimal LUA_VERSION=5.4.1
compiler: gcc
script: |
cd sys/unix/ && sh setup.sh hints/$HINTS && cd ../../
script:
- export ADD_CURSES=Y
- export PDCURSES_TOP=../lib/pdcurses
- - export LUA_VERSION=5.4.0
+ - export LUA_VERSION=5.4.1
- sh sys/winnt/travis-gcc.sh
- test -d "lib/lua-$LUA_VERSION/src" || exit 0
- test -d "lib/pdcurses" || exit 0
- mingw32-make LUA_VERSION=$LUA_VERSION install
- name: msdos-linux-focal-djgpp-crosscompile
os: linux
- env: HINTS=linux.2020 LUA_VERSION=5.4.0
+ env: HINTS=linux.2020 LUA_VERSION=5.4.1
dist: focal
compiler: gcc
script:
4.3. Lua
Compile and link into a library, or obtain a prebuilt Lua library for
-your platform. Place the Lua source into lib/lua-5.4.0 (or other folder
+your platform. Place the Lua source into lib/lua-5.4.1 (or other folder
representing an appropriate Lua version); place the compiled Lua library into
lib.
ifeq "$(LUA_VERSION)" "5.3.5"
LUAVER=5.3.5
else
-LUAVER=5.4.0
+LUAVER=5.4.1
endif
#---------------------------------------------------------------
# Location of LUA
#
# Original source needs to be obtained from:
-# http://www.lua.org/ftp/lua-5.4.0.tar.gz
+# http://www.lua.org/ftp/lua-5.4.1.tar.gz
#
# This build assumes that the LUA sources are located
# at the specified location. If they are actually elsewhere
#===============-=================================================
# LUA library
-# Source from http://www.lua.org/ftp/lua-5.4.0.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
#=================================================================
LUASRC = $(LUATOP)/src
fi
if [ -z "$LUA_VERSION" ]; then
- export LUA_VERSION=5.4.0
+ export LUA_VERSION=5.4.1
fi
if [ ! -d "$(pwd)/lib" ]; then
#CHGRP = chgrp
# Lua version
-LUA_VERSION = 5.4.0
+LUA_VERSION = 5.4.1
#
# end of configuration
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "# Type a script or drag a script file from your workspace to insert its path.\ncd ${NH_INC_DIR}\necho '/* nhlua.h - generated by Xcode script */' > nhlua.h\necho '#include \"../lib/lua-5.4.0/src/lua.h\"' >> nhlua.h\nsed -e '/(lua_error)/!d' -e '/(lua_error)/s/;/ NORETURN;/1' < ${NH_LIB_DIR}/lua-5.4.0/src/lua.h >> nhlua.h\necho '#include \"../lib/lua-5.4.0/src/lualib.h\"' >> nhlua.h\necho '#include \"../lib/lua-5.4.0/src/lauxlib.h\"' >> nhlua.h\necho '/*nhlua.h*/' >> nhlua.h\n";
+ shellScript = "# Type a script or drag a script file from your workspace to insert its path.\ncd ${NH_INC_DIR}\necho '/* nhlua.h - generated by Xcode script */' > nhlua.h\necho '#include \"../lib/lua-5.4.1/src/lua.h\"' >> nhlua.h\nsed -e '/(lua_error)/!d' -e '/(lua_error)/s/;/ NORETURN;/1' < ${NH_LIB_DIR}/lua-5.4.1/src/lua.h >> nhlua.h\necho '#include \"../lib/lua-5.4.1/src/lualib.h\"' >> nhlua.h\necho '#include \"../lib/lua-5.4.1/src/lauxlib.h\"' >> nhlua.h\necho '/*nhlua.h*/' >> nhlua.h\n";
};
544768B8239954B9004B9739 /* Build Lua library */ = {
isa = PBXShellScriptBuildPhase;
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "# Type a script or drag a script file from your workspace to insert its path.\ncd ${NH_LIB_DIR}\nmkdir -p lua\ncd ${NH_LIB_DIR}/lua-5.4.0/src\nmake a\ncp liblua.a ../../lua\ncd ../../..\n\n";
+ shellScript = "# Type a script or drag a script file from your workspace to insert its path.\ncd ${NH_LIB_DIR}\nmkdir -p lua\ncd ${NH_LIB_DIR}/lua-5.4.1/src\nmake a\ncp liblua.a ../../lua\ncd ../../..\n\n";
};
/* End PBXShellScriptBuildPhase section */
ifdef BUILD_TARGET_LUA
#===============-=================================================
# LUA library
-# Source from http://www.lua.org/ftp/lua-5.4.0.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
#=================================================================
-LUA_VERSION ?=5.4.0
+LUA_VERSION ?=5.4.1
LUATOP ?= ../lib/lua-$(LUA_VERSION)
LUASRCDIR ?= $(LUATOP)/src
LUAOBJFILES1 = $(TARGETPFX)lapi.o $(TARGETPFX)lauxlib.o \
# 2. Then
# make CROSS_TO_MSDOS=1 WANT_WIN_TTY=1 WANT_WIN_CURSES=1 all
#
-# Source from http://www.lua.org/ftp/lua-5.4.0.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
#=================================================================
CFLAGS += -DCROSSCOMPILE
LUAOBJ = nhlua.o,nhlsel.o
-# 5.4.0 adds header files ljumptab.h and lopnames.h and removes lbitlib.c
+# 5.4.0 added header files ljumptab.h and lopnames.h and removes lbitlib.c
# so comment top two and uncomment bottom two for the previous version (5.3.5)
LUA535SRCFILES =
LUA535OBJFILES =
| | |
+----+ +------+ +-----------+
| | | | | |
- share winnt tty win32 Lua-5.4.0 pdcurses
+ share winnt tty win32 Lua-5.4.1 pdcurses
|
vs
| Building And Running Using Visual Studio 2017 or 2019 |
\--------------------------------------------------------/
-Before proceeding, please obtain the lua-5.4.0 sources and copy them to
-the new directory lib\lua-5.4.0\src. This source can be obtain either from
-http://www.lua.org/ftp/lua-5.4.0.tar.gz or from the git hub mirror
-https://github.com/lua/lua.git using the tag 'v5.4.0'. The build expects
-to find lua files such as 'lua.h' at 'lib\lua-5.4.0\src\lua.h'.
+Before proceeding, please obtain the lua-5.4.1 sources and copy them to
+the new directory lib\lua-5.4.1\src. This source can be obtain either from
+http://www.lua.org/ftp/lua-5.4.1.tar.gz or from the git hub mirror
+https://github.com/lua/lua.git using the tag 'v5.4.1'. The build expects
+to find lua files such as 'lua.h' at 'lib\lua-5.4.1\src\lua.h'.
If you are NOT using Visual Studio 2017 or 2019 IDE, or you prefer to build
using a Make utility and a Makefile proceed to "Building Using Make".
#
#---------------------------------------------------------------
ifndef LUA_VERSION
-LUAVER=5.4.0
+LUAVER=5.4.1
else
LUAVER=$(LUA_VERSION)
endif
# Location of LUA
#
# Original source needs to be obtained from:
-# http://www.lua.org/ftp/lua-5.4.0.tar.gz
+# http://www.lua.org/ftp/lua-5.4.1.tar.gz
#
# This build assumes that the LUA sources are located
# at the specified location. If they are actually elsewhere
#===============-=================================================
# LUA library
-# Source from http://www.lua.org/ftp/lua-5.4.0.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
#=================================================================
ifndef LUAVER
-LUAVER = 5.4.0
+LUAVER = 5.4.1
endif
LUASRC = $(LUATOP)/src
LUALIB = $(O)lua-$(LUAVER).static.a
$(O)lstring.o $(O)lstrlib.o $(O)ltable.o $(O)ltablib.o \
$(O)ltm.o $(O)lundump.o $(O)lutf8lib.o $(O)lvm.o $(O)lzio.o
ifeq "$(LUAVER)" "5.3.5"
-# 5.4.0 adds header files ljumptab.h and lopnames.h and removes lbitlib.c
+# 5.4.0 added header files ljumptab.h and lopnames.h and removes lbitlib.c
# so we have to tack those on for the previous version (5.3.5)
LUASRCFILES = $(LUASRCFILES) lbitlib.c
LUAOBJFILES = $(LUAOBJFILES) lbitlib.o
# This marks the end of the BUILD DECISIONS section.
#==============================================================================
!IFNDEF LUA_VERSION
-LUAVER=5.4.0
+LUAVER=5.4.1
!ELSE
LUAVER=$(LUA_VERSION)
!ENDIF
# Location of LUA
#
# Original source needs to be obtained from:
-# http://www.lua.org/ftp/lua-5.4.0.tar.gz
+# http://www.lua.org/ftp/lua-5.4.1.tar.gz
#
# This build assumes that the LUA sources are located
# at the specified location. If they are actually elsewhere
#===============-=================================================
# LUA library
-# Source from http://www.lua.org/ftp/lua-5.4.0.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
#=================================================================
!IFNDEF LUAVER
!IF "$(LUATMP)" == "5.4.0"
LUAVER = 5.4.0
!ENDIF
+!IF "$(LUATMP)" == "5.4.1"
+LUAVER = 5.4.1
+!ENDIF
!ELSE
!ERROR NetHack 3.7 requires LUA so LUATOP must be defined
!ENDIF
!IF "$(LUATMP)" == "5.3.5"
LUAVER = 5.3.5
!ELSE
-LUAVER = 5.4.0
+LUAVER = 5.4.1
!ENDIF
!ENDIF
!ENDIF
LUASRCFILES = $(LUASRCFILES) lbitlib.c
LUAOBJFILES = $(LUAOBJFILES) $(O)lbitlib.o
!ELSE
-# 5.4.0 adds header files ljumptab.h and lopnames.h
+# 5.4.0 added header files ljumptab.h and lopnames.h
# and removes lbitlib.c
!ENDIF
cd lib
git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses
#git clone --depth 1 https://github.com/universal-ctags/ctags.git ctags
-curl -R -O http://www.lua.org/ftp/lua-5.4.0.tar.gz
-tar zxf lua-5.4.0.tar.gz
+curl -R -O http://www.lua.org/ftp/lua-5.4.1.tar.gz
+tar zxf lua-5.4.1.tar.gz
cd ../
<ClCompile Include="$(LuaDir)lbaselib.c" />\r
<ClCompile Include="$(LuaDir)lbitlib.c">\r
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.0'">true</ExcludedFromBuild>\r
+ <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.1'">true</ExcludedFromBuild>\r
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.3.5'">false</ExcludedFromBuild>\r
</ClCompile>\r
<ClCompile Include="$(LuaDir)lcode.c" />\r
<VERSION_MAJOR>3</VERSION_MAJOR>
<VERSION_MINOR>7</VERSION_MINOR>
<PATCHLEVEL>0</PATCHLEVEL>
- <LUA_VERSION>5.4.0</LUA_VERSION>
+ <LUA_VERSION>5.4.1</LUA_VERSION>
<ADD_PACKAGE>true</ADD_PACKAGE>
</PropertyGroup>
<PropertyGroup />
<ClCompile Include="$(LuaDir)lbaselib.c" />\r
<ClCompile Include="$(LuaDir)lbitlib.c">\r
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.0'">true</ExcludedFromBuild>\r
+ <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.1'">true</ExcludedFromBuild>\r
<ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.3.5'">false</ExcludedFromBuild>\r
</ClCompile>\r
<ClCompile Include="$(LuaDir)lcode.c" />\r
<Target Name="AfterRebuild">\r
<MSBuild Projects="afternethack.proj" Targets="Build" Properties="Configuration=$(Configuration)" />\r
</Target>\r
-</Project>
\ No newline at end of file
+</Project>\r
export LIB=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/$VSVER/$TOOLSVER/VC/Tools/MSVC/$MSVER/lib/x86:$LIB
export LIB=/c/Program\ Files\ \(x86\)/Windows\ Kits/10/lib/$WKITVER/ucrt/x86:$LIB
export LIB=/c/Program\ Files\ \(x86\)/Windows\ Kits/10/lib/$WKITVER/um/x86:$LIB
-export LUA_VERSION=5.4.0
+export LUA_VERSION=5.4.1
mkdir -p lib
cd lib
git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses