support for build with current Lua version 5.4.1
This may require make spotless make fetch-lua for some platforms.
This commit is contained in:
@@ -47,7 +47,7 @@ version. You can use one of the following build environments:
|
||||
| | |
|
||||
+----+ +------+ +-----------+
|
||||
| | | | | |
|
||||
share winnt tty win32 Lua-5.4.0 pdcurses
|
||||
share winnt tty win32 Lua-5.4.1 pdcurses
|
||||
|
|
||||
vs
|
||||
|
||||
@@ -55,11 +55,11 @@ version. You can use one of the following build environments:
|
||||
| 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".
|
||||
|
||||
@@ -127,7 +127,7 @@ TARGET_CPU=x86
|
||||
#
|
||||
#---------------------------------------------------------------
|
||||
ifndef LUA_VERSION
|
||||
LUAVER=5.4.0
|
||||
LUAVER=5.4.1
|
||||
else
|
||||
LUAVER=$(LUA_VERSION)
|
||||
endif
|
||||
@@ -135,7 +135,7 @@ 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
|
||||
@@ -416,11 +416,11 @@ OPTIONS_FILE = $(DAT)\options
|
||||
|
||||
#===============-=================================================
|
||||
# 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
|
||||
@@ -446,7 +446,7 @@ LUAOBJFILES = $(O)lapi.o $(O)lauxlib.o $(O)lbaselib.o \
|
||||
$(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
|
||||
|
||||
@@ -131,7 +131,7 @@ DEBUGINFO = Y
|
||||
# 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
|
||||
@@ -140,7 +140,7 @@ LUAVER=$(LUA_VERSION)
|
||||
# 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
|
||||
@@ -385,7 +385,7 @@ OPTIONS_FILE = $(DAT)\options
|
||||
|
||||
#===============-=================================================
|
||||
# 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
|
||||
@@ -395,6 +395,9 @@ LUATMP = $(LUATMP:-beta=) #strip suffix if exists "-beta"
|
||||
!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
|
||||
@@ -405,7 +408,7 @@ LUATMP = $(LUATMP:-BETA=) #strip suffix if exists "-BETA"
|
||||
!IF "$(LUATMP)" == "5.3.5"
|
||||
LUAVER = 5.3.5
|
||||
!ELSE
|
||||
LUAVER = 5.4.0
|
||||
LUAVER = 5.4.1
|
||||
!ENDIF
|
||||
!ENDIF
|
||||
!ENDIF
|
||||
@@ -437,7 +440,7 @@ LUAOBJFILES = $(O)lapi.o $(O)lauxlib.o $(O)lbaselib.o \
|
||||
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
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@ mkdir -p lib
|
||||
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 ../
|
||||
|
||||
Reference in New Issue
Block a user