CONFIG+=LUAENGINE_LUA53 for using Lua 5.3

This commit is contained in:
Syping 2020-07-02 16:20:10 +02:00
parent e6ba06c054
commit ecccadcd8a
5 changed files with 16 additions and 4 deletions

View file

@ -15,4 +15,8 @@
#* limitations under the License.
#*****************************************************************************/
include($$PWD/lua54.pri)
CONFIG(LUAENGINE_LUA53) {
include($$PWD/lua53.pri)
} else {
include($$PWD/lua54.pri)
}

View file

@ -15,8 +15,6 @@
#* limitations under the License.
#*****************************************************************************/
DEFINES += LUA_COMPAT_5_2
DEFINES += LUAENGINE_LUA_53
shared: win32: DEFINES += LUA_BUILD_AS_DLL
linux: DEFINES += LUA_USE_LINUX
gcc: QMAKE_CFLAGS += -Wno-cast-function-type

View file

@ -15,6 +15,9 @@
#* limitations under the License.
#*****************************************************************************/
DEFINES += LUA_COMPAT_5_2
DEFINES += LUAENGINE_LUA_53
INCLUDEPATH += \
$$PWD/lua53_module

View file

@ -15,6 +15,9 @@
#* limitations under the License.
#*****************************************************************************/
DEFINES += LUA_COMPAT_5_2
DEFINES += LUAENGINE_LUA_54
INCLUDEPATH += \
$$PWD/lua54_module

View file

@ -15,4 +15,8 @@
#* limitations under the License.
#*****************************************************************************/
include($$PWD/lua54_module.pri)
CONFIG(LUAENGINE_LUA53) {
include($$PWD/lua53_module.pri)
} else {
include($$PWD/lua54_module.pri)
}