2013-11-18 09:46:46 -08:00
|
|
|
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
2010-05-14 00:34:36 -05:00
|
|
|
import os
|
|
|
|
|
2023-10-10 22:17:27 -07:00
|
|
|
for sdk, cxx in MMS.sdk_targets:
|
|
|
|
name = 'metamod.' + sdk['extension']
|
|
|
|
binary = MMS.HL2Library(builder, cxx, name, sdk)
|
2010-05-14 00:34:36 -05:00
|
|
|
|
2023-10-10 22:17:27 -07:00
|
|
|
binary.sources += [
|
|
|
|
'metamod.cpp',
|
|
|
|
'metamod_console.cpp',
|
|
|
|
'metamod_oslink.cpp',
|
|
|
|
'metamod_plugins.cpp',
|
|
|
|
'metamod_util.cpp',
|
|
|
|
'provider/provider_base.cpp',
|
|
|
|
'sourcehook/sourcehook.cpp',
|
|
|
|
'sourcehook/sourcehook_impl_chookidman.cpp',
|
|
|
|
'sourcehook/sourcehook_impl_chookmaninfo.cpp',
|
|
|
|
'sourcehook/sourcehook_impl_cproto.cpp',
|
|
|
|
'sourcehook/sourcehook_impl_cvfnptr.cpp',
|
|
|
|
'gamedll_bridge.cpp'
|
|
|
|
]
|
2016-07-22 13:59:58 -04:00
|
|
|
|
2023-10-10 22:17:27 -07:00
|
|
|
if sdk.get('source2', False):
|
2017-12-20 01:11:57 -06:00
|
|
|
binary.sources += [
|
2023-10-10 22:17:27 -07:00
|
|
|
'provider/source2/provider_source2.cpp',
|
|
|
|
os.path.join(sdk['path'], 'tier1', 'convar.cpp'),
|
|
|
|
os.path.join(sdk['path'], 'public', 'tier0', 'memoverride.cpp')
|
2017-12-20 01:11:57 -06:00
|
|
|
]
|
2023-10-10 22:17:27 -07:00
|
|
|
else:
|
|
|
|
binary.sources += [
|
|
|
|
'provider/source/provider_source.cpp',
|
|
|
|
'provider/source/provider_source_console.cpp',
|
|
|
|
'vsp_bridge.cpp'
|
|
|
|
]
|
2017-12-20 01:11:57 -06:00
|
|
|
|
2023-10-10 22:17:27 -07:00
|
|
|
if cxx.target.arch == 'x86':
|
|
|
|
binary.sources += ['sourcehook/sourcehook_hookmangen.cpp']
|
|
|
|
nodes = builder.Add(binary)
|
|
|
|
MMS.binaries += [nodes]
|