[buildcore] Add support for MSVC
This commit is contained in:
5
deps/buildcore/scripts/setup-build.py
vendored
5
deps/buildcore/scripts/setup-build.py
vendored
@ -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)
|
||||
|
Reference in New Issue
Block a user