wscript: only enable SINGLE_BINARY and XASH_SDLMAIN on android when SDL2 enabled

This commit is contained in:
mittorn 2023-12-13 21:24:49 +03:00 committed by Alibek Omarov
parent 6fec0398b6
commit 9c097976df
1 changed files with 2 additions and 1 deletions

View File

@ -240,7 +240,8 @@ def configure(conf):
conf.options.GL4ES = True
conf.options.GLES3COMPAT = True
conf.options.GL = False
conf.define('XASH_SDLMAIN', 1)
if conf.env.HAVE_SDL2:
conf.define('XASH_SDLMAIN', 1)
elif conf.env.MAGX:
conf.options.SDL12 = True
conf.options.NO_VGUI = True