Browse Source

wscript: link -llog on Android

pull/2/head
Alibek Omarov 6 years ago
parent
commit
b1a06baf83
  1. 7
      engine/wscript

7
engine/wscript

@ -21,7 +21,9 @@ def configure(conf): @@ -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): @@ -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:

Loading…
Cancel
Save