Skip to content

Commit 84c86b3

Browse files
committed
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.
1 parent 1d3ae5a commit 84c86b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SConstruct

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ Run the following command to download godot-cpp:
3838
env = SConscript("godot-cpp/SConstruct", {"env": env, "customs": customs})
3939

4040
env.Append(CPPPATH=["src/"])
41+
4142
sources = Glob("src/*.cpp")
43+
sources.extend(Glob("src/*/*.cpp"))
44+
sources.extend(Glob("src/*/*/*.cpp"))
45+
sources.extend(Glob("src/*/*/*/*.cpp"))
4246

4347
if env["target"] in ["editor", "template_debug"]:
4448
try:

0 commit comments

Comments
 (0)