forked from bartvdbraak/blender
Fix non-Windows SCons compiling error after IME merge
This commit is contained in:
parent
12e5a32557
commit
983c71931b
@ -154,12 +154,18 @@ if env['BF_GHOST_DEBUG']:
|
|||||||
else:
|
else:
|
||||||
sources.remove('intern' + os.sep + 'GHOST_EventPrinter.cpp')
|
sources.remove('intern' + os.sep + 'GHOST_EventPrinter.cpp')
|
||||||
|
|
||||||
if env['WITH_BF_IME']:
|
if env['WITH_BF_IME'] and window_system in ('win32-vc', 'win32-mingw', 'win64-vc', 'win64-mingw'):
|
||||||
if window_system in ('win32-vc', 'win32-mingw', 'win64-vc', 'win64-mingw'):
|
defs.append('WITH_INPUT_IME')
|
||||||
defs.append('WITH_INPUT_IME')
|
else:
|
||||||
else:
|
try:
|
||||||
sources.remove('intern' + os.sep + 'GHOST_ImeWin32.h')
|
sources.remove('intern' + os.sep + 'GHOST_ImeWin32.h')
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
sources.remove('intern' + os.sep + 'GHOST_ImeWin32.cpp')
|
sources.remove('intern' + os.sep + 'GHOST_ImeWin32.cpp')
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
if env['WITH_BF_3DMOUSE']:
|
if env['WITH_BF_3DMOUSE']:
|
||||||
defs.append('WITH_INPUT_NDOF')
|
defs.append('WITH_INPUT_NDOF')
|
||||||
|
Loading…
Reference in New Issue
Block a user