Fix lua=none builds

This commit is contained in:
Tamás Bálint Misius 2020-12-15 18:21:35 +01:00
parent 360297c338
commit 61a97db198
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
5 changed files with 15 additions and 14 deletions

View File

@ -89,7 +89,7 @@
#include <json/json.h>
#include <zlib.h>
#if !defined(FONTEDITOR) && !defined(RENDERER)
#if !defined(FONTEDITOR) && !defined(RENDERER) && LUACONSOLE
# include "lua/LuaCompat.h"
#endif
#include "SDLCompat.h"

View File

@ -60,11 +60,11 @@
#include "debug/ParticleDebug.h"
#ifdef LUACONSOLE
#include "lua/LuaScriptInterface.h"
# include "lua/LuaScriptInterface.h"
# include "lua/LuaEvents.h"
#else
#include "lua/TPTScriptInterface.h"
# include "lua/TPTScriptInterface.h"
#endif
#include "lua/LuaEvents.h"
#include "graphics/Renderer.h"

View File

@ -1,10 +1,9 @@
#include "LuaEvents.h"
#ifdef LUACONSOLE
#include "LuaCompat.h"
#include "LuaScriptInterface.h"
#include "Platform.h"
#include "gui/interface/Engine.h"
# include "LuaCompat.h"
# include "LuaScriptInterface.h"
# include "Platform.h"
# include "gui/interface/Engine.h"
#endif
void Event::PushInteger(lua_State * l, int num)

View File

@ -1,12 +1,10 @@
luaconsole_files = files(
'CommandInterface.cpp',
'LegacyLuaAPI.cpp',
'LuaBit.cpp',
'LuaButton.cpp',
'LuaCheckbox.cpp',
'LuaCompat.c',
'LuaComponent.cpp',
'LuaEvents.cpp',
'LuaLabel.cpp',
'LuaProgressBar.cpp',
'LuaScriptInterface.cpp',
@ -27,8 +25,6 @@ luaconsole_files = files(
'socket/tcp.c',
'socket/timeout.c',
'socket/udp.c',
'TPTScriptInterface.cpp',
'TPTSTypes.cpp',
)
subdir('luascripts')

View File

@ -8,6 +8,10 @@ powder_files = files(
'SDLCompat.cpp',
'Update.cpp',
'PowderToySDL.cpp',
'lua/CommandInterface.cpp',
'lua/LuaEvents.cpp',
'lua/TPTScriptInterface.cpp',
'lua/TPTSTypes.cpp',
)
render_files = files(
@ -32,7 +36,9 @@ subdir('debug')
subdir('graphics')
subdir('gui')
subdir('json')
subdir('lua')
if uopt_lua != 'none'
subdir('lua')
endif
subdir('powdertoyjava')
subdir('resampler')
subdir('simulation')