Fix lua=none builds
This commit is contained in:
parent
360297c338
commit
61a97db198
@ -89,7 +89,7 @@
|
|||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
|
|
||||||
#if !defined(FONTEDITOR) && !defined(RENDERER)
|
#if !defined(FONTEDITOR) && !defined(RENDERER) && LUACONSOLE
|
||||||
# include "lua/LuaCompat.h"
|
# include "lua/LuaCompat.h"
|
||||||
#endif
|
#endif
|
||||||
#include "SDLCompat.h"
|
#include "SDLCompat.h"
|
||||||
|
@ -60,11 +60,11 @@
|
|||||||
#include "debug/ParticleDebug.h"
|
#include "debug/ParticleDebug.h"
|
||||||
|
|
||||||
#ifdef LUACONSOLE
|
#ifdef LUACONSOLE
|
||||||
#include "lua/LuaScriptInterface.h"
|
# include "lua/LuaScriptInterface.h"
|
||||||
|
# include "lua/LuaEvents.h"
|
||||||
#else
|
#else
|
||||||
#include "lua/TPTScriptInterface.h"
|
# include "lua/TPTScriptInterface.h"
|
||||||
#endif
|
#endif
|
||||||
#include "lua/LuaEvents.h"
|
|
||||||
|
|
||||||
#include "graphics/Renderer.h"
|
#include "graphics/Renderer.h"
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#include "LuaEvents.h"
|
#include "LuaEvents.h"
|
||||||
#ifdef LUACONSOLE
|
#ifdef LUACONSOLE
|
||||||
#include "LuaCompat.h"
|
# include "LuaCompat.h"
|
||||||
#include "LuaScriptInterface.h"
|
# include "LuaScriptInterface.h"
|
||||||
|
# include "Platform.h"
|
||||||
#include "Platform.h"
|
# include "gui/interface/Engine.h"
|
||||||
#include "gui/interface/Engine.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void Event::PushInteger(lua_State * l, int num)
|
void Event::PushInteger(lua_State * l, int num)
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
luaconsole_files = files(
|
luaconsole_files = files(
|
||||||
'CommandInterface.cpp',
|
|
||||||
'LegacyLuaAPI.cpp',
|
'LegacyLuaAPI.cpp',
|
||||||
'LuaBit.cpp',
|
'LuaBit.cpp',
|
||||||
'LuaButton.cpp',
|
'LuaButton.cpp',
|
||||||
'LuaCheckbox.cpp',
|
'LuaCheckbox.cpp',
|
||||||
'LuaCompat.c',
|
'LuaCompat.c',
|
||||||
'LuaComponent.cpp',
|
'LuaComponent.cpp',
|
||||||
'LuaEvents.cpp',
|
|
||||||
'LuaLabel.cpp',
|
'LuaLabel.cpp',
|
||||||
'LuaProgressBar.cpp',
|
'LuaProgressBar.cpp',
|
||||||
'LuaScriptInterface.cpp',
|
'LuaScriptInterface.cpp',
|
||||||
@ -27,8 +25,6 @@ luaconsole_files = files(
|
|||||||
'socket/tcp.c',
|
'socket/tcp.c',
|
||||||
'socket/timeout.c',
|
'socket/timeout.c',
|
||||||
'socket/udp.c',
|
'socket/udp.c',
|
||||||
'TPTScriptInterface.cpp',
|
|
||||||
'TPTSTypes.cpp',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
subdir('luascripts')
|
subdir('luascripts')
|
||||||
|
@ -8,6 +8,10 @@ powder_files = files(
|
|||||||
'SDLCompat.cpp',
|
'SDLCompat.cpp',
|
||||||
'Update.cpp',
|
'Update.cpp',
|
||||||
'PowderToySDL.cpp',
|
'PowderToySDL.cpp',
|
||||||
|
'lua/CommandInterface.cpp',
|
||||||
|
'lua/LuaEvents.cpp',
|
||||||
|
'lua/TPTScriptInterface.cpp',
|
||||||
|
'lua/TPTSTypes.cpp',
|
||||||
)
|
)
|
||||||
|
|
||||||
render_files = files(
|
render_files = files(
|
||||||
@ -32,7 +36,9 @@ subdir('debug')
|
|||||||
subdir('graphics')
|
subdir('graphics')
|
||||||
subdir('gui')
|
subdir('gui')
|
||||||
subdir('json')
|
subdir('json')
|
||||||
subdir('lua')
|
if uopt_lua != 'none'
|
||||||
|
subdir('lua')
|
||||||
|
endif
|
||||||
subdir('powdertoyjava')
|
subdir('powdertoyjava')
|
||||||
subdir('resampler')
|
subdir('resampler')
|
||||||
subdir('simulation')
|
subdir('simulation')
|
||||||
|
Reference in New Issue
Block a user