From 93a4a581b20081edfbbb6f1ceb579fa5e0ee1380 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 29 Oct 2019 11:53:05 +1100 Subject: [PATCH] wrapper: use a private wine prefix --- wrapper.py.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wrapper.py.in b/wrapper.py.in index 8d3f99a..7ef36cd 100755 --- a/wrapper.py.in +++ b/wrapper.py.in @@ -121,6 +121,11 @@ if is_really_windows(): depsdir.append("/usr/lib/gcc/x86_64-w64-mingw32/@CMAKE_CXX_COMPILER_VERSION@/") searchvar = 'WINEPATH' 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: separator = ':' depsdir = ['lib', 'lib64']