1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Use scons to calculate all the sources needed for vsproj generation.

Scons knows every file - sources, headers, etc - that the binary depends on,
and trying to figure that out manually is just too prone to error.
This commit is contained in:
Andreia Gaita
2024-09-13 21:38:26 +02:00
parent 49023c0f7d
commit 84db024f6f
2 changed files with 41 additions and 65 deletions

View File

@@ -63,7 +63,6 @@ register_module_types = env.CommandNoCache(
)
vs_sources = []
test_headers = []
# libmodule_<name>.a for each active module.
for name, path in env.module_list.items():
@@ -75,8 +74,6 @@ for name, path in env.module_list.items():
lib = env_modules.add_library("module_%s" % name, env.modules_sources)
env.Prepend(LIBS=[lib])
if env["vsproj"]:
vs_sources += env.modules_sources
if env["tests"]:
# Lookup potential headers in `tests` subfolder.
@@ -104,5 +101,3 @@ env.modules_sources = []
env_modules.add_source_files(env.modules_sources, register_module_types)
lib = env_modules.add_library("modules", env.modules_sources)
env.Prepend(LIBS=[lib])
if env["vsproj"]:
env.modules_sources += vs_sources