Add #errors in some header files that need ENABLE_SCRIPTING defined

This commit is contained in:
David Capello 2016-11-24 16:48:37 -03:00
parent d49679c361
commit c4ed121efc
4 changed files with 16 additions and 1 deletions

View File

@ -8,6 +8,10 @@
#define APP_SCRIPTING_H_INCLUDED
#pragma once
#ifndef ENABLE_SCRIPTING
#error ENABLE_SCRIPTING must be defined
#endif
#include "doc/object_id.h"
#include "script/engine.h"

View File

@ -8,6 +8,10 @@
#define APP_SHELL_H_INCLUDED
#pragma once
#ifndef ENABLE_SCRIPTING
#error ENABLE_SCRIPTING must be defined
#endif
namespace script {
class Engine;
}

View File

@ -8,6 +8,10 @@
#define APP_UI_DEVCONSOLE_VIEW_H_INCLUDED
#pragma once
#ifndef ENABLE_SCRIPTING
#error ENABLE_SCRIPTING must be defined
#endif
#include "app/script/app_scripting.h"
#include "app/ui/tabs.h"
#include "app/ui/workspace_view.h"

View File

@ -19,7 +19,6 @@
#include "app/pref/preferences.h"
#include "app/ui/color_bar.h"
#include "app/ui/context_bar.h"
#include "app/ui/devconsole_view.h"
#include "app/ui/document_view.h"
#include "app/ui/editor/editor.h"
#include "app/ui/editor/editor_view.h"
@ -43,6 +42,10 @@
#include "ui/system.h"
#include "ui/view.h"
#ifdef ENABLE_SCRIPTING
#include "app/ui/devconsole_view.h"
#endif
namespace app {
using namespace ui;