wscript: finally disable building opus for dedicated

This commit is contained in:
Alibek Omarov 2022-08-25 19:33:16 +03:00
parent ca2a6635b6
commit a7d4cafe10
2 changed files with 4 additions and 3 deletions

View File

@ -107,7 +107,7 @@ def configure(conf):
def build(bld):
is_cxx_link = False
libs = [ 'public', 'dllemu', 'opus' ]
libs = [ 'public', 'dllemu' ]
# basic build: dedicated only
source = bld.path.ant_glob([
@ -165,7 +165,8 @@ def build(bld):
'client/*.c',
'client/vgui/*.c',
'client/avi/*.c'])
libs += ['opus']
includes = ['common', 'server', 'client', 'client/vgui', 'tests', '.', '../public', '../common', '../filesystem', '../pm_shared' ]
if bld.env.SINGLE_BINARY:

View File

@ -47,7 +47,7 @@ SUBDIRS = [
Subproject('game_launch', lambda x: not x.env.SINGLE_BINARY and x.env.DEST_OS != 'android'),
# disable only by external dependency presense
Subproject('3rdparty/opus', lambda x: not x.env.HAVE_SYSTEM_OPUS),
Subproject('3rdparty/opus', lambda x: not x.env.HAVE_SYSTEM_OPUS and not x.env.DEDICATED),
# enabled optionally
Subproject('utils/mdldec', lambda x: x.env.ENABLE_UTILS),