mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: enable main() function for Android port, which was forgotten after last refactoring
This commit is contained in:
@@ -194,7 +194,12 @@ def build(bld):
|
||||
source += bld.path.ant_glob('client/**/*.c')
|
||||
libs += ['bzip2', 'MultiEmulator', 'opus', 'opusfile', 'vorbis', 'vorbisfile']
|
||||
|
||||
if not bld.env.LAUNCHER and bld.env.DEST_OS != 'android':
|
||||
# Android port is linked differently
|
||||
if bld.env.DEST_OS == 'android':
|
||||
f = bld.shlib
|
||||
install_path = bld.env.LIBDIR
|
||||
defines += ['XASH_ENABLE_MAIN=1', 'XASH_SDLMAIN=1']
|
||||
elif not bld.env.LAUNCHER:
|
||||
f = bld.program
|
||||
install_path = bld.env.BINDIR
|
||||
defines += ['XASH_ENABLE_MAIN=1']
|
||||
|
||||
Reference in New Issue
Block a user