| 1 |
import methods |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 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 |
] |