wscript: detect if we're compiling from Termux

This commit is contained in:
Alibek Omarov
2025-04-24 21:39:09 +03:00
parent a7f3c04baa
commit 61d8d5e12b

View File

@@ -454,6 +454,11 @@ def configure(conf):
conf.check_cc(lib='vrtld')
conf.check_cc(lib='m')
elif conf.env.DEST_OS == 'android':
# maybe there is some better check?
if conf.find_program('termux-info', mandatory=False):
conf.env.TERMUX = True
conf.define('__TERMUX__', 1)
conf.check_cc(lib='dl')
conf.check_cc(lib='log')
if not conf.options.ANDROID_OPTS: