diff --git a/.gitignore b/.gitignore index 416ea9f..c6e4771 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ # Editors .vscode/ +.idea/ diff --git a/SConstruct b/SConstruct index 3254acb..4157678 100644 --- a/SConstruct +++ b/SConstruct @@ -9,6 +9,7 @@ env = SConscript("godot-cpp/SConstruct") # Add source files. env.Append(CPPPATH=["src/"]) sources = Glob("src/*.cpp") +sources+= Glob("src/utils/*.cpp") # Find gdextension path even if the directory or extension is renamed (e.g. project/addons/example/example.gdextension). (extension_path,) = glob("project/addons/*/*.gdextension") diff --git a/src/register_types.cpp b/src/register_types.cpp index 66a1d7c..bf807a8 100644 --- a/src/register_types.cpp +++ b/src/register_types.cpp @@ -4,7 +4,7 @@ #include #include "my_node.hpp" -#include "my_singleton.hpp" +#include "utils/my_singleton.hpp" static MySingleton *_my_singleton; diff --git a/src/my_singleton.cpp b/src/utils/my_singleton.cpp similarity index 100% rename from src/my_singleton.cpp rename to src/utils/my_singleton.cpp diff --git a/src/my_singleton.hpp b/src/utils/my_singleton.hpp similarity index 100% rename from src/my_singleton.hpp rename to src/utils/my_singleton.hpp