3rdparty: add MultiEmulator by 2010kohtep

* patched to be portable, turned into a static library
* integrated to the engine
This commit is contained in:
Alibek Omarov
2024-10-10 19:06:26 +03:00
parent ec11683dc5
commit ae2ad6ddf2
26 changed files with 3402 additions and 6 deletions

View File

@@ -93,6 +93,11 @@ def configure(conf):
conf.env.LIB_HAIKU = ['network']
conf.env.LIBPATH_HAIKU = ['/boot/system/lib']
if conf.env.DEST_OS == 'wasi':
conf.options.NO_ASYNC_RESOLVE = True
conf.env.append_unique('CFLAGS', '-mllvm')
conf.env.append_unique('CFLAGS', '-wasm-enable-sjlj')
if conf.options.STATIC:
conf.env.STATIC = True
conf.define('XASH_NO_LIBDL',1)
@@ -227,7 +232,8 @@ def build(bld):
'client/*.c',
'client/vgui/*.c',
'client/avi/*.c'])
libs += ['opus', 'bzip2']
is_cxx_link = True
libs += ['opus', 'bzip2', 'MultiEmulator']
includes = ['server', 'client', 'client/vgui' ]