From 9c097976dfc9977d8af72ae87bd61eebf6d0fc1f Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 13 Dec 2023 21:24:49 +0300 Subject: [PATCH] wscript: only enable SINGLE_BINARY and XASH_SDLMAIN on android when SDL2 enabled --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index daae9568..a740ab22 100644 --- a/wscript +++ b/wscript @@ -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