Browse Source

wscript: finally disable building opus for dedicated

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

3
engine/wscript

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

2
wscript

@ -47,7 +47,7 @@ SUBDIRS = [
Subproject('game_launch', lambda x: not x.env.SINGLE_BINARY and x.env.DEST_OS != 'android'), Subproject('game_launch', lambda x: not x.env.SINGLE_BINARY and x.env.DEST_OS != 'android'),
# disable only by external dependency presense # 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 # enabled optionally
Subproject('utils/mdldec', lambda x: x.env.ENABLE_UTILS), Subproject('utils/mdldec', lambda x: x.env.ENABLE_UTILS),

Loading…
Cancel
Save