Skip to content

Commit 6457b74

Browse files
authored
Add subdirectories to source file collection logic in SConstruct
1 parent 1d3ae5a commit 6457b74

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SConstruct

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ 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-
sources = Glob("src/*.cpp")
41+
for root, folders, files in os.walk("src"):
42+
if root.endswith("gen"):
43+
continue
44+
sources += Glob(os.path.join(root, "*.cpp"))
4245

4346
if env["target"] in ["editor", "template_debug"]:
4447
try:

0 commit comments

Comments
 (0)