diff options
| author | Paulb23 | 2018-04-20 20:44:07 +0100 |
|---|---|---|
| committer | Paulb23 | 2018-04-20 20:45:57 +0100 |
| commit | c3d93edf3d4203da332fc2d4feb439eb35280309 (patch) | |
| tree | cfffd7d2067d41a0d6900c4d02c17ce819487407 /modules/gdscript | |
| parent | 3a5b25d5b489ad88c2861c9c37b56469580fbf03 (diff) | |
| download | godot-c3d93edf3d4203da332fc2d4feb439eb35280309.tar.gz godot-c3d93edf3d4203da332fc2d4feb439eb35280309.tar.zst godot-c3d93edf3d4203da332fc2d4feb439eb35280309.zip | |
Exclude GDScriptSyntaxHighlighter from non-tool builds
Diffstat (limited to 'modules/gdscript')
| -rw-r--r-- | modules/gdscript/SCsub | 3 | ||||
| -rw-r--r-- | modules/gdscript/editor/gdscript_highlighter.cpp (renamed from modules/gdscript/gdscript_highlighter.cpp) | 0 | ||||
| -rw-r--r-- | modules/gdscript/editor/gdscript_highlighter.h (renamed from modules/gdscript/gdscript_highlighter.h) | 0 | ||||
| -rw-r--r-- | modules/gdscript/register_types.cpp | 2 |
4 files changed, 4 insertions, 1 deletions
diff --git a/modules/gdscript/SCsub b/modules/gdscript/SCsub index 13870170a..73f09f165 100644 --- a/modules/gdscript/SCsub +++ b/modules/gdscript/SCsub @@ -7,4 +7,7 @@ env_gdscript = env_modules.Clone() env_gdscript.add_source_files(env.modules_sources, "*.cpp") +if env['tools']: + env_gdscript.add_source_files(env.modules_sources, "./editor/*.cpp") + Export('env') diff --git a/modules/gdscript/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp index 4e89851bf..4e89851bf 100644 --- a/modules/gdscript/gdscript_highlighter.cpp +++ b/modules/gdscript/editor/gdscript_highlighter.cpp diff --git a/modules/gdscript/gdscript_highlighter.h b/modules/gdscript/editor/gdscript_highlighter.h index ef1bdd410..ef1bdd410 100644 --- a/modules/gdscript/gdscript_highlighter.h +++ b/modules/gdscript/editor/gdscript_highlighter.h diff --git a/modules/gdscript/register_types.cpp b/modules/gdscript/register_types.cpp index 85c94c359..422223370 100644 --- a/modules/gdscript/register_types.cpp +++ b/modules/gdscript/register_types.cpp @@ -30,8 +30,8 @@ #include "register_types.h" +#include "editor/gdscript_highlighter.h" #include "gdscript.h" -#include "gdscript_highlighter.h" #include "gdscript_tokenizer.h" #include "io/file_access_encrypted.h" #include "io/resource_loader.h" |
