msvs.py 662 B

123456789101112131415161718192021
  1. import methods
  2. # Tuples with the name of the arch that will be used in VS, mapped to our internal arch names.
  3. # For Windows platforms, Win32 is what VS wants. For other platforms, it can be different.
  4. def get_platforms():
  5. return [("Win32", "x86_32"), ("x64", "x86_64")]
  6. def get_configurations():
  7. return ["editor", "template_debug", "template_release"]
  8. def get_build_prefix(env):
  9. batch_file = methods.find_visual_c_batch_file(env)
  10. return [
  11. "set "plat=$(PlatformTarget)"",
  12. "(if "$(PlatformTarget)"=="x64" (set "plat=x86_amd64"))",
  13. f"call "{batch_file}" !plat!",
  14. ]