engine: move soundlib onto client, only leave snd_utils with some functions that's engine core or server are dependent on

This commit is contained in:
Alibek Omarov
2024-12-02 19:30:55 +03:00
parent 2d52dae69c
commit 6d00aef398
33 changed files with 28 additions and 32 deletions

View File

@@ -148,7 +148,6 @@ def build(bld):
'common/*.c',
'common/imagelib/*.c',
'common/soundlib/*.c',
'common/soundlib/libmpg/*.c',
'server/*.c'])
if bld.env.ENGINE_TESTS:
@@ -234,7 +233,10 @@ def build(bld):
source += bld.path.ant_glob([
'client/*.c',
'client/vgui/*.c',
'client/avi/*.c'])
'client/avi/*.c',
'client/soundlib/*.c',
'client/soundlib/libmpg/*.c',
])
is_cxx_link = True
libs += ['bzip2', 'MultiEmulator']
@@ -264,7 +266,7 @@ def build(bld):
bld(source = source,
target = 'xash',
features = features,
includes = 'server client client/vgui',
includes = 'server client client/vgui common/soundlib',
use = libs,
install_path = install_path,
nro_install_path = bld.env.BINDIR,