[buildcore] Add support for MSVC

This commit is contained in:
2022-03-12 11:50:21 -06:00
parent 6e51c221af
commit 399f117eab
3 changed files with 13 additions and 1 deletions

View File

@ -62,6 +62,10 @@ def main():
print('Error: Invalid build tool')
sys.exit(1)
win_target = ''
if platform.system() != 'Windows':
win_target = '-A x64'
project_dir = os.getcwd()
build_dir = '{:s}/build/{:s}'.format(project_dir, build_config)
rm(build_dir)
@ -73,6 +77,7 @@ def main():
'-DUSE_ASAN={:s}'.format(sanitizer_status),
'-DBUILDCORE_BUILD_CONFIG={:s}'.format(build_config),
'-DBUILDCORE_TARGET={:s}'.format(args.target),
win_target,
]
if qt_path != '':
cmake_cmd.append(qt_path)