diff --git a/engine/wscript b/engine/wscript index e1ba1026..db158206 100644 --- a/engine/wscript +++ b/engine/wscript @@ -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: