summaryrefslogtreecommitdiff
path: root/methods.py
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-23 23:58:18 +0100
committerGitHub <noreply@github.com>2021-03-23 23:58:18 +0100
commit1829eb460811ca27a985f0d32e40e66042c74649 (patch)
treef4dc11b44f57b7a43793debc1c7a586639ae3b80 /methods.py
parent538daf673107922e3af99ad6c22ff3f3baf883cb (diff)
parent12dfdd546fa8bbd8eb544b383d21d57ad6f2167a (diff)
Merge pull request #47293 from resul4e/vsproj_tests
Enable unit testing in MSVC when tests=yes is supplied
Diffstat (limited to 'methods.py')
-rw-r--r--methods.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/methods.py b/methods.py
index 725fb36caa..6f1e7a7279 100644
--- a/methods.py
+++ b/methods.py
@@ -646,6 +646,9 @@ def generate_vs_project(env, num_jobs):
"-j%s" % num_jobs,
]
+ if env["tests"]:
+ common_build_postfix.append("tests=yes")
+
if env["custom_modules"]:
common_build_postfix.append("custom_modules=%s" % env["custom_modules"])
@@ -658,6 +661,8 @@ def generate_vs_project(env, num_jobs):
add_to_vs_project(env, env.modules_sources)
add_to_vs_project(env, env.scene_sources)
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)
for header in glob_recursive("**/*.h"):