浏览代码

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.
nikitalita 3 年之前
父节点
当前提交
45a1e7ff54
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      methods.py

+ 2 - 1
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))