wscript: link -llog on Android

This commit is contained in:
Alibek Omarov 2018-12-20 10:15:08 +03:00
parent c3c0954613
commit b1a06baf83
1 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,9 @@ def configure(conf):
conf.check_cc( lib='rt' )
conf.env.append_unique('DEFINES', 'SINGLE_BINARY')
conf.env.append_unique('DEFINES', 'XASH_DEDICATED')
elif conf.env.DEST_OS2 != 'android': # Android doesn't need SDL2
elif conf.env.DEST_OS2 == 'android': # Android doesn't need SDL2
conf.check_cc(lib='log')
else:
conf.load('sdl2')
if not conf.env.HAVE_SDL2:
conf.fatal('SDL2 not availiable! If you want to build dedicated server, specify --dedicated')
@ -61,7 +63,8 @@ def build(bld):
source += bld.path.ant_glob(['platform/sdl/*.c'])
if bld.env.DEST_OS2 == 'android':
source += bld.path.ant_glob(['platform/android/*.c'])
libs.append('LOG')
source += bld.path.ant_glob(['platform/android/*.c*'])
# add client files
if not bld.env.DEDICATED: