Browse Source

wscript: check Android's log library globally

pull/2/head
Alibek Omarov 2 years ago
parent
commit
46979419ae
  1. 3
      engine/wscript
  2. 3
      wscript

3
engine/wscript

@ -48,9 +48,6 @@ def configure(conf):
conf.options.NO_ASYNC_RESOLVE = True conf.options.NO_ASYNC_RESOLVE = True
if not conf.check_cc( fragment='int main(){ int i = socket();}', lib = 'wattcpwl', mandatory=False ): if not conf.check_cc( fragment='int main(){ int i = socket();}', lib = 'wattcpwl', mandatory=False ):
conf.define('XASH_NO_NETWORK',1) conf.define('XASH_NO_NETWORK',1)
elif conf.env.DEST_OS == 'android': # Android doesn't need SDL2
for i in ['log']:
conf.check_cc(lib = i)
elif conf.options.FBDEV_SW: elif conf.options.FBDEV_SW:
# unused, XASH_LINUX without XASH_SDL gives fbdev & alsa support # unused, XASH_LINUX without XASH_SDL gives fbdev & alsa support
# conf.define('XASH_FBDEV', 1) # conf.define('XASH_FBDEV', 1)

3
wscript

@ -275,6 +275,9 @@ def configure(conf):
if not conf.env.LIB_M: # HACK: already added in xcompile! if not conf.env.LIB_M: # HACK: already added in xcompile!
conf.check_cc(lib='m') conf.check_cc(lib='m')
if conf.env.DEST_OS == 'android':
conf.check_cc(lib='log')
else: else:
# Common Win32 libraries # Common Win32 libraries
# Don't check them more than once, to save time # Don't check them more than once, to save time

Loading…
Cancel
Save