From 84c86b3d1457b00aa0dbb94879e9bf3beeb25c8e Mon Sep 17 00:00:00 2001 From: Chkoupinator Date: Thu, 16 Oct 2025 21:34:34 +0200 Subject: [PATCH] Add subdirectories to source file collection logic in SConstruct up to 3 layers of depth Added automatic file collection using Glob so that source files in directories that are up to 3 layers of depth into src/ get properly detected by SConstruct. --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SConstruct b/SConstruct index 1d599d0d..ee29762c 100644 --- a/SConstruct +++ b/SConstruct @@ -38,7 +38,11 @@ Run the following command to download godot-cpp: env = SConscript("godot-cpp/SConstruct", {"env": env, "customs": customs}) env.Append(CPPPATH=["src/"]) + sources = Glob("src/*.cpp") +sources.extend(Glob("src/*/*.cpp")) +sources.extend(Glob("src/*/*/*.cpp")) +sources.extend(Glob("src/*/*/*/*.cpp")) if env["target"] in ["editor", "template_debug"]: try: