Browse Source

wscript: finally disable building opus for dedicated

pull/2/head
Alibek Omarov 2 years ago
parent
commit
a7d4cafe10
  1. 5
      engine/wscript
  2. 2
      wscript

5
engine/wscript

@ -107,7 +107,7 @@ def configure(conf): @@ -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): @@ -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:

2
wscript

@ -47,7 +47,7 @@ SUBDIRS = [ @@ -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),

Loading…
Cancel
Save