Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
# Recursively add every .cpp file in the src directory.
for folder_path, _, _ in os.walk("src"):
if not folder_path.endswith(os.sep + "gen"): # The doc data in src/gen is added later
sources += Glob(os.path.join(folder_path, "*.cpp"))

if env["target"] in ["editor", "template_debug"]:
try:
Expand Down