From c45fcd245c066b7b528bc18225057c6178f3de5f Mon Sep 17 00:00:00 2001 From: stan220 Date: Sat, 28 Dec 2024 12:52:15 +0300 Subject: [PATCH] Move my_singleton to utils folder. --- .gitignore | 1 + SConstruct | 1 + src/register_types.cpp | 2 +- src/{ => utils}/my_singleton.cpp | 0 src/{ => utils}/my_singleton.hpp | 0 5 files changed, 3 insertions(+), 1 deletion(-) rename src/{ => utils}/my_singleton.cpp (100%) rename src/{ => utils}/my_singleton.hpp (100%) 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