[nostalgia] Cleanup setup-build
This commit is contained in:
parent
619e850bb9
commit
0bf58024f5
@ -47,9 +47,9 @@ if 'NOSTALGIA_QT_PATH' in os.environ:
|
|||||||
else:
|
else:
|
||||||
qt_path = ''
|
qt_path = ''
|
||||||
|
|
||||||
buildDir = '{:s}/build/{:s}'.format(project, build_config)
|
build_dir = '{:s}/build/{:s}'.format(project, build_config)
|
||||||
mkdir(buildDir)
|
mkdir(build_dir)
|
||||||
subprocess.run(['cmake', '-S', project, '-B', buildDir, '-GNinja',
|
subprocess.run(['cmake', '-S', project, '-B', build_dir, '-GNinja',
|
||||||
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
|
||||||
'-DCMAKE_BUILD_TYPE={:s}'.format(build_type_arg),
|
'-DCMAKE_BUILD_TYPE={:s}'.format(build_type_arg),
|
||||||
'-DUSE_ASAN={:s}'.format(sanitizer_status),
|
'-DUSE_ASAN={:s}'.format(sanitizer_status),
|
||||||
@ -61,7 +61,7 @@ subprocess.run(['cmake', '-S', project, '-B', buildDir, '-GNinja',
|
|||||||
])
|
])
|
||||||
|
|
||||||
mkdir('dist')
|
mkdir('dist')
|
||||||
if target != 'gba' and target != 'gba-debug':
|
if target != 'gba':
|
||||||
cb = open('.current_build', 'w')
|
cb = open('.current_build', 'w')
|
||||||
cb.write(build_type)
|
cb.write(build_type)
|
||||||
cb.close()
|
cb.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user