Skip to content

Commit 47f9b9d

Browse files
Add comments and rename variables to make them more clear
Co-authored-by: Lukas Tenbrink <[email protected]>
1 parent 28b6d74 commit 47f9b9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SConstruct

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ env = SConscript("godot-cpp/SConstruct", {"env": env, "customs": customs})
3939

4040
env.Append(CPPPATH=["src/"])
4141
sources = []
42-
for root, folders, files in os.walk("src"):
43-
if root.endswith("gen"):
44-
continue
45-
sources += Glob(os.path.join(root, "*.cpp"))
42+
# Recursively add every .cpp file in the src directory.
43+
for folder_path, _, _ in os.walk("src"):
44+
if not folder_path.endswith("/gen"): # The doc data in src/gen is added later
45+
sources += Glob(os.path.join(folder_path, "*.cpp"))
4646

4747
if env["target"] in ["editor", "template_debug"]:
4848
try:

0 commit comments

Comments
 (0)