From 2fab2d9f7ec93dd90f3f00a73c36e557dc406638 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 22 Oct 2018 01:47:12 +0300 Subject: [PATCH] wscript: update --- engine/wscript | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/engine/wscript b/engine/wscript index 5b5b4846..83ae7a00 100644 --- a/engine/wscript +++ b/engine/wscript @@ -59,22 +59,21 @@ def build(bld): bld.env = bld.all_envs[get_subproject_name(bld)] libs = [] - source = [] - - # basic build: dedicated only, no dependencies - if bld.env.DEST_OS != 'win32': - libs += [ 'DL', 'M', 'PTHREAD' ] - else: - libs += ['USER32', 'SHELL32', 'GDI32', 'ADVAPI32', 'DBGHELP'] - source += bld.path.ant_glob(['platform/win32/*.c']) - - source += bld.path.ant_glob([ - 'common/*.c', + source = bld.path.ant_glob([ + 'common/*.c', 'common/imagelib/*.c', 'common/soundlib/*.c', 'common/soundlib/libmpg/*.c', 'server/*.c']) + # basic build: dedicated only, no dependencies + if bld.env.DEST_OS != 'win32': + libs += [ 'DL', 'M', 'PTHREAD' ] + source += bld.path.ant_glob(['platform/posix/*.c']) + else: + libs += ['USER32', 'SHELL32', 'GDI32', 'ADVAPI32', 'DBGHELP'] + source += bld.path.ant_glob(['platform/win32/*.c']) + # add client files and sdl2 library if not bld.env.DEDICATED: libs.append( 'SDL2' )