Don't add `editor_sources` to vs_project when `tools=no`

`editor_sources` was being added to the vs_project when godot is compiled with `tools=no`, which caused the build to fail.
This commit is contained in:
nikitalita 2022-09-24 14:24:50 -07:00 committed by GitHub
parent 61c0cb712d
commit 45a1e7ff54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -846,6 +846,7 @@ def generate_vs_project(env, num_jobs):
add_to_vs_project(env, env.servers_sources) add_to_vs_project(env, env.servers_sources)
if env["tests"]: if env["tests"]:
add_to_vs_project(env, env.tests_sources) add_to_vs_project(env, env.tests_sources)
if env["tools"]:
add_to_vs_project(env, env.editor_sources) add_to_vs_project(env, env.editor_sources)
for header in glob_recursive("**/*.h"): for header in glob_recursive("**/*.h"):