wrapper: use a private wine prefix

This commit is contained in:
Danny Robson 2019-10-29 11:53:05 +11:00
parent 4f30436a8d
commit 93a4a581b2

View File

@ -121,6 +121,11 @@ if is_really_windows():
depsdir.append("/usr/lib/gcc/x86_64-w64-mingw32/@CMAKE_CXX_COMPILER_VERSION@/") depsdir.append("/usr/lib/gcc/x86_64-w64-mingw32/@CMAKE_CXX_COMPILER_VERSION@/")
searchvar = 'WINEPATH' searchvar = 'WINEPATH'
env['WINEDEBUG'] = '-all' env['WINEDEBUG'] = '-all'
# Indicate that we want a local wine prefix in the build directory.
arch = env.get('WINEARCH', 'win64')
if not 'WINEPREFIX' in env:
env['WINEPREFIX'] = f"@CMAKE_CURRENT_BINARY_DIR@/{arch}"
else: else:
separator = ':' separator = ':'
depsdir = ['lib', 'lib64'] depsdir = ['lib', 'lib64']