summaryrefslogtreecommitdiffstats
path: root/methods.py
diff options
context:
space:
mode:
authornikitalita <69168929+nikitalita@users.noreply.github.com>2022-09-24 14:24:50 -0700
committerGitHub <noreply@github.com>2022-09-24 14:24:50 -0700
commit45a1e7ff54d9ac8eca2f6c41b628b6d0b2ee3e13 (patch)
treec9896eae8663ff83c5890ba57b5f87ec3baad122 /methods.py
parent61c0cb712d854881def4f266ca419de8c6fc6f37 (diff)
downloadredot-engine-45a1e7ff54d9ac8eca2f6c41b628b6d0b2ee3e13.tar.gz
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.
Diffstat (limited to 'methods.py')
-rw-r--r--methods.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/methods.py b/methods.py
index 78ec9b8674..ba051322e1 100644
--- a/methods.py
+++ b/methods.py
@@ -846,7 +846,8 @@ def generate_vs_project(env, num_jobs):
add_to_vs_project(env, env.servers_sources)
if env["tests"]:
add_to_vs_project(env, env.tests_sources)
- add_to_vs_project(env, env.editor_sources)
+ if env["tools"]:
+ add_to_vs_project(env, env.editor_sources)
for header in glob_recursive("**/*.h"):
env.vs_incs.append(str(header))