Debian Codegraph @

platform/windows/msvs.py

raw symbols SCIP
1 import methods
2
3
4 # Tuples with the name of the arch that will be used in VS, mapped to our internal arch names.
5 # For Windows platforms, Win32 is what VS wants. For other platforms, it can be different.
6 def get_platforms():
7 return [("Win32", "x86_32"), ("x64", "x86_64")]
8
9
10 def get_configurations():
11 return ["editor", "template_debug", "template_release"]
12
13
14 def get_build_prefix(env):
15 if not env.msvc:
16 return []
17 batch_file = methods.find_visual_c_batch_file(env)
18 return [
19 "cmd /V /C",
20 "set "plat=$(PlatformTarget)"",
21 "^& (if "$(PlatformTarget)"=="x64" (set "plat=x86_amd64"))",
22 f"^& call "{batch_file}" !plat!",
23 "^&",
24 ]