mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
wscript: update
This commit is contained in:
parent
de838ec5e8
commit
2fab2d9f7e
@ -59,22 +59,21 @@ def build(bld):
|
|||||||
bld.env = bld.all_envs[get_subproject_name(bld)]
|
bld.env = bld.all_envs[get_subproject_name(bld)]
|
||||||
|
|
||||||
libs = []
|
libs = []
|
||||||
source = []
|
source = bld.path.ant_glob([
|
||||||
|
'common/*.c',
|
||||||
# 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',
|
|
||||||
'common/imagelib/*.c',
|
'common/imagelib/*.c',
|
||||||
'common/soundlib/*.c',
|
'common/soundlib/*.c',
|
||||||
'common/soundlib/libmpg/*.c',
|
'common/soundlib/libmpg/*.c',
|
||||||
'server/*.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
|
# add client files and sdl2 library
|
||||||
if not bld.env.DEDICATED:
|
if not bld.env.DEDICATED:
|
||||||
libs.append( 'SDL2' )
|
libs.append( 'SDL2' )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user