Don't compile debugger plugin for non-tools builds

This commit is contained in:
Serhii Snitsaruk 2023-04-16 11:30:31 +02:00
parent 8f7dc638e0
commit 1a1a9cb57d
3 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,7 @@
/* limbo_debugger_view.h */ /* limbo_debugger_view.h */
#ifdef TOOLS_ENABLED
#include "limbo_debugger_plugin.h" #include "limbo_debugger_plugin.h"
#include "core/debugger/engine_debugger.h" #include "core/debugger/engine_debugger.h"
#include "core/math/math_defs.h" #include "core/math/math_defs.h"
@ -207,3 +209,5 @@ bool LimboDebuggerPlugin::has_capture(const String &p_capture) const {
LimboDebuggerPlugin::LimboDebuggerPlugin() { LimboDebuggerPlugin::LimboDebuggerPlugin() {
tab = nullptr; tab = nullptr;
} }
#endif // TOOLS_ENABLED

View File

@ -1,5 +1,7 @@
/* limbo_debugger_plugin.h */ /* limbo_debugger_plugin.h */
#ifdef TOOLS_ENABLED
#ifndef LIMBO_DEBUGGER_PLUGIN_H #ifndef LIMBO_DEBUGGER_PLUGIN_H
#define LIMBO_DEBUGGER_PLUGIN_H #define LIMBO_DEBUGGER_PLUGIN_H
@ -62,3 +64,5 @@ public:
}; };
#endif // LIMBO_DEBUGGER_PLUGIN #endif // LIMBO_DEBUGGER_PLUGIN
#endif // TOOLS_ENABLED

View File

@ -212,6 +212,6 @@ public:
~LimboAIEditorPlugin(); ~LimboAIEditorPlugin();
}; };
#endif // TOOLS_ENABLED
#endif // LIMBO_AI_EDITOR_PLUGIN_H #endif // LIMBO_AI_EDITOR_PLUGIN_H
#endif // TOOLS_ENABLED